since totalInstructions() is impl'ed by all the cpus, make it an abstract base class.
authorLisa Hsu <Lisa.Hsu@amd.com>
Tue, 12 Jan 2010 18:22:46 +0000 (10:22 -0800)
committerLisa Hsu <Lisa.Hsu@amd.com>
Tue, 12 Jan 2010 18:22:46 +0000 (10:22 -0800)
src/cpu/base.hh

index bfeec087015a1a58bac3985330bd5652d181fa50..b229ddd38e14d0a0ac6440c402245e4fc04116b5 100644 (file)
@@ -274,7 +274,7 @@ class BaseCPU : public MemObject
      */
     virtual BranchPred *getBranchPred() { return NULL; };
 
-    virtual Counter totalInstructions() const { return 0; }
+    virtual Counter totalInstructions() const = 0;
 
     // Function tracing
   private: