Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/48140 )
Change subject: arch: Make BaseMMU translate methods virtual
......................................................................
arch: Make BaseMMU translate methods virtual
As we are shifting towards making the MMU the main translating
agent, we need to make those methods virtual to let all ISAs
move their TLB::translate* methods to the MMU class
JIRA: https://gem5.atlassian.net/browse/GEM5-790
Change-Id: I50c84784546e8148230d79efe4bf010d0e36d6ab
Signed-off-by: Giacomo Travaglini <[email protected]>
---
M src/arch/generic/mmu.hh
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/arch/generic/mmu.hh b/src/arch/generic/mmu.hh
index cc8b8b0..8bcb3a7 100644
--- a/src/arch/generic/mmu.hh
+++ b/src/arch/generic/mmu.hh
@@ -102,17 +102,21 @@
void demapPage(Addr vaddr, uint64_t asn);
- Fault translateAtomic(const RequestPtr &req, ThreadContext *tc,
- Mode mode);
+ virtual Fault
+ translateAtomic(const RequestPtr &req, ThreadContext *tc,
+ Mode mode);
- void translateTiming(const RequestPtr &req, ThreadContext *tc,
- Translation *translation, Mode mode);
+ virtual void
+ translateTiming(const RequestPtr &req, ThreadContext *tc,
+ Translation *translation, Mode mode);
- Fault translateFunctional(const RequestPtr &req, ThreadContext *tc,
- Mode mode);
+ virtual Fault
+ translateFunctional(const RequestPtr &req, ThreadContext *tc,
+ Mode mode);
- Fault finalizePhysical(const RequestPtr &req, ThreadContext *tc,
- Mode mode) const;
+ virtual Fault
+ finalizePhysical(const RequestPtr &req, ThreadContext *tc,
+ Mode mode) const;
virtual void takeOverFrom(BaseMMU *old_mmu);
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48140
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I50c84784546e8148230d79efe4bf010d0e36d6ab
Gerrit-Change-Number: 48140
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s