target-mips: make ITC Configuration Tags accessible to the CPU
commit0d74a222c27e26fc40f4f6120c61c3f9ceaa3776
authorLeon Alrae <leon.alrae@imgtec.com>
Fri, 25 Mar 2016 13:49:36 +0000 (25 13:49 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Wed, 30 Mar 2016 08:14:00 +0000 (30 09:14 +0100)
treec2b00f3e999a86c58ff15eb43ce07421d1b90b25
parent40d48212f934d4deab40ffe84a0f9c4c553d4742
target-mips: make ITC Configuration Tags accessible to the CPU

Add CP0.ErrCtl register with WST, SPR and ITC bits. In 34K and interAptiv
processors these bits are used to enable CACHE instruction access to
different arrays. When WST=0, SPR=0 and ITC=1 the CACHE instruction will
access ITC tag values.

Generally we do not model caches and we have been treating the CACHE
instruction as NOP. But since CACHE can operate on ITC Tags new
MIPS_HFLAG_ITC_CACHE hflag is introduced to generate the helper only when
CACHE is in the ITC Access mode.

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