scons: Add warning for overloaded virtual functions

Fix the ISA startup warnings
This commit is contained in:
Andreas Hansson 2013-02-19 05:56:07 -05:00
parent 0acd2a96e5
commit b44e0ce52b
6 changed files with 19 additions and 0 deletions

View file

@ -108,6 +108,9 @@ namespace AlphaISA
ISA(Params *p); ISA(Params *p);
void startup(ThreadContext *tc) {} void startup(ThreadContext *tc) {}
/// Explicitly import the otherwise hidden startup
using SimObject::startup;
}; };
} }

View file

@ -195,6 +195,9 @@ namespace ArmISA
void startup(ThreadContext *tc) {} void startup(ThreadContext *tc) {}
/// Explicitly import the otherwise hidden startup
using SimObject::startup;
typedef ArmISAParams Params; typedef ArmISAParams Params;
const Params *params() const; const Params *params() const;

View file

@ -159,6 +159,9 @@ namespace MipsISA
public: public:
void startup(ThreadContext *tc) {} void startup(ThreadContext *tc) {}
/// Explicitly import the otherwise hidden startup
using SimObject::startup;
const Params *params() const; const Params *params() const;
ISA(Params *p); ISA(Params *p);

View file

@ -100,6 +100,9 @@ class ISA : public SimObject
void startup(ThreadContext *tc) {} void startup(ThreadContext *tc) {}
/// Explicitly import the otherwise hidden startup
using SimObject::startup;
const Params *params() const; const Params *params() const;
ISA(Params *p); ISA(Params *p);

View file

@ -173,6 +173,9 @@ class ISA : public SimObject
void startup(ThreadContext *tc) {} void startup(ThreadContext *tc) {}
/// Explicitly import the otherwise hidden startup
using SimObject::startup;
protected: protected:
bool isHyperPriv() { return hpstate.hpriv; } bool isHyperPriv() { return hpstate.hpriv; }

View file

@ -88,6 +88,10 @@ namespace X86ISA
void serialize(std::ostream &os); void serialize(std::ostream &os);
void unserialize(Checkpoint *cp, const std::string &section); void unserialize(Checkpoint *cp, const std::string &section);
void startup(ThreadContext *tc); void startup(ThreadContext *tc);
/// Explicitly import the otherwise hidden startup
using SimObject::startup;
}; };
} }