From: Kevin Lim Date: Tue, 18 Jan 2005 16:43:45 +0000 (-0500) Subject: Move trace data function to .cc file. X-Git-Tag: m5_1.0_tutorial~94^2~17^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f31a27a030d2e93fef2934aa8642609bb38974af;p=gem5.git Move trace data function to .cc file. --HG-- extra : convert_revision : 8180068747489978a2bbaa096dc73b0cfd14b052 --- 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) {