You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/target/s390x/tcg
Ilya Leoshkevich fc976a67de target/s390x: Use address generation for register branch targets
Indirect branches to addresses taken from registers go through address
generation, e.g., for BRANCH ON CONDITION Principles of Operation says:

    In the RR format, the contents of general register R2 are used to
    generate the branch address

QEMU uses r2_nz handler for the respective register operands. Currently
it does not zero out extra bits in 24- and 31-bit addressing modes as
required by address generation. The very frequently used
s390x_tr_init_disas_context() function has a workaround for this,
but the code for saving an old PSW during an interrupt does not.

Add the missing masking to r2_nz. Enforce PSW validity by replacing the
workaround with an assertion.

Reported-by: Thomas Weißschuh <linux@weissschuh.net>
Reported-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/lkml/ab3131a2-c42a-47ff-bf03-e9f68ac053c0@t-8ch.de/
Cc: qemu-stable@nongnu.org
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Thomas Weißschuh <linux@weissschuh.net>
Message-ID: <20251016175954.41153-4-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
5 days ago
..
cc_helper.c include: Remove 'exec/exec-all.h' 6 months ago
crypto_helper.c include: Remove 'exec/exec-all.h' 6 months ago
excp_helper.c target/s390x: call plugin trap callbacks 1 week ago
fpu_helper.c include: Remove 'exec/exec-all.h' 6 months ago
insn-data.h.inc target/s390x: Fix PPNO execution with icount 9 months ago
insn-format.h.inc target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc 3 years ago
int_helper.c include: Remove 'exec/exec-all.h' 6 months ago
mem_helper.c target/s390x: Fix missing clock-comparator interrupts after reset 5 days ago
meson.build
misc_helper.c target/s390x: Fix missing interrupts for small CKC values 5 days ago
s390-tod.h
tcg_s390x.h compiler.h: replace QEMU_NORETURN with G_NORETURN 4 years ago
translate.c target/s390x: Use address generation for register branch targets 5 days ago
translate_vx.c.inc target/s390x: Replace HOST_BIG_ENDIAN #ifdef with if() check 3 weeks ago
vec.h Replace config-time define HOST_WORDS_BIGENDIAN 4 years ago
vec_fpu_helper.c include: Remove 'exec/exec-all.h' 6 months ago
vec_helper.c include: Remove 'exec/exec-all.h' 6 months ago
vec_int_helper.c target/s390x: Use clmul_64 2 years ago
vec_string_helper.c target/s390x: Fix the "ignored match" case in VSTRS 2 years ago