aboutsummaryrefslogtreecommitdiff
path: root/target/xtensa/helper.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2019-03-13 12:40:38 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2019-05-10 16:59:27 -0700
commit4d04ea35b30f9ba4097b746622eea07be3f2c363 (patch)
tree97ad9c55ea960abc5025039fb891d47d261017af /target/xtensa/helper.h
parent631a77a03bc8905790af6fe3fd44c6c7ff285c73 (diff)
target/xtensa: implement MPU option
The Memory Protection Unit Option (MPU) is a combined instruction and data memory protection unit with more protection flexibility than the Region Protection Option or the Region Translation Option but without any translation capability. It does no demand paging and does not reference a memory-based page table. Add memory protection unit option, internal state, SRs and opcodes. Implement MPU entries dumping in dump_mmu. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa/helper.h')
-rw-r--r--target/xtensa/helper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/xtensa/helper.h b/target/xtensa/helper.h
index 0b9ec670c8..9216bee57e 100644
--- a/target/xtensa/helper.h
+++ b/target/xtensa/helper.h
@@ -33,6 +33,11 @@ DEF_HELPER_FLAGS_3(rtlb1, TCG_CALL_NO_RWG_SE, i32, env, i32, i32)
DEF_HELPER_3(itlb, void, env, i32, i32)
DEF_HELPER_3(ptlb, i32, env, i32, i32)
DEF_HELPER_4(wtlb, void, env, i32, i32, i32)
+DEF_HELPER_2(wsr_mpuenb, void, env, i32)
+DEF_HELPER_3(wptlb, void, env, i32, i32)
+DEF_HELPER_FLAGS_2(rptlb0, TCG_CALL_NO_RWG_SE, i32, env, i32)
+DEF_HELPER_FLAGS_2(rptlb1, TCG_CALL_NO_RWG_SE, i32, env, i32)
+DEF_HELPER_2(pptlb, i32, env, i32)
DEF_HELPER_2(wsr_ibreakenable, void, env, i32)
DEF_HELPER_3(wsr_ibreaka, void, env, i32, i32)