From b6a08919e932614b5cb64150c432f8153375ee44 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Sun, 13 Sep 2020 12:53:05 +0100 Subject: [PATCH] sim: Replace any getDTBPtr/getITBPtr usage JIRA: https://gem5.atlassian.net/browse/GEM5-790 Change-Id: Ibd78bef263d186889f4533583ff30f46a0a8643f Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34981 Tested-by: kokoro Maintainer: Jason Lowe-Power Reviewed-by: Jason Lowe-Power --- src/sim/mem_state.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/sim/mem_state.cc b/src/sim/mem_state.cc index bcfab7859..7adee590a 100644 --- a/src/sim/mem_state.cc +++ b/src/sim/mem_state.cc @@ -30,7 +30,7 @@ #include -#include "arch/generic/tlb.hh" +#include "arch/generic/mmu.hh" #include "debug/Vma.hh" #include "mem/se_translating_port_proxy.hh" #include "sim/process.hh" @@ -258,8 +258,7 @@ MemState::unmapRegion(Addr start_addr, Addr length) * that can flush just part of the address space. */ for (auto *tc: _ownerProcess->system->threads) { - tc->getDTBPtr()->flushAll(); - tc->getITBPtr()->flushAll(); + tc->getMMUPtr()->flushAll(); } do { @@ -360,8 +359,7 @@ MemState::remapRegion(Addr start_addr, Addr new_start_addr, Addr length) * that can flush just part of the address space. */ for (auto *tc: _ownerProcess->system->threads) { - tc->getDTBPtr()->flushAll(); - tc->getITBPtr()->flushAll(); + tc->getMMUPtr()->flushAll(); } do { -- 2.30.2