From bf3a588afd8445a572d1cef07abfd50c3db47f96 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Sun, 13 Dec 2020 23:25:32 -0800 Subject: dts: mmu: replace 'riscv,bare' by 'riscv,sbare' Signed-off-by: Chih-Min Chao --- riscv/sim.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscv/sim.cc') diff --git a/riscv/sim.cc b/riscv/sim.cc index 20895d6..5fff0ed 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -120,14 +120,14 @@ sim_t::sim_t(const char* isa, const char* priv, const char* varch, char mmu_type[256] = ""; rc = fdt_parse_mmu_type(fdt, cpu_offset, mmu_type); if (rc == 0) { - procs[cpu_idx]->set_mmu_capability(IMPL_MMU_BARE); + procs[cpu_idx]->set_mmu_capability(IMPL_MMU_SBARE); if (strncmp(mmu_type, "riscv,sv32", strlen("riscv,sv32")) == 0) { procs[cpu_idx]->set_mmu_capability(IMPL_MMU_SV32); } else if (strncmp(mmu_type, "riscv,sv39", strlen("riscv,sv39")) == 0) { procs[cpu_idx]->set_mmu_capability(IMPL_MMU_SV39); } else if (strncmp(mmu_type, "riscv,sv48", strlen("riscv,sv48")) == 0) { procs[cpu_idx]->set_mmu_capability(IMPL_MMU_SV48); - } else if (strncmp(mmu_type, "riscv,bare", strlen("riscv,bare")) == 0) { + } else if (strncmp(mmu_type, "riscv,sbare", strlen("riscv,sbare")) == 0) { //has been set in the beginning } else { std::cerr << "core (" -- cgit v1.1