target-microblaze: Bypass MMU with MMU_NOMMU_IDX
Bypass MMU translation when mmu-index MMU_NOMMU_IDX is used. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
9e50a927b4
commit
a2de5ca451
@ -58,7 +58,8 @@ int mb_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int size, int rw,
|
||||
int prot;
|
||||
|
||||
/* Translate if the MMU is available and enabled. */
|
||||
if (cpu->cfg.use_mmu && (env->sregs[SR_MSR] & MSR_VM)) {
|
||||
if (cpu->cfg.use_mmu && (env->sregs[SR_MSR] & MSR_VM)
|
||||
&& mmu_idx != MMU_NOMMU_IDX) {
|
||||
uint32_t vaddr, paddr;
|
||||
struct microblaze_mmu_lookup lu;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user