diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-03-09 16:56:52 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-03-09 16:56:52 -0500 |
commit | dc4d47bad4f95501ebd144dc4aa53aa17563abcc (patch) | |
tree | b4e4a4f0f180468e7d4b5861165176d439229a50 /src/arch/sparc/utility.hh | |
parent | ad4483490785236f49b009f0d7ef3328abaf8cc5 (diff) | |
parent | 58f69391cac4dcc3696470d08756d0c5ff308963 (diff) | |
download | gem5-dc4d47bad4f95501ebd144dc4aa53aa17563abcc.tar.xz |
Merge zizzer:/bk/newmem
into zeep.pool:/z/saidi/work/m5.newmem
--HG--
extra : convert_revision : 5804298706ac0f04fbe491326af71ce9ab74425a
Diffstat (limited to 'src/arch/sparc/utility.hh')
-rw-r--r-- | src/arch/sparc/utility.hh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/arch/sparc/utility.hh b/src/arch/sparc/utility.hh index 64b91695e..dc9201401 100644 --- a/src/arch/sparc/utility.hh +++ b/src/arch/sparc/utility.hh @@ -112,7 +112,20 @@ namespace SparcISA inline void initCPU(ThreadContext *tc, int cpuId) { static Fault por = new PowerOnReset(); - por->invoke(tc); + if (cpuId == 0) + por->invoke(tc); + + } + + inline void startupCPU(ThreadContext *tc, int cpuId) + { +#if FULL_SYSTEM + // Other CPUs will get activated by IPIs + if (cpuId == 0) + tc->activate(0); +#else + tc->activate(0); +#endif } } // namespace SparcISA |