diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-07 20:53:22 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-07 20:53:22 +0000 |
commit | 17d996e1f1de8057b3bb88b753e65735a6d8f191 (patch) | |
tree | b7be26128bdefe59daf660ae4bf976b1a0bafc8d /target-sparc/op.c | |
parent | dc011987f266878ad29009e4fdbc27f666ab31d2 (diff) | |
download | qemu-17d996e1f1de8057b3bb88b753e65735a6d8f191.zip qemu-17d996e1f1de8057b3bb88b753e65735a6d8f191.tar.gz qemu-17d996e1f1de8057b3bb88b753e65735a6d8f191.tar.bz2 |
Report normalised CWP values to userland and GDB, not internal representation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3052 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op.c')
-rw-r--r-- | target-sparc/op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c index c0aee8f..4ab0667 100644 --- a/target-sparc/op.c +++ b/target-sparc/op.c @@ -1184,12 +1184,12 @@ void OPPROTO op_wrpstate(void) // order. void OPPROTO op_rdcwp(void) { - T0 = NWINDOWS - 1 - env->cwp; + T0 = GET_CWP64(env); } void OPPROTO op_wrcwp(void) { - env->cwp = NWINDOWS - 1 - T0; + PUT_CWP64(env, T0); } /* XXX: use another pointer for %iN registers to avoid slow wrapping |