aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/op.c')
-rw-r--r--target-sparc/op.c4
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