target-mips: update PageGrain and m{t,f}c0 EntryLo{0,1}
commit7207c7f9d74816c32783a394d8072d1f978157ac
authorLeon Alrae <leon.alrae@imgtec.com>
Mon, 7 Jul 2014 10:23:59 +0000 (7 11:23 +0100)
committerLeon Alrae <leon.alrae@imgtec.com>
Mon, 3 Nov 2014 11:48:34 +0000 (3 11:48 +0000)
tree05c22755fc89eceee9d23533de96bc06d9abdd97
parent2fb58b73746e2f99ac85e82160277b18b18279be
target-mips: update PageGrain and m{t,f}c0 EntryLo{0,1}

PageGrain needs rw bitmask which differs between MIPS architectures.
In pre-R6 if RIXI is supported, PageGrain.XIE and PageGrain.RIE are writeable,
whereas in R6 they are read-only 1.

On MIPS64 mtc0 instruction left shifts bits 31:30 for MIPS32 backward
compatiblity, therefore there are separate mtc0 and dmtc0 helpers.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
target-mips/cpu.h
target-mips/helper.h
target-mips/op_helper.c
target-mips/translate.c
target-mips/translate_init.c