On 27/4/21 15:33, Philippe Mathieu-Daudé wrote:
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.

Reported-by: Hansni Bu <https://launchpad.net/%7Ehansni/+contactuser>
Buglink: https://bugs.launchpad.net/qemu/+bug/1926277
Fixes: f249412c749 ("mips: Add MT halting and waking of VPEs")
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
Supersedes: <20210427103555.112652-1-f4...@amsat.org>
v2: Check VPEConf0.MVP bit (hansni)
---
  target/mips/cp0_helper.c | 32 ++++++++++++++++++--------------
  1 file changed, 18 insertions(+), 14 deletions(-)

Patch queued.

Reply via email to