diff --git a/src/arch/arm/system.cc b/src/arch/arm/system.cc index a70c63c9f5..d401339168 100644 --- a/src/arch/arm/system.cc +++ b/src/arch/arm/system.cc @@ -180,14 +180,6 @@ ArmSystem::initState() } } -ArmSystem * -ArmSystem::getArmSystem(System *sys) -{ - ArmSystem *a_sys = dynamic_cast(sys); - assert(a_sys); - return a_sys; -} - ArmSystem* ArmSystem::getArmSystem(ThreadContext *tc) { diff --git a/src/arch/arm/system.hh b/src/arch/arm/system.hh index 9f27fad925..26b417ed78 100644 --- a/src/arch/arm/system.hh +++ b/src/arch/arm/system.hh @@ -270,13 +270,6 @@ class ArmSystem : public System /** Is Arm Semihosting support enabled? */ bool haveSemihosting() const { return semihosting != nullptr; } - /** - * Casts the provided System object into a valid ArmSystem, it fails - * otherwise. - * @param sys System object to cast - */ - static ArmSystem *getArmSystem(System *sys); - /** * Returns a valid ArmSystem pointer if using ARM ISA, it fails * otherwise.