mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
SH4: sleep instruction bug fix
fix a bug on 'sleep' instruction, which have caused halt of idle task. As i386 'hlt' instruction does, it should save PC before sleep. (Shin-ichiro KAWASAKI) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5220 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9f4576f08b
commit
f24f381b2d
3 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue