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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c
index 7ea209ea86..1ec15d28b1 100644
--- a/target-sparc/op.c
+++ b/target-sparc/op.c
@@ -844,6 +844,15 @@ void OPPROTO op_wrpsr(void)
FORCE_RET();
}
+void OPPROTO op_wrwim(void)
+{
+#if NWINDOWS == 32
+ env->wim = T0;
+#else
+ env->wim = T0 & ((1 << NWINDOWS) - 1);
+#endif
+}
+
void OPPROTO op_rett(void)
{
helper_rett();