From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Wed, 5 Dec 2007 10:41:37 +0800 Subject: [PATCH] kvm: qemu: Update exec-all.h for ia64 case.
Update exec-all.h for ia64 case. Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> --- qemu/exec-all.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qemu/exec-all.h b/qemu/exec-all.h index dc5a10d..27ff16a 100644 --- a/qemu/exec-all.h +++ b/qemu/exec-all.h @@ -492,11 +492,10 @@ static inline int testandset (int *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) @@ -617,6 +616,8 @@ static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr) is_user = ((env->ps >> 3) & 3); #elif defined (TARGET_M68K) is_user = ((env->sr & SR_S) == 0); +#elif defined (TARGET_IA64) + is_user = 0; #else #error unimplemented CPU #endif -- 1.5.2
0007-kvm-qemu-Update-exec-all.h-for-ia64-case.patch
Description: 0007-kvm-qemu-Update-exec-all.h-for-ia64-case.patch
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel