aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2017-05-09 10:27:59 +0200
committerRichard Henderson <rth@twiddle.net>2017-05-12 15:48:02 -0700
commit1e8e69f08b05065b9c1a85715773cf844bfa27dd (patch)
treeabe6a4895367fde21b63624abe14866f91a8a647
parenta7c1fadf00027d8ff16326f4ea1548e3fdbc4a55 (diff)
downloadqemu-1e8e69f08b05065b9c1a85715773cf844bfa27dd.zip
qemu-1e8e69f08b05065b9c1a85715773cf844bfa27dd.tar.gz
qemu-1e8e69f08b05065b9c1a85715773cf844bfa27dd.tar.bz2
target/s390x: fix SIGNAL PROCESSOR return value
The SIGNAL PROCESSOR helper returns its value through the CC register. set_cc_static should be called just after the helper. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Message-Id: <20170509082800.10756-3-aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
-rw-r--r--target/s390x/translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/s390x/translate.c b/target/s390x/translate.c
index 19276cc..3a0a3ee 100644
--- a/target/s390x/translate.c
+++ b/target/s390x/translate.c
@@ -3406,6 +3406,7 @@ static ExitStatus op_sigp(DisasContext *s, DisasOps *o)
check_privileged(s);
potential_page_fault(s);
gen_helper_sigp(cc_op, cpu_env, o->in2, r1, o->in1);
+ set_cc_static(s);
tcg_temp_free_i32(r1);
return NO_EXIT;
}