From 2cfe62adc4f9206f616669a103133b906f705e8b Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 7 Jan 2013 13:05:45 -0500 Subject: cpu: Rename defer_registration->switched_out The defer_registration parameter is used to prevent a CPU from initializing at startup, leaving it in the "switched out" mode. The name of this parameter (and the help string) is confusing. This patch renames it to switched_out, which should be more descriptive. --- src/cpu/base.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cpu/base.cc') diff --git a/src/cpu/base.cc b/src/cpu/base.cc index b8cd60f63..202dc476a 100644 --- a/src/cpu/base.cc +++ b/src/cpu/base.cc @@ -119,7 +119,7 @@ BaseCPU::BaseCPU(Params *p, bool is_checker) _instMasterId(p->system->getMasterId(name() + ".inst")), _dataMasterId(p->system->getMasterId(name() + ".data")), _taskId(ContextSwitchTaskId::Unknown), _pid(Request::invldPid), - _switchedOut(p->defer_registration), + _switchedOut(p->switched_out), interrupts(p->interrupts), profileEvent(NULL), numThreads(p->numThreads), system(p->system) { @@ -217,7 +217,7 @@ BaseCPU::BaseCPU(Params *p, bool is_checker) // The interrupts should always be present unless this CPU is // switched in later or in case it is a checker CPU - if (!params()->defer_registration && !is_checker) { + if (!params()->switched_out && !is_checker) { if (interrupts) { interrupts->setCPU(this); } else { @@ -254,7 +254,7 @@ BaseCPU::~BaseCPU() void BaseCPU::init() { - if (!params()->defer_registration) + if (!params()->switched_out) registerThreadContexts(); } @@ -262,7 +262,7 @@ void BaseCPU::startup() { if (FullSystem) { - if (!params()->defer_registration && profileEvent) + if (!params()->switched_out && profileEvent) schedule(profileEvent, curTick()); } -- cgit v1.2.3