summaryrefslogtreecommitdiffstats
path: root/target/mips/helper.h
diff options
context:
space:
mode:
authorJames Hogan2017-07-18 13:55:56 +0200
committerYongbok Kim2017-07-20 23:42:26 +0200
commitcec56a733dd2c3fa81dbedbecf03922258747f7d (patch)
treec8cac93783b4fd91c05c7ef2ef58b958961be694 /target/mips/helper.h
parenttarget/mips: Add an MMU mode for ERL (diff)
downloadqemu-cec56a733dd2c3fa81dbedbecf03922258747f7d.tar.gz
qemu-cec56a733dd2c3fa81dbedbecf03922258747f7d.tar.xz
qemu-cec56a733dd2c3fa81dbedbecf03922258747f7d.zip
target/mips: Add segmentation control registers
The optional segmentation control registers CP0_SegCtl0, CP0_SegCtl1 & CP0_SegCtl2 control the behaviour and required privilege of the legacy virtual memory segments. Add them to the CP0 interface so they can be read and written when CP0_Config3.SC=1, and initialise them to describe the standard legacy layout so they can be used in future patches regardless of whether they are exposed to the guest. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Yongbok Kim <yongbok.kim@imgtec.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Diffstat (limited to 'target/mips/helper.h')
-rw-r--r--target/mips/helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/mips/helper.h b/target/mips/helper.h
index 60efa01194..5f492348dd 100644
--- a/target/mips/helper.h
+++ b/target/mips/helper.h
@@ -115,6 +115,9 @@ DEF_HELPER_2(mtc0_entrylo1, void, env, tl)
DEF_HELPER_2(mtc0_context, void, env, tl)
DEF_HELPER_2(mtc0_pagemask, void, env, tl)
DEF_HELPER_2(mtc0_pagegrain, void, env, tl)
+DEF_HELPER_2(mtc0_segctl0, void, env, tl)
+DEF_HELPER_2(mtc0_segctl1, void, env, tl)
+DEF_HELPER_2(mtc0_segctl2, void, env, tl)
DEF_HELPER_2(mtc0_wired, void, env, tl)
DEF_HELPER_2(mtc0_srsconf0, void, env, tl)
DEF_HELPER_2(mtc0_srsconf1, void, env, tl)