summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar@axis.com>2011-01-13 15:14:04 +0100
committerEdgar E. Iglesias <edgar@axis.com>2011-01-13 15:14:04 +0100
commitd03d11260ee2d55579e8b76116e35ccdf5031833 (patch)
treee17cb87eadca08fb7f9e2911dab039372bd336ca
parentfacf1a60f29853590073f321e3cba491a5ee097a (diff)
downloadhqemu-d03d11260ee2d55579e8b76116e35ccdf5031833.zip
hqemu-d03d11260ee2d55579e8b76116e35ccdf5031833.tar.gz
cris: Set btaken when storing direct jumps
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>
-rw-r--r--target-cris/translate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index e09aaa9..f4cc125 100644
--- 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;
}
OpenPOWER on IntegriCloud