[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
This commit is contained in:
aurel32 2008-08-22 08:57:27 +00:00
parent f3d8b1eb10
commit 833ed38689
5 changed files with 17 additions and 2 deletions

View file

@ -41,6 +41,7 @@ static inline int cpu_halted(CPUState *env) {
return 0;
if (env->interrupt_request & CPU_INTERRUPT_HARD) {
env->halted = 0;
env->intr_at_halt = 1;
return 0;
}
return EXCP_HALTED;