projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff21f70
)
cris: Mask interrupts on dslots for CRISv10.
author
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Sat, 20 Feb 2010 18:17:29 +0000
(19:17 +0100)
committer
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Sat, 20 Feb 2010 18:17:29 +0000
(19:17 +0100)
CRISv10 cores (unlike v32) do not take any interrupts while delayed
jumps are pending (delay slots).
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-cris/translate_v10.c
patch
|
blob
|
history
diff --git
a/target-cris/translate_v10.c
b/target-cris/translate_v10.c
index 9a29c51171dc37cc8baab6b9efb127316e99ca72..9abf1a837c7f50525615485a33d2286e4e7e8446 100644
(file)
--- a/
target-cris/translate_v10.c
+++ b/
target-cris/translate_v10.c
@@
-1187,6
+1187,10
@@
static unsigned int crisv10_decoder(DisasContext *dc)
dc->cpustate_changed = 1;
}
+ /* CRISv10 locks out interrupts on dslots. */
+ if (dc->delayed_branch == 2) {
+ cris_lock_irq(dc);
+ }
return insn_len;
}