From: Lisa Hsu Date: Tue, 12 Jan 2010 18:22:46 +0000 (-0800) Subject: since totalInstructions() is impl'ed by all the cpus, make it an abstract base class. X-Git-Tag: stable_2012_02_02~1575^2~4^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f635484784a9a523fc356df9e55922660d13d8f;p=gem5.git since totalInstructions() is impl'ed by all the cpus, make it an abstract base class. --- 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: