target-mips: fix updating XContext on mmu exception
commit60270f85cc93d2d34e45b7679c374b1d771f0eeb
authorYongbok Kim <yongbok.kim@imgtec.com>
Thu, 29 Oct 2015 17:17:52 +0000 (29 17:17 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 30 Oct 2015 14:36:19 +0000 (30 14:36 +0000)
treefa7bd832b6c0b3980e34e24eb014eadd3ec30395
parentbb238210bb096534b68dab15a87c6ff0bef43672
target-mips: fix updating XContext on mmu exception

Correct updating XContext.Region field on mmu exceptions.
If Config3.CTXTC = 0 then the R field of XContext has to be updated
with the value of bits 63..62 of the virtual address upon a TLB
exception.
Also fixed the below line which overs 80 characters.

Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/helper.c