qemu-cr16/target/mips/tcg
Denis Rastyogin 1f82ca7234 target/mips: fix TLB huge page check to use 64-bit shift
Use extract64(entry, psn, 1) instead of (entry & (1 << psn)) to avoid
undefined behavior for shifts by 32–63 and to make bit extraction intent explicit.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Denis Rastyogin <gerben@altlinux.org>
Message-ID: <20250814104914.13101-1-gerben@altlinux.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-09-02 17:57:05 +02:00
..
system target/mips: fix TLB huge page check to use 64-bit shift 2025-09-02 17:57:05 +02:00
dsp_helper.c cleanup: Tweak and re-run return_directly.cocci 2022-12-14 16:19:35 +01:00
exception.c include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
fpu_helper.c include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
godson2.decode target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree 2024-11-03 05:52:49 -03:00
lcsr.decode target/mips: Implement Loongson CSR instructions 2023-07-10 23:33:37 +02:00
lcsr_translate.c tcg: Rename cpu_env to tcg_env 2023-10-03 08:01:02 -07:00
ldst_helper.c include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
lmmi_helper.c Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
loong-ext.decode target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree 2024-11-03 05:52:49 -03:00
loong_translate.c target/mips: Remove unreachable 32-bit code on 64-bit Loongson Ext 2024-11-03 05:52:49 -03:00
meson.build include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
micromips_translate.c.inc target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2025-07-15 00:23:09 +02:00
mips16e_translate.c.inc target/mips: Fix MIPS16e translation 2025-04-25 17:00:42 +02:00
msa.decode target/mips: Fix MSA BZ/BNZ opcodes displacement 2023-11-07 12:13:28 +01:00
msa_helper.c include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
msa_helper.h.inc target/mips: Move TCG source files under tcg/ sub directory 2021-05-02 16:49:35 +02:00
msa_translate.c target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2025-07-15 00:23:09 +02:00
mxu_translate.c target/mips: Replace MO_TE by mo_endian() 2024-10-15 12:18:09 -03:00
nanomips_translate.c.inc target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2025-07-15 00:23:09 +02:00
octeon.decode target/mips: Convert Octeon LX instructions to decodetree 2025-07-15 00:23:09 +02:00
octeon_translate.c target/mips: Convert Octeon LX instructions to decodetree 2025-07-15 00:23:09 +02:00
op_helper.c target/mips: Add support for emulation of CRC32 instructions 2025-07-15 00:07:46 +02:00
rel6.decode target/mips: Add support for emulation of CRC32 instructions 2025-07-15 00:07:46 +02:00
rel6_translate.c target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2025-07-15 00:23:09 +02:00
system_helper.h.inc include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
tcg-internal.h target/mips: Simplify and fix update_pagemask 2025-03-31 21:32:43 +02:00
trace-events target/mips: Move TCG trace events to tcg/ sub directory 2021-06-24 16:48:07 +02:00
trace.h target/mips: Move TCG trace events to tcg/ sub directory 2021-06-24 16:48:07 +02:00
translate.c target/mips: Convert Octeon LX instructions to decodetree 2025-07-15 00:23:09 +02:00
translate.h target/mips: Extract generic gen_lx() helper 2025-07-15 00:23:09 +02:00
translate_addr_const.c target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2025-07-15 00:23:09 +02:00
tx79.decode target/mips: Fix TX79 LQ/SQ opcodes 2023-11-07 12:13:28 +01:00
tx79_translate.c target/mips: Replace MO_TE by mo_endian() 2024-10-15 12:18:09 -03:00
txx9_translate.c target/mips: Move TCG source files under tcg/ sub directory 2021-05-02 16:49:35 +02:00
vr54xx.decode target/mips: Convert Vr54xx MSA* opcodes to decodetree 2021-08-25 13:02:14 +02:00
vr54xx_helper.c target/mips: Extract NEC Vr54xx helpers to vr54xx_helper.c 2021-08-25 13:02:14 +02:00
vr54xx_helper.h.inc target/mips: Extract NEC Vr54xx helper definitions 2021-08-25 13:02:14 +02:00
vr54xx_translate.c tcg: Rename cpu_env to tcg_env 2023-10-03 08:01:02 -07:00