target-mips: fix CP0.BadVAddr by stopping translation on Address Error
commit62c688693bf2f0355fc5bad5dcc59c1cd2a51f1a
authorLeon Alrae <leon.alrae@imgtec.com>
Mon, 16 Mar 2015 16:54:42 +0000 (16 16:54 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Wed, 18 Mar 2015 09:58:15 +0000 (18 09:58 +0000)
tree5d1a8d8b31e7d2ae028380bb7d1a030a1858edc2
parent5a4992834daec85c3913654903fb9f4f954e585a
target-mips: fix CP0.BadVAddr by stopping translation on Address Error

CP0.BadVAddr is supposed to capture the most recent virtual address that caused
the exception. Currently this does not work correctly for unaligned instruction
fetch as translation is not stopped and CP0.BadVAddr is updated with subsequent
addresses.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/translate.c