diff options
author | David Hildenbrand <david@redhat.com> | 2020-09-28 14:27:14 +0200 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2020-10-02 13:52:49 +0200 |
commit | 9131bd01eceb2458abf89796d52c0eb8c5d5dace (patch) | |
tree | 37eca859d428b0975cf1c20f1fb70aeb39204ddc /target/s390x/translate.c | |
parent | 6645e4542fa2fcbd43f0df8c3a185e25edb366aa (diff) | |
download | qemu-9131bd01eceb2458abf89796d52c0eb8c5d5dace.zip qemu-9131bd01eceb2458abf89796d52c0eb8c5d5dace.tar.gz qemu-9131bd01eceb2458abf89796d52c0eb8c5d5dace.tar.bz2 |
s390x/tcg: Implement BRANCH INDIRECT ON CONDITION (BIC)
Just like BRANCH ON CONDITION - however the address is read from memory
(always 8 bytes are read), we have to wrap the address manually. The
address is read using current CPU DAT/address-space controls, just like
ordinary data.
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200928122717.30586-7-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target/s390x/translate.c')
-rw-r--r-- | target/s390x/translate.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/s390x/translate.c b/target/s390x/translate.c index 66a3693..27fb7af 100644 --- a/target/s390x/translate.c +++ b/target/s390x/translate.c @@ -5956,6 +5956,14 @@ static void in2_m2_64(DisasContext *s, DisasOps *o) } #define SPEC_in2_m2_64 0 +static void in2_m2_64w(DisasContext *s, DisasOps *o) +{ + in2_a2(s, o); + tcg_gen_qemu_ld64(o->in2, o->in2, get_mem_index(s)); + gen_addi_and_wrap_i64(s, o->in2, o->in2, 0); +} +#define SPEC_in2_m2_64w 0 + #ifndef CONFIG_USER_ONLY static void in2_m2_64a(DisasContext *s, DisasOps *o) { |