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
This commit is contained in:
blueswir1 2007-07-07 20:53:22 +00:00
parent dc011987f2
commit 17d996e1f1
4 changed files with 25 additions and 9 deletions

View file

@ -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