From b44e0ce52b894fd4eecc9339e213b7a111c2cc1d Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Tue, 19 Feb 2013 05:56:07 -0500 Subject: [PATCH] scons: Add warning for overloaded virtual functions Fix the ISA startup warnings --- src/arch/alpha/isa.hh | 3 +++ src/arch/arm/isa.hh | 3 +++ src/arch/mips/isa.hh | 3 +++ src/arch/power/isa.hh | 3 +++ src/arch/sparc/isa.hh | 3 +++ src/arch/x86/isa.hh | 4 ++++ 6 files changed, 19 insertions(+) diff --git a/src/arch/alpha/isa.hh b/src/arch/alpha/isa.hh index 1832f0222..e2e2daba8 100644 --- a/src/arch/alpha/isa.hh +++ b/src/arch/alpha/isa.hh @@ -108,6 +108,9 @@ namespace AlphaISA ISA(Params *p); void startup(ThreadContext *tc) {} + + /// Explicitly import the otherwise hidden startup + using SimObject::startup; }; } diff --git a/src/arch/arm/isa.hh b/src/arch/arm/isa.hh index 12ecc4921..e7abb26b2 100644 --- a/src/arch/arm/isa.hh +++ b/src/arch/arm/isa.hh @@ -195,6 +195,9 @@ namespace ArmISA void startup(ThreadContext *tc) {} + /// Explicitly import the otherwise hidden startup + using SimObject::startup; + typedef ArmISAParams Params; const Params *params() const; diff --git a/src/arch/mips/isa.hh b/src/arch/mips/isa.hh index 5ae779a6c..04d4a1dfa 100644 --- a/src/arch/mips/isa.hh +++ b/src/arch/mips/isa.hh @@ -159,6 +159,9 @@ namespace MipsISA public: void startup(ThreadContext *tc) {} + /// Explicitly import the otherwise hidden startup + using SimObject::startup; + const Params *params() const; ISA(Params *p); diff --git a/src/arch/power/isa.hh b/src/arch/power/isa.hh index f4e053d85..33439c48c 100644 --- a/src/arch/power/isa.hh +++ b/src/arch/power/isa.hh @@ -100,6 +100,9 @@ class ISA : public SimObject void startup(ThreadContext *tc) {} + /// Explicitly import the otherwise hidden startup + using SimObject::startup; + const Params *params() const; ISA(Params *p); diff --git a/src/arch/sparc/isa.hh b/src/arch/sparc/isa.hh index dac8a2095..86092f3b5 100644 --- a/src/arch/sparc/isa.hh +++ b/src/arch/sparc/isa.hh @@ -173,6 +173,9 @@ class ISA : public SimObject void startup(ThreadContext *tc) {} + /// Explicitly import the otherwise hidden startup + using SimObject::startup; + protected: bool isHyperPriv() { return hpstate.hpriv; } diff --git a/src/arch/x86/isa.hh b/src/arch/x86/isa.hh index e87d747bc..3ccc2f0ad 100644 --- a/src/arch/x86/isa.hh +++ b/src/arch/x86/isa.hh @@ -88,6 +88,10 @@ namespace X86ISA void serialize(std::ostream &os); void unserialize(Checkpoint *cp, const std::string §ion); void startup(ThreadContext *tc); + + /// Explicitly import the otherwise hidden startup + using SimObject::startup; + }; } -- 2.30.2