From 32d99f43199ab9a5223c7ba90a63ed224e18e6bb Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Wed, 10 May 2017 13:11:57 +0100 Subject: [PATCH] arm: Remove unused DumpStatsPCEventF class in FreeBSD system The DumpStatsPCEventF is declared but lacks an implementation. This confuses RTTI in clang. Remove this class since it is clearly not needed. Change-Id: Ib95f09f2ba8593f8d0e072b96afd5f8a9ed31070 Signed-off-by: Andreas Sandberg Reviewed-by: Curtis Dunham Reviewed-on: https://gem5-review.googlesource.com/3240 Reviewed-by: B.A. Zeeb --- src/arch/arm/freebsd/system.cc | 5 +---- src/arch/arm/freebsd/system.hh | 16 ---------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/arch/arm/freebsd/system.cc b/src/arch/arm/freebsd/system.cc index da427e832..84538e18e 100644 --- a/src/arch/arm/freebsd/system.cc +++ b/src/arch/arm/freebsd/system.cc @@ -51,7 +51,7 @@ using namespace ArmISA; using namespace FreeBSD; FreebsdArmSystem::FreebsdArmSystem(Params *p) - : GenericArmSystem(p), dumpStatsPCEventF(nullptr), + : GenericArmSystem(p), enableContextSwitchStatsDump(p->enable_context_switch_stats_dump), taskFile(nullptr), kernelPanicEvent(nullptr), kernelOopsEvent(nullptr) { @@ -150,9 +150,6 @@ FreebsdArmSystem::~FreebsdArmSystem() delete uDelaySkipEvent; if (constUDelaySkipEvent) delete constUDelaySkipEvent; - - if (dumpStatsPCEventF) - delete dumpStatsPCEventF; } FreebsdArmSystem * diff --git a/src/arch/arm/freebsd/system.hh b/src/arch/arm/freebsd/system.hh index 17ace7cc6..50c405d15 100644 --- a/src/arch/arm/freebsd/system.hh +++ b/src/arch/arm/freebsd/system.hh @@ -44,13 +44,8 @@ #include "params/FreebsdArmSystem.hh" #include "sim/core.hh" -class DumpStatsPCEventF; - class FreebsdArmSystem : public GenericArmSystem { - protected: - DumpStatsPCEventF *dumpStatsPCEventF; - public: /** Boilerplate params code */ typedef FreebsdArmSystemParams Params; @@ -118,16 +113,5 @@ class FreebsdArmSystem : public GenericArmSystem Addr bootReleaseAddr; }; -class DumpStatsPCEventF : public PCEvent -{ - public: - DumpStatsPCEventF(PCEventQueue *q, const std::string &desc, Addr addr) - : PCEvent(q, desc, addr) - {} - - virtual void process(ThreadContext* tc); -}; - - #endif // __ARCH_ARM_FREEBSD_SYSTEM_HH__ -- 2.30.2