Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/7121
Change subject: arm: Make translateFunctional override the base
implementation.
......................................................................
arm: Make translateFunctional override the base implementation.
Now that translateFunctional is a virtual function, having an extra
parameter with a default value makes the compiler fall through to the
base implementation instead of overriding it. This change removes the
default value for the extra parameter, and adds a small wrapper with
the correct signature which overrides the base implementation and calls
the full version with the previously default value for the extra
parameter. To callers this will look like the same thing, but the
the right function will get called.
This was what was already being done for transateAtomic and
translateTiming.
Change-Id: I0b71adf34fd6f326005edbb8eaac93275b437c55
---
M src/arch/arm/tlb.hh
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/arch/arm/tlb.hh b/src/arch/arm/tlb.hh
index 7521e71..212a79f 100644
--- a/src/arch/arm/tlb.hh
+++ b/src/arch/arm/tlb.hh
@@ -311,7 +311,12 @@
* behaves like a normal lookup without modifying any page table state.
*/
Fault translateFunctional(RequestPtr req, ThreadContext *tc, Mode mode,
- ArmTranslationType tranType = NormalTran);
+ ArmTranslationType tranType);
+ Fault
+ translateFunctional(RequestPtr req, ThreadContext *tc, Mode mode)
override
+ {
+ return translateFunctional(req, tc, mode, NormalTran);
+ }
/** Accessor functions for memory attributes for last accessed TLB
entry
*/
--
To view, visit https://gem5-review.googlesource.com/7121
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0b71adf34fd6f326005edbb8eaac93275b437c55
Gerrit-Change-Number: 7121
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev