qemu-e2k/target/s390x/tcg
Ilya Leoshkevich 349372ff9e target/s390x: Fix relative long instructions with large offsets
The expression "imm * 2" in gen_ri2() can wrap around if imm is large
enough.

Fix by casting imm to int64_t, like it's done in disas_jdest().

Fixes: e8ecdfeb30 ("Fix EXECUTE of relative branches")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230704081506.276055-8-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2023-07-10 15:34:24 +02:00
..
cc_helper.c
crypto_helper.c
excp_helper.c
fpu_helper.c target/s390x: Fix MDEB and MDEBR 2023-07-10 15:34:23 +02:00
insn-data.h.inc target/s390x: Fix MDEB and MDEBR 2023-07-10 15:34:23 +02:00
insn-format.h.inc
int_helper.c
mem_helper.c target/s390x: Fix LRA overwriting the top 32 bits on DAT error 2023-07-10 15:34:24 +02:00
meson.build
misc_helper.c
s390-tod.h
tcg_s390x.h
translate_vx.c.inc
translate.c target/s390x: Fix relative long instructions with large offsets 2023-07-10 15:34:24 +02:00
vec_fpu_helper.c
vec_helper.c
vec_int_helper.c
vec_string_helper.c
vec.h