since totalInstructions() is impl'ed by all the cpus, make it an abstract base class.
This commit is contained in:
parent
daebe18e89
commit
9f63548478
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue