projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
facf1a6
)
cris: Set btaken when storing direct jumps
author
Edgar E. Iglesias
<edgar@axis.com>
Thu, 13 Jan 2011 14:14:04 +0000
(15:14 +0100)
committer
Edgar E. Iglesias
<edgar@axis.com>
Thu, 13 Jan 2011 14:14:04 +0000
(15:14 +0100)
When storing a direct jmp from translation state into
runtime state we should set the btaken flag.
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
target-cris/translate.c
patch
|
blob
|
history
diff --git
a/target-cris/translate.c
b/target-cris/translate.c
index e09aaa9e9d13894808b9fb0a0eb093cb683fc8c0..f4cc1252a5a484197b4fa7582cad8e7e4d632498 100644
(file)
--- a/
target-cris/translate.c
+++ b/
target-cris/translate.c
@@
-1129,6
+1129,9
@@
static void cris_store_direct_jmp(DisasContext *dc)
{
/* Store the direct jmp state into the cpu-state. */
if (dc->jmp == JMP_DIRECT || dc->jmp == JMP_DIRECT_CC) {
+ if (dc->jmp == JMP_DIRECT) {
+ tcg_gen_movi_tl(env_btaken, 1);
+ }
tcg_gen_movi_tl(env_btarget, dc->jmp_pc);
dc->jmp = JMP_INDIRECT;
}