Move trace data function to .cc file.
authorKevin Lim <ktlim@umich.edu>
Tue, 18 Jan 2005 16:43:45 +0000 (11:43 -0500)
committerKevin 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

index d48f936638eb3bc86972c8f36aab579816b7aedf..e3cce28ae727a500a7dc097cacdb03d92618a73a 100644 (file)
 
 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)
 {