diff options
-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) { |