]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 29 Jul 2025 17:03:24 +0000 (20:03 +0300)
commit3891ba6581a38d5276b940c328ea75167467ee07
tree49c8c011cc6d09aafba5a5e13b5d981ba09ae045
parent2da4045a3cfe1adc191c5fa7e73f160d7e45947e
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>
(cherry picked from commit e895095c78ab877d40df2dd31ee79d85757d963b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/mips/tcg/system/cp0_helper.c