projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daebe18
)
since totalInstructions() is impl'ed by all the cpus, make it an abstract base class.
author
Lisa Hsu
<Lisa.Hsu@amd.com>
Tue, 12 Jan 2010 18:22:46 +0000
(10:22 -0800)
committer
Lisa Hsu
<Lisa.Hsu@amd.com>
Tue, 12 Jan 2010 18:22:46 +0000
(10:22 -0800)
src/cpu/base.hh
patch
|
blob
|
history
diff --git
a/src/cpu/base.hh
b/src/cpu/base.hh
index bfeec087015a1a58bac3985330bd5652d181fa50..b229ddd38e14d0a0ac6440c402245e4fc04116b5 100644
(file)
--- 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: