Skip to content

Commit

Permalink
target/s390x: fix SIGNAL PROCESSOR return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aurel32 authored and rth7680 committed May 12, 2017
1 parent a7c1fad commit 1e8e69f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/s390x/translate.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1e8e69f

Please sign in to comment.