projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58d851
)
Move trace data function to .cc file.
author
Kevin Lim
<ktlim@umich.edu>
Tue, 18 Jan 2005 16:43:45 +0000
(11:43 -0500)
committer
Kevin Lim
<ktlim@umich.edu>
Tue, 18 Jan 2005 16:43:45 +0000
(11:43 -0500)
--HG--
extra : convert_revision :
8180068747489978a2bbaa096dc73b0cfd14b052
cpu/simple_cpu/simple_cpu.cc
patch
|
blob
|
history
diff --git
a/cpu/simple_cpu/simple_cpu.cc
b/cpu/simple_cpu/simple_cpu.cc
index d48f936638eb3bc86972c8f36aab579816b7aedf..e3cce28ae727a500a7dc097cacdb03d92618a73a 100644
(file)
--- a/
cpu/simple_cpu/simple_cpu.cc
+++ b/
cpu/simple_cpu/simple_cpu.cc
@@
-74,6
+74,15
@@
using namespace std;
+template<typename T>
+void
+SimpleCPU::trace_data(T data) {
+ if (traceData) {
+ traceData->setData(data);
+ }
+}
+
+
SimpleCPU::TickEvent::TickEvent(SimpleCPU *c)
: Event(&mainEventQueue, CPU_Tick_Pri), cpu(c), multiplier(1)
{