summaryrefslogtreecommitdiff
path: root/src/cpu/base.hh
diff options
context:
space:
mode:
authorLisa Hsu <Lisa.Hsu@amd.com>2010-01-12 10:22:46 -0800
committerLisa Hsu <Lisa.Hsu@amd.com>2010-01-12 10:22:46 -0800
commit9f635484784a9a523fc356df9e55922660d13d8f (patch)
tree6692dc95a94c919b69999bb362d9a2e2de71cd2c /src/cpu/base.hh
parentdaebe18e897b3dc87f2e8b156ce03691c8b930c7 (diff)
downloadgem5-9f635484784a9a523fc356df9e55922660d13d8f.tar.xz
since totalInstructions() is impl'ed by all the cpus, make it an abstract base class.
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r--src/cpu/base.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh
index bfeec0870..b229ddd38 100644
--- a/src/cpu/base.hh
+++ b/src/cpu/base.hh
@@ -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: