mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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:
parent
dc011987f2
commit
17d996e1f1
4 changed files with 25 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue