Use a PowerOnReset to initialize the cpu.
--HG-- extra : convert_revision : 9e65af095c37c7c67db377424d2d4363fa8065f9
This commit is contained in:
parent
6ad386f1a8
commit
8778d85b2d
|
@ -31,6 +31,7 @@
|
||||||
#ifndef __ARCH_SPARC_UTILITY_HH__
|
#ifndef __ARCH_SPARC_UTILITY_HH__
|
||||||
#define __ARCH_SPARC_UTILITY_HH__
|
#define __ARCH_SPARC_UTILITY_HH__
|
||||||
|
|
||||||
|
#include "arch/sparc/faults.hh"
|
||||||
#include "arch/sparc/isa_traits.hh"
|
#include "arch/sparc/isa_traits.hh"
|
||||||
#include "base/misc.hh"
|
#include "base/misc.hh"
|
||||||
#include "base/bitfield.hh"
|
#include "base/bitfield.hh"
|
||||||
|
@ -99,10 +100,10 @@ namespace SparcISA
|
||||||
template <class TC>
|
template <class TC>
|
||||||
void zeroRegisters(TC *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
|
static Fault por = new PowerOnReset();
|
||||||
//cpu.
|
por->invoke(tc);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace SparcISA
|
} // namespace SparcISA
|
||||||
|
|
Loading…
Reference in a new issue