From 8f1f22f6abc7af1e5ecc8d83698514999e0284e4 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 8 Jul 2007 19:51:24 +0000 Subject: Fix retry and done ops, trap handling git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3055 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sparc/cpu.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'target-sparc/cpu.h') diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 06b5865..600b37b 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -294,10 +294,8 @@ void cpu_set_cwp(CPUSPARCState *env1, int new_cwp); env->psr = (_tmp & 0xf) << 20; \ } while (0) #define GET_CWP64(env) (NWINDOWS - 1 - (env)->cwp) -#define PUT_CWP64(env, val) do { \ - env->cwp = NWINDOWS - 1 - ((val) & 0xff); \ - cpu_set_cwp(env, env->cwp); \ - } while(0) +#define PUT_CWP64(env, val) \ + cpu_set_cwp(env, NWINDOWS - 1 - ((val) & (NWINDOWS - 1))) #endif -- cgit v1.1