diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-03-13 12:40:38 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-05-10 16:59:27 -0700 |
commit | 4d04ea35b30f9ba4097b746622eea07be3f2c363 (patch) | |
tree | 97ad9c55ea960abc5025039fb891d47d261017af /target/xtensa/cpu.c | |
parent | 631a77a03bc8905790af6fe3fd44c6c7ff285c73 (diff) | |
download | qemu-4d04ea35b30f9ba4097b746622eea07be3f2c363.zip qemu-4d04ea35b30f9ba4097b746622eea07be3f2c363.tar.gz qemu-4d04ea35b30f9ba4097b746622eea07be3f2c363.tar.bz2 |
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/cpu.c')
-rw-r--r-- | target/xtensa/cpu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c index a54dbe4..4215a18 100644 --- a/target/xtensa/cpu.c +++ b/target/xtensa/cpu.c @@ -78,7 +78,6 @@ static void xtensa_cpu_reset(CPUState *s) env->sregs[VECBASE] = env->config->vecbase; env->sregs[IBREAKENABLE] = 0; env->sregs[MEMCTL] = MEMCTL_IL0EN & env->config->memctl_mask; - env->sregs[CACHEATTR] = 0x22222222; env->sregs[ATOMCTL] = xtensa_option_enabled(env->config, XTENSA_OPTION_ATOMCTL) ? 0x28 : 0x15; env->sregs[CONFIGID0] = env->config->configid[0]; |