changeset 827bd9f03fdc in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=827bd9f03fdc
description:
X86: Condense the startupCPU code.
diffstat:
1 file changed, 5 insertions(+), 11 deletions(-)
src/arch/x86/utility.cc | 16 +++++-----------
diffs (35 lines):
diff -r 949a8304e7f9 -r 827bd9f03fdc src/arch/x86/utility.cc
--- a/src/arch/x86/utility.cc Sun Apr 19 02:16:49 2009 -0700
+++ b/src/arch/x86/utility.cc Sun Apr 19 02:20:57 2009 -0700
@@ -280,26 +280,20 @@
#endif
-#if FULL_SYSTEM
void startupCPU(ThreadContext *tc, int cpuId)
{
+#if FULL_SYSTEM
if (cpuId == 0) {
tc->activate(0);
} else {
// 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
// a halted state.
- tc->suspend();
+ tc->suspend(0);
}
+#else
+ tc->activate(0);
+#endif
}
-#else
-
-void startupCPU(ThreadContext *tc, int cpuId)
-{
- tc->activate(0);
-}
-
-#endif
-
} //namespace X86_ISA
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev