summaryrefslogtreecommitdiffstats
path: root/target-sparc/cpu.h
diff options
context:
space:
mode:
authorblueswir12007-04-01 17:15:36 +0200
committerblueswir12007-04-01 17:15:36 +0200
commitd4218d996d2274f4136b8bd22e946bf56f050c9e (patch)
treedde3a51bbe573862f21d3f95825744c29e4f9fd6 /target-sparc/cpu.h
parentFix Sparc co-processor ops (Aurelien Jarno) (diff)
downloadqemu-d4218d996d2274f4136b8bd22e946bf56f050c9e.tar.gz
qemu-d4218d996d2274f4136b8bd22e946bf56f050c9e.tar.xz
qemu-d4218d996d2274f4136b8bd22e946bf56f050c9e.zip
Fix Sparc lda/ldda/sta/stda asi handling, fault on misaligned register ldd/std and illegal cwp on wrpsr (Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2568 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/cpu.h')
-rw-r--r--target-sparc/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index 91b4a26087..3279cfdea3 100644
--- a/target-sparc/cpu.h
+++ b/target-sparc/cpu.h
@@ -269,7 +269,7 @@ void cpu_set_cwp(CPUSPARCState *env1, int new_cwp);
env->psrs = (_tmp & PSR_S)? 1 : 0; \
env->psrps = (_tmp & PSR_PS)? 1 : 0; \
env->psret = (_tmp & PSR_ET)? 1 : 0; \
- cpu_set_cwp(env, _tmp & PSR_CWP & (NWINDOWS - 1)); \
+ cpu_set_cwp(env, _tmp & PSR_CWP); \
} while (0)
#ifdef TARGET_SPARC64