aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-09-22 05:25:09 -0700
committerRichard Henderson <rth@twiddle.net>2013-01-05 12:00:27 -0800
commit9d126faf4279b324d5c4cdf09a3570d4a2041626 (patch)
tree4ff653021cff11bdffa45e9a86cf03d0463f3a3f
parentafd43fecfe7f6e863884b850f53fac4a75c28d84 (diff)
downloadqemu-9d126faf4279b324d5c4cdf09a3570d4a2041626.zip
qemu-9d126faf4279b324d5c4cdf09a3570d4a2041626.tar.gz
qemu-9d126faf4279b324d5c4cdf09a3570d4a2041626.tar.bz2
target-s390: Fix BCR
There were are two exit paths for which we forgot to copy s->cc_op back to the tcg register. Signed-off-by: Richard Henderson <rth@twiddle.net>
-rw-r--r--target-s390x/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index 4898c7b..79ab3e5 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -1212,6 +1212,7 @@ static void gen_bcr(DisasContext *s, uint32_t mask, TCGv_i64 target,
if (mask == 0xf) {
/* unconditional */
+ gen_update_cc_op(s);
tcg_gen_mov_i64(psw_addr, target);
tcg_gen_exit_tb(0);
} else if (mask == 0) {
@@ -1223,6 +1224,7 @@ static void gen_bcr(DisasContext *s, uint32_t mask, TCGv_i64 target,
tcg_gen_mov_i64(new_addr, target);
skip = gen_new_label();
gen_jcc(s, mask, skip);
+ gen_update_cc_op(s);
tcg_gen_mov_i64(psw_addr, new_addr);
tcg_temp_free_i64(new_addr);
tcg_gen_exit_tb(0);