X86: Condense the startupCPU code.

This commit is contained in:
Gabe Black 2009-04-19 02:20:57 -07:00
parent f668340f2c
commit 05b5861419

View file

@ -280,26 +280,20 @@ void initCPU(ThreadContext *tc, int cpuId)
#endif #endif
#if FULL_SYSTEM
void startupCPU(ThreadContext *tc, int cpuId) void startupCPU(ThreadContext *tc, int cpuId)
{ {
#if FULL_SYSTEM
if (cpuId == 0) { if (cpuId == 0) {
tc->activate(0); tc->activate(0);
} else { } else {
// This is an application processor (AP). It should be initialized to // This is an application processor (AP). It should be initialized to
// look like only the BIOS POST has run on it and put then put it into // look like only the BIOS POST has run on it and put then put it into
// a halted state. // a halted state.
tc->suspend(); tc->suspend(0);
} }
}
#else #else
void startupCPU(ThreadContext *tc, int cpuId)
{
tc->activate(0); tc->activate(0);
}
#endif #endif
}
} //namespace X86_ISA } //namespace X86_ISA