From 833ed38689cca2b024f7952269f17d7bf2ab6de4 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Fri, 22 Aug 2008 08:57:27 +0000 Subject: [sh4] sleep instruction This patch adds sleep instruction. (Shin-ichiro KAWASAKI) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5065 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sh4/op.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target-sh4/op.c') diff --git a/target-sh4/op.c b/target-sh4/op.c index 22d49138fb..37ac93099a 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" -- cgit v1.2.3