diff options
author | Richard Henderson <rth@twiddle.net> | 2012-08-27 10:58:59 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-01-05 12:18:43 -0800 |
commit | fc778b55a5ae45abac2a94d591e7490622917872 (patch) | |
tree | 0bcd435a6cd6689998a076cd1378784988fd1f84 /target-s390x/translate.c | |
parent | d14b3e09b21a297fddc62c0c7839156022079d05 (diff) | |
download | qemu-fc778b55a5ae45abac2a94d591e7490622917872.tar.gz qemu-fc778b55a5ae45abac2a94d591e7490622917872.tar.bz2 qemu-fc778b55a5ae45abac2a94d591e7490622917872.zip |
target-s390: Convert STFL
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-s390x/translate.c')
-rw-r--r-- | target-s390x/translate.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 6f1f799d2d..b5cc573b6e 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -1033,15 +1033,6 @@ static void disas_b2(CPUS390XState *env, DisasContext *s, int op, LOG_DISAS("disas_b2: op 0x%x r1 %d r2 %d\n", op, r1, r2); switch (op) { - case 0xb1: /* STFL D2(B2) [S] */ - /* Store Facility List (CPU features) at 200 */ - check_privileged(s); - tmp2 = tcg_const_i64(0xc0000000); - tmp = tcg_const_i64(200); - tcg_gen_qemu_st32(tmp2, tmp, get_mem_index(s)); - tcg_temp_free_i64(tmp2); - tcg_temp_free_i64(tmp); - break; case 0xb2: /* LPSWE D2(B2) [S] */ /* Load PSW Extended */ check_privileged(s); @@ -2875,6 +2866,20 @@ static ExitStatus op_spt(DisasContext *s, DisasOps *o) return NO_EXIT; } +static ExitStatus op_stfl(DisasContext *s, DisasOps *o) +{ + TCGv_i64 f, a; + /* We really ought to have more complete indication of facilities + that we implement. Address this when STFLE is implemented. */ + check_privileged(s); + f = tcg_const_i64(0xc0000000); + a = tcg_const_i64(200); + tcg_gen_qemu_st32(f, a, get_mem_index(s)); + tcg_temp_free_i64(f); + tcg_temp_free_i64(a); + return NO_EXIT; +} + static ExitStatus op_stpt(DisasContext *s, DisasOps *o) { check_privileged(s); |