From: Giacomo Travaglini Date: Mon, 14 Sep 2020 08:57:22 +0000 (+0100) Subject: cpu, fastmodel: Remove the old getDTBPtr/getITBPtr virtual methods X-Git-Tag: develop-gem5-snapshot~524 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fc4a0803d835bc87c7047f1695886e4128d708e;p=gem5.git cpu, fastmodel: Remove the old getDTBPtr/getITBPtr virtual methods JIRA: https://gem5.atlassian.net/browse/GEM5-790 Change-Id: I6c6cdeaa3ae1433624e4e5b30b031d49e822f0e0 Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34984 Maintainer: Gabe Black Tested-by: kokoro Reviewed-by: Anthony Gutierrez --- diff --git a/src/arch/arm/fastmodel/iris/thread_context.hh b/src/arch/arm/fastmodel/iris/thread_context.hh index 5e5d7838e..b7ea0b5c9 100644 --- a/src/arch/arm/fastmodel/iris/thread_context.hh +++ b/src/arch/arm/fastmodel/iris/thread_context.hh @@ -191,16 +191,6 @@ class ThreadContext : public ::ThreadContext int contextId() const override { return _contextId; } void setContextId(int id) override { _contextId = id; } - BaseTLB * - getITBPtr() override - { - return _itb; - } - BaseTLB * - getDTBPtr() override - { - return _dtb; - } BaseMMU * getMMUPtr() override { diff --git a/src/cpu/checker/cpu.hh b/src/cpu/checker/cpu.hh index 5213026fa..7eabe57d2 100644 --- a/src/cpu/checker/cpu.hh +++ b/src/cpu/checker/cpu.hh @@ -152,9 +152,6 @@ class CheckerCPU : public BaseCPU, public ExecContext // Primary thread being run. SimpleThread *thread; - BaseTLB* getITBPtr() { return mmu->itb; } - BaseTLB* getDTBPtr() { return mmu->dtb; } - BaseMMU* getMMUPtr() { return mmu; } virtual Counter totalInsts() const override diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh index 5a68be400..b9442e8d1 100644 --- a/src/cpu/checker/thread_context.hh +++ b/src/cpu/checker/thread_context.hh @@ -127,10 +127,6 @@ class CheckerThreadContext : public ThreadContext actualTC->setThreadId(id); } - BaseTLB *getITBPtr() override { return actualTC->getITBPtr(); } - - BaseTLB *getDTBPtr() override { return actualTC->getDTBPtr(); } - BaseMMU *getMMUPtr() override { return actualTC->getMMUPtr(); } CheckerCPU * diff --git a/src/cpu/o3/thread_context.hh b/src/cpu/o3/thread_context.hh index d4353d15c..11de92744 100644 --- a/src/cpu/o3/thread_context.hh +++ b/src/cpu/o3/thread_context.hh @@ -98,12 +98,6 @@ class O3ThreadContext : public ThreadContext /** Pointer to the thread state that this TC corrseponds to. */ O3ThreadState *thread; - /** Returns a pointer to the ITB. */ - BaseTLB *getITBPtr() override { return cpu->mmu->itb; } - - /** Returns a pointer to the DTB. */ - BaseTLB *getDTBPtr() override { return cpu->mmu->dtb; } - /** Returns a pointer to the MMU. */ BaseMMU *getMMUPtr() override { return cpu->mmu; } diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh index e2f8070ff..b17f29a25 100644 --- a/src/cpu/simple_thread.hh +++ b/src/cpu/simple_thread.hh @@ -206,10 +206,6 @@ class SimpleThread : public ThreadState, public ThreadContext ContextID contextId() const override { return ThreadState::contextId(); } void setContextId(ContextID id) override { ThreadState::setContextId(id); } - BaseTLB *getITBPtr() override { return mmu->itb; } - - BaseTLB *getDTBPtr() override { return mmu->dtb; } - BaseMMU *getMMUPtr() override { return mmu; } CheckerCPU *getCheckerCpuPtr() override { return NULL; } diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh index 9bd5cf56e..c50eb2693 100644 --- a/src/cpu/thread_context.hh +++ b/src/cpu/thread_context.hh @@ -130,10 +130,6 @@ class ThreadContext : public PCEventScope virtual void setContextId(ContextID id) = 0; - virtual BaseTLB *getITBPtr() = 0; - - virtual BaseTLB *getDTBPtr() = 0; - virtual BaseMMU *getMMUPtr() = 0; virtual CheckerCPU *getCheckerCpuPtr() = 0;