summaryrefslogtreecommitdiffstats
path: root/target-cris
authorEdgar E. Iglesias <[email protected]>2011-01-13 14:14:04 (GMT)
committer Edgar E. Iglesias <[email protected]>2011-01-13 14:14:04 (GMT)
commitd03d11260ee2d55579e8b76116e35ccdf5031833 (patch) (side-by-side diff)
treee17cb87eadca08fb7f9e2911dab039372bd336ca /target-cris
parentfacf1a60f29853590073f321e3cba491a5ee097a (diff)
downloadqemu-kvm-d03d11260ee2d55579e8b76116e35ccdf5031833.zip
qemu-kvm-d03d11260ee2d55579e8b76116e35ccdf5031833.tar.gz
qemu-kvm-d03d11260ee2d55579e8b76116e35ccdf5031833.tar.bz2
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 <[email protected]>
Diffstat (limited to 'target-cris') (more/less context) (ignore whitespace changes)
-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;
}