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_helper.c | |
parent | dc011987f266878ad29009e4fdbc27f666ab31d2 (diff) |
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_helper.c')
-rw-r--r-- | target-sparc/op_helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 11134cf124..cd9372716f 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -871,7 +871,7 @@ void do_done(void) PUT_CCR(env, env->tstate[env->tl] >> 32); env->asi = (env->tstate[env->tl] >> 24) & 0xff; env->pstate = (env->tstate[env->tl] >> 8) & 0xfff; - set_cwp(env->tstate[env->tl] & 0xff); + PUT_CWP64(env, env->tstate[env->tl] & 0xff); } void do_retry(void) @@ -882,7 +882,7 @@ void do_retry(void) PUT_CCR(env, env->tstate[env->tl] >> 32); env->asi = (env->tstate[env->tl] >> 24) & 0xff; env->pstate = (env->tstate[env->tl] >> 8) & 0xfff; - set_cwp(env->tstate[env->tl] & 0xff); + PUT_CWP64(env, env->tstate[env->tl] & 0xff); } #endif @@ -952,7 +952,7 @@ void do_interrupt(int intno) } #endif env->tstate[env->tl] = ((uint64_t)GET_CCR(env) << 32) | ((env->asi & 0xff) << 24) | - ((env->pstate & 0xfff) << 8) | (env->cwp & 0xff); + ((env->pstate & 0xfff) << 8) | GET_CWP64(env); env->tpc[env->tl] = env->pc; env->tnpc[env->tl] = env->npc; env->tt[env->tl] = intno; |