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/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>
1 week ago
..
system target/mips: fix TLB huge page check to use 64-bit shift 1 week ago
dsp_helper.c cleanup: Tweak and re-run return_directly.cocci 3 years ago
exception.c include: Remove 'exec/exec-all.h' 4 months ago
fpu_helper.c include: Remove 'exec/exec-all.h' 4 months ago
godson2.decode target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree 10 months ago
lcsr.decode target/mips: Implement Loongson CSR instructions 2 years ago
lcsr_translate.c tcg: Rename cpu_env to tcg_env 2 years ago
ldst_helper.c include: Remove 'exec/exec-all.h' 4 months ago
lmmi_helper.c Replace config-time define HOST_WORDS_BIGENDIAN 3 years ago
loong-ext.decode target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree 10 months ago
loong_translate.c target/mips: Remove unreachable 32-bit code on 64-bit Loongson Ext 10 months ago
meson.build include: Rename sysemu/ -> system/ 9 months ago
micromips_translate.c.inc target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2 months ago
mips16e_translate.c.inc target/mips: Fix MIPS16e translation 5 months ago
msa.decode target/mips: Fix MSA BZ/BNZ opcodes displacement 2 years ago
msa_helper.c include: Remove 'exec/exec-all.h' 4 months ago
msa_helper.h.inc target/mips: Move TCG source files under tcg/ sub directory 4 years ago
msa_translate.c target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2 months ago
mxu_translate.c target/mips: Replace MO_TE by mo_endian() 11 months ago
nanomips_translate.c.inc target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2 months ago
octeon.decode target/mips: Convert Octeon LX instructions to decodetree 2 months ago
octeon_translate.c target/mips: Convert Octeon LX instructions to decodetree 2 months ago
op_helper.c target/mips: Add support for emulation of CRC32 instructions 2 months ago
rel6.decode target/mips: Add support for emulation of CRC32 instructions 2 months ago
rel6_translate.c target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2 months ago
system_helper.h.inc include: Rename sysemu/ -> system/ 9 months ago
tcg-internal.h target/mips: Simplify and fix update_pagemask 5 months ago
trace-events target/mips: Move TCG trace events to tcg/ sub directory 4 years ago
trace.h target/mips: Move TCG trace events to tcg/ sub directory 4 years ago
translate.c target/mips: Convert Octeon LX instructions to decodetree 2 months ago
translate.h target/mips: Extract generic gen_lx() helper 2 months ago
translate_addr_const.c target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2 months ago
tx79.decode target/mips: Fix TX79 LQ/SQ opcodes 2 years ago
tx79_translate.c target/mips: Replace MO_TE by mo_endian() 11 months ago
txx9_translate.c target/mips: Move TCG source files under tcg/ sub directory 4 years ago
vr54xx.decode target/mips: Convert Vr54xx MSA* opcodes to decodetree 4 years ago
vr54xx_helper.c target/mips: Extract NEC Vr54xx helpers to vr54xx_helper.c 4 years ago
vr54xx_helper.h.inc target/mips: Extract NEC Vr54xx helper definitions 4 years ago
vr54xx_translate.c tcg: Rename cpu_env to tcg_env 2 years ago