]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/mips: Only update MVPControl.EVP bit if executed by master VPE
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 27 Apr 2021 13:33:37 +0000 (15:33 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 29 Jul 2025 11:56:15 +0000 (13:56 +0200)
commite895095c78ab877d40df2dd31ee79d85757d963b
tree4fce503472496909c34f8d7e8abd035f9c6cfbcd
parentc017386f28c03a03b8f14444f8671d3d8f7180fe
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: f249412c749 ("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>
target/mips/tcg/system/cp0_helper.c