MIPS: Fix tlbwi/tlbwr
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Sep 2008 17:09:56 +0000 (17:09 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Sep 2008 17:09:56 +0000 (17:09 +0000)
commit45d670dd551e804fcb2a90480f39e8b7c33f1787
treeb0da0d9b64891f15fdbdf8fc941753cb6658d049
parent1a59b931e341e0ec2d687ba96574b840b255f589
MIPS: Fix tlbwi/tlbwr

In CP0 Index register, bit 31 means 'Probe Failure', while lowest bits
contain the TLB index.

In tlbwi and tlbwr instructions, this Probe Failure bit must be ignored
when reading the TLB index.

Attached patch fixes it.

(HervĂ© Poussineau)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5215 c046a42c-6fe2-441c-8c8c-71466251a162
target-mips/op_helper.c