]> git.proxmox.com Git - qemu.git/blobdiff - target-sh4/op_helper.c
smc91c111: Fix receive starvation
[qemu.git] / target-sh4 / op_helper.c
index 09e3d23aff1c49d5cc380625822ceb5d26fe7381..e955e810b5170c5d878c89d20ecbd9562ebfb569 100644 (file)
@@ -102,7 +102,9 @@ void helper_debug(CPUSH4State *env)
 
 void helper_sleep(CPUSH4State *env)
 {
-    env->halted = 1;
+    CPUState *cs = CPU(sh_env_get_cpu(env));
+
+    cs->halted = 1;
     env->in_sleep = 1;
     raise_exception(env, EXCP_HLT, 0);
 }