]> git.proxmox.com Git - qemu.git/blobdiff - target-sh4/op_helper.c
SH4: sleep instruction bug fix
[qemu.git] / target-sh4 / op_helper.c
index 48a170f79c7f13e88b5a6f41daeea8a42d0ba1ce..e5b3c98ab4d61bfca220abce5bbe35c789dd12bd 100644 (file)
@@ -94,10 +94,11 @@ void helper_debug(void)
     cpu_loop_exit();
 }
 
-void helper_sleep(void)
+void helper_sleep(uint32_t next_pc)
 {
     env->halted = 1;
     env->exception_index = EXCP_HLT;
+    env->pc = next_pc;
     cpu_loop_exit();
 }