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)
commitbbc0d79cb7ab5b2214cd984638ff8e0faa366fcf
treeb0da0d9b64891f15fdbdf8fc941753cb6658d049
parent75973fa1ee9afe3bf35c4a9ae6898ac126ebfb09
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