From cc6523e2d686447f90acccac20c0fb2940dc3e3b Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Sat, 20 Sep 2014 17:18:36 -0400 Subject: cpu: Remove unused deallocateContext calls The call paths for de-scheduling a thread are halt() and suspend(), from the thread context. There is no call to deallocateContext() in general, though some CPUs chose to define it. This patch removes the function from BaseCPU and the cores which do not require it. --- src/cpu/simple/base.cc | 8 -------- src/cpu/simple/base.hh | 1 - 2 files changed, 9 deletions(-) (limited to 'src/cpu/simple') diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index 5130e2960..6101ff30f 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -132,14 +132,6 @@ BaseSimpleCPU::~BaseSimpleCPU() { } -void -BaseSimpleCPU::deallocateContext(ThreadID thread_num) -{ - // for now, these are equivalent - suspendContext(thread_num); -} - - void BaseSimpleCPU::haltContext(ThreadID thread_num) { diff --git a/src/cpu/simple/base.hh b/src/cpu/simple/base.hh index 43d96fbeb..8f38a33c8 100644 --- a/src/cpu/simple/base.hh +++ b/src/cpu/simple/base.hh @@ -170,7 +170,6 @@ class BaseSimpleCPU : public BaseCPU, public ExecContext void postExecute(); void advancePC(const Fault &fault); - virtual void deallocateContext(ThreadID thread_num); virtual void haltContext(ThreadID thread_num); // statistics -- cgit v1.2.3