From f31a27a030d2e93fef2934aa8642609bb38974af Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Tue, 18 Jan 2005 11:43:45 -0500 Subject: [PATCH] Move trace data function to .cc file. --HG-- extra : convert_revision : 8180068747489978a2bbaa096dc73b0cfd14b052 --- cpu/simple_cpu/simple_cpu.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +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) { -- 2.30.2