diff options
author | Richard Henderson <rth@twiddle.net> | 2017-06-18 11:31:24 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2017-07-17 14:13:17 -0700 |
commit | be7acb58390c0107cedf355c38197963abfa9682 (patch) | |
tree | c842d1afcb32a82c798dee60461e0cdf472cd16b /target/s390x/translate.c | |
parent | 7591db780d9e464232e7ae692302ebe1dbb76141 (diff) |
target/s390x: Implement SRSTU
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/s390x/translate.c')
-rw-r--r-- | target/s390x/translate.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/s390x/translate.c b/target/s390x/translate.c index e37a56fc85..d83f2b9a60 100644 --- a/target/s390x/translate.c +++ b/target/s390x/translate.c @@ -4298,6 +4298,19 @@ static ExitStatus op_srst(DisasContext *s, DisasOps *o) return NO_EXIT; } +static ExitStatus op_srstu(DisasContext *s, DisasOps *o) +{ + TCGv_i32 r1 = tcg_const_i32(get_field(s->fields, r1)); + TCGv_i32 r2 = tcg_const_i32(get_field(s->fields, r2)); + + gen_helper_srstu(cpu_env, r1, r2); + + tcg_temp_free_i32(r1); + tcg_temp_free_i32(r2); + set_cc_static(s); + return NO_EXIT; +} + static ExitStatus op_sub(DisasContext *s, DisasOps *o) { tcg_gen_sub_i64(o->out, o->in1, o->in2); |