projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[sh4] sleep instruction
[qemu]
/
target-sh4
/
helper.c
diff --git
a/target-sh4/helper.c
b/target-sh4/helper.c
index
917f02f
..
bdbf70e
100644
(file)
--- a/
target-sh4/helper.c
+++ b/
target-sh4/helper.c
@@
-87,9
+87,10
@@
void do_interrupt(CPUState * env)
if (do_exp && env->exception_index != 0x1e0) {
env->exception_index = 0x000; /* masked exception -> reset */
}
- if (do_irq) {
+ if (do_irq && !env->intr_at_halt) {
return; /* masked */
}
+ env->intr_at_halt = 0;
}
if (do_irq) {