From 1e8e69f08b05065b9c1a85715773cf844bfa27dd Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Tue, 9 May 2017 10:27:59 +0200 Subject: 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 Message-Id: <20170509082800.10756-3-aurelien@aurel32.net> Signed-off-by: Richard Henderson --- target/s390x/translate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target') diff --git a/target/s390x/translate.c b/target/s390x/translate.c index 19276cc063..3a0a3ee519 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; } -- cgit v1.2.3-55-g7522