arm: Remove unused DumpStatsPCEventF class in FreeBSD system
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 10 May 2017 12:11:57 +0000 (13:11 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 12 May 2017 09:21:41 +0000 (09:21 +0000)
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 <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3240
Reviewed-by: B.A. Zeeb <baz21@cam.ac.uk>
src/arch/arm/freebsd/system.cc
src/arch/arm/freebsd/system.hh

index da427e83230a36c1b9a13e9f86232a17b2518561..84538e18ece7a7b252bd844beefae3209cd9af93 100644 (file)
@@ -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 *
index 17ace7cc6e49b808c224bc6a22155559fb1db5cf..50c405d15ced8baca5797aca5ba75a2c399de848 100644 (file)
 #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__