summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-lock.h')
-rw-r--r--qemu-lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-lock.h b/qemu-lock.h
index 26661baae..b912e79a5 100644
--- a/qemu-lock.h
+++ b/qemu-lock.h
@@ -185,11 +185,11 @@ static inline int testandset (spinlock_t *p)
#elif defined(__ia64)
-#include <ia64intrin.h>
+#include "ia64intrin.h"
static inline int testandset (int *p)
{
- return __sync_lock_test_and_set (p, 1);
+ return (int)cmpxchg_acq(p,0,1);
}
#elif defined(__mips__)
static inline int testandset (int *p)