qemu/target/mips/tcg
Philippe Mathieu-Daudé e895095c78 target/mips: Only update MVPControl.EVP bit if executed by master VPE
According to the 'MIPS MT Application-Specific Extension' manual:

  If the VPE executing the instruction is not a Master VPE,
  with the MVP bit of the VPEConf0 register set, the EVP bit
  is unchanged by the instruction.

Modify the DVPE/EVPE opcodes to only update the MVPControl.EVP bit
if executed on a master VPE.

Cc: qemu-stable@nongnu.org
Reported-by: Hansni Bu
Buglink: https://bugs.launchpad.net/qemu/+bug/1926277
Fixes: f249412c74 ("mips: Add MT halting and waking of VPEs")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-ID: <20210427133343.159718-1-f4bug@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-07-29 13:56:15 +02:00
..
system target/mips: Only update MVPControl.EVP bit if executed by master VPE 2025-07-29 13:56:15 +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_translate.c tcg: Rename cpu_env to tcg_env 2023-10-03 08:01:02 -07:00
lcsr.decode target/mips: Implement Loongson CSR instructions 2023-07-10 23:33:37 +02: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_translate.c target/mips: Remove unreachable 32-bit code on 64-bit Loongson Ext 2024-11-03 05:52:49 -03:00
loong-ext.decode target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree 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_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
msa.decode target/mips: Fix MSA BZ/BNZ opcodes displacement 2023-11-07 12:13:28 +01: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_translate.c target/mips: Convert Octeon LX instructions to decodetree 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
op_helper.c 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
rel6.decode target/mips: Add support for emulation of CRC32 instructions 2025-07-15 00:07:46 +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_addr_const.c target/mips: Have gen_[d]lsa() callers add 1 to shift amount argument 2025-07-15 00:23:09 +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
tx79_translate.c target/mips: Replace MO_TE by mo_endian() 2024-10-15 12:18:09 -03:00
tx79.decode target/mips: Fix TX79 LQ/SQ opcodes 2023-11-07 12:13:28 +01:00
txx9_translate.c target/mips: Move TCG source files under tcg/ sub directory 2021-05-02 16:49:35 +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
vr54xx.decode target/mips: Convert Vr54xx MSA* opcodes to decodetree 2021-08-25 13:02:14 +02:00