diff options
author | Kevin Lim <ktlim@umich.edu> | 2005-01-18 11:43:45 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2005-01-18 11:43:45 -0500 |
commit | f31a27a030d2e93fef2934aa8642609bb38974af (patch) | |
tree | 689fe3eb51fe377fa9ec1aa144f1f1259cdfe0cd | |
parent | f58d85128dde9aebb5b161aa51799309d5c16d67 (diff) | |
download | gem5-f31a27a030d2e93fef2934aa8642609bb38974af.tar.xz |
Move trace data function to .cc file.
--HG--
extra : convert_revision : 8180068747489978a2bbaa096dc73b0cfd14b052
-rw-r--r-- | cpu/simple_cpu/simple_cpu.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpu/simple_cpu/simple_cpu.cc b/cpu/simple_cpu/simple_cpu.cc index d48f93663..e3cce28ae 100644 --- 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) { |