summaryrefslogtreecommitdiffstats
path: root/target-sh4/op.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sh4/op.c')
-rw-r--r--target-sh4/op.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target-sh4/op.c b/target-sh4/op.c
index 22d4913..37ac930 100644
--- a/target-sh4/op.c
+++ b/target-sh4/op.c
@@ -1091,6 +1091,13 @@ void OPPROTO op_debug(void)
cpu_loop_exit();
}
+void OPPROTO op_sleep(void)
+{
+ env->halted = 1;
+ env->exception_index = EXCP_HLT;
+ cpu_loop_exit();
+}
+
/* Load and store */
#define MEMSUFFIX _raw
#include "op_mem.c"
OpenPOWER on IntegriCloud