qemu-e2k/target/s390x/tcg
Ilya Leoshkevich df103c09bc target/s390x: Fix cc_calc_sla_64() missing overflows
An overflow occurs for SLAG when at least one shifted bit is not equal
to sign bit. Therefore, we need to check that `shift + 1` bits are
neither all 0s nor all 1s. The current code checks only `shift` bits,
missing some overflows.

Fixes: cbe24bfa91 ("target-s390: Convert SHIFT, ROTATE SINGLE")
Co-developed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20220112165016.226996-4-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2022-01-17 08:36:33 +01:00
..
cc_helper.c target/s390x: Fix cc_calc_sla_64() missing overflows 2022-01-17 08:36:33 +01:00
crypto_helper.c target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
excp_helper.c target/s390x: Implement s390x_cpu_record_sigbus 2021-11-02 07:00:52 -04:00
fpu_helper.c target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
insn-data.def target/s390x: Fix SLDA sign bit index 2022-01-17 08:36:33 +01:00
insn-format.def target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
int_helper.c target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
mem_helper.c exec/memop: Adding signedness to quad definitions 2022-01-08 15:46:10 +10:00
meson.build target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
misc_helper.c s390x/tcg: fix and optimize SPX (SET PREFIX) 2021-09-06 16:23:16 +02:00
s390-tod.h target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
tcg_s390x.h target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
translate.c target/s390x: Fix SRDA CC calculation 2022-01-17 08:36:33 +01:00
translate_vx.c.inc exec/memop: Adding signedness to quad definitions 2022-01-08 15:46:10 +10:00
vec.h target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
vec_fpu_helper.c target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
vec_helper.c target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
vec_int_helper.c target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00
vec_string_helper.c target/s390x: start moving TCG-only code to tcg/ 2021-07-07 14:01:56 +02:00