Andrea Mondelli has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16648
Change subject: misc: un-hide MemObject::getMasterPort in TLB class
......................................................................
misc: un-hide MemObject::getMasterPort in TLB class
A recent patch makes the BaseTLB a derived class of MemObject
instead of the generic SimObject.
The BaseTLB::getMasterPort() hides the MemObject method, producing a
compilation error when -Woverloaded-virtual is used.
This patch un-hide the MemObject method.
Error message:
In file included from build/X86/arch/generic/tlb.cc:31:
build/X86/arch/generic/tlb.hh:141:29: error: 'BaseTLB::getMasterPort'
hides overloaded virtual function [-Werror,-Woverloaded-virtual]
virtual BaseMasterPort* getMasterPort() { return NULL; }
^
build/X86/mem/mem_object.hh:79:29: note: hidden overloaded virtual
function 'MemObject::getMasterPort' declared here: different number
of parameters (2 vs 0)
virtual BaseMasterPort& getMasterPort(const std::string& if_name,
Change-Id: If4f61189094a706d59805cd10f4f814e5830eda8
---
M src/arch/generic/tlb.hh
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/arch/generic/tlb.hh b/src/arch/generic/tlb.hh
index 91f8f86..2aab24f 100644
--- a/src/arch/generic/tlb.hh
+++ b/src/arch/generic/tlb.hh
@@ -58,6 +58,8 @@
{}
public:
+
+ using MemObject::getMasterPort; // un-hide getMasterPort(parameters)
enum Mode { Read, Write, Execute };
class Translation
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16648
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: If4f61189094a706d59805cd10f4f814e5830eda8
Gerrit-Change-Number: 16648
Gerrit-PatchSet: 1
Gerrit-Owner: Andrea Mondelli <andrea.monde...@ucf.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev