diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-11-03 14:41:27 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-11-03 14:41:27 -0500 |
commit | 8778d85b2d352fdbfbbf077332790f94852b20d3 (patch) | |
tree | c56b5a62d9b1debae2135785e402c3c7c6211369 /src | |
parent | 6ad386f1a8df96c9679dcffb326420b240e98c05 (diff) | |
download | gem5-8778d85b2d352fdbfbbf077332790f94852b20d3.tar.xz |
Use a PowerOnReset to initialize the cpu.
--HG--
extra : convert_revision : 9e65af095c37c7c67db377424d2d4363fa8065f9
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/sparc/utility.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/sparc/utility.hh b/src/arch/sparc/utility.hh index d8880e317..e2b0b2307 100644 --- a/src/arch/sparc/utility.hh +++ b/src/arch/sparc/utility.hh @@ -31,6 +31,7 @@ #ifndef __ARCH_SPARC_UTILITY_HH__ #define __ARCH_SPARC_UTILITY_HH__ +#include "arch/sparc/faults.hh" #include "arch/sparc/isa_traits.hh" #include "base/misc.hh" #include "base/bitfield.hh" @@ -99,10 +100,10 @@ namespace SparcISA template <class TC> void zeroRegisters(TC *tc); - void initCPU(ThreadContext *tc, int cpuId) + inline void initCPU(ThreadContext *tc, int cpuId) { - //This would be a good place to stick a PowerOnReset fault into the - //cpu. + static Fault por = new PowerOnReset(); + por->invoke(tc); } } // namespace SparcISA |