From e1403fc2af61c224c573c47c77a36f9b1b78e7df Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Sat, 20 Sep 2014 17:18:35 -0400 Subject: alpha,arm,mips,power,x86,cpu,sim: Cleanup activate/deactivate activate(), suspend(), and halt() used on thread contexts had an optional delay parameter. However this parameter was often ignored. Also, when used, the delay was seemily arbitrarily set to 0 or 1 cycle (no other delays were ever specified). This patch removes the delay parameter and 'Events' associated with them across all ISAs and cores. Unused activate logic is also removed. --- src/cpu/base.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/cpu/base.hh') diff --git a/src/cpu/base.hh b/src/cpu/base.hh index cc3f861cc..ac3d1d892 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -251,10 +251,8 @@ class BaseCPU : public MemObject /// Provide access to the tracer pointer Trace::InstTracer * getTracer() { return tracer; } - /// Notify the CPU that the indicated context is now active. The - /// delay parameter indicates the number of ticks to wait before - /// executing (typically 0 or 1). - virtual void activateContext(ThreadID thread_num, Cycles delay) {} + /// Notify the CPU that the indicated context is now active. + virtual void activateContext(ThreadID thread_num) {} /// Notify the CPU that the indicated context is now suspended. virtual void suspendContext(ThreadID thread_num) {} @@ -285,8 +283,6 @@ class BaseCPU : public MemObject virtual void startup(); virtual void regStats(); - virtual void activateWhenReady(ThreadID tid) {}; - void registerThreadContexts(); /** -- cgit v1.2.3