delete reset;
}
-template <class CPU>
-void
-zeroRegisters(CPU *cpu)
-{
- // Insure ISA semantics
- // (no longer very clean due to the change in setIntReg() in the
- // cpu model. Consider changing later.)
- cpu->thread->setIntReg(ZeroReg, 0);
- cpu->thread->setFloatReg(ZeroReg, 0);
-}
-
////////////////////////////////////////////////////////////////////////
//
//
return (tc->readMiscRegNoEffect(IPR_DTB_CM) & 0x18) != 0;
}
-/**
- * Function to insure ISA semantics about 0 registers.
- * @param tc The thread context.
- */
-template <class TC>
-void zeroRegisters(TC *tc);
-
// Alpha IPR register accessors
inline bool PcPAL(Addr addr) { return addr & 0x3; }
inline void startupCPU(ThreadContext *tc, int cpuId)
}
}
-/**
- * Function to insure ISA semantics about 0 registers.
- * @param tc The thread context.
- */
-template <class TC>
-void zeroRegisters(TC *tc);
-
inline void startupCPU(ThreadContext *tc, int cpuId)
{
tc->activate();
}
}
-template <class CPU>
-void
-zeroRegisters(CPU *cpu)
-{
- // Insure ISA semantics
- // (no longer very clean due to the change in setIntReg() in the
- // cpu model. Consider changing later.)
- cpu->thread->setIntReg(ZeroReg, 0);
- cpu->thread->setFloatReg(ZeroReg, 0);
-}
-
void
startupCPU(ThreadContext *tc, int cpuId)
{
}
}
-template <class CPU>
-void zeroRegisters(CPU *cpu);
-
////////////////////////////////////////////////////////////////////////
//
// Translation stuff
return retPC;
}
-/**
- * Function to ensure ISA semantics about 0 registers.
- * @param tc The thread context.
- */
-template <class TC>
-void zeroRegisters(TC *tc);
-
inline void
startupCPU(ThreadContext *tc, int cpuId)
{
return !(pstate.priv || hpstate.hpriv);
}
-/**
- * Function to insure ISA semantics about 0 registers.
- * @param tc The thread context.
- */
-template <class TC>
-void zeroRegisters(TC *tc);
-
void initCPU(ThreadContext *tc, int cpuId);
inline void
}
}
- /**
- * Function to insure ISA semantics about 0 registers.
- * @param tc The thread context.
- */
- template <class TC>
- void zeroRegisters(TC *tc);
-
void initCPU(ThreadContext *tc, int cpuId);
void startupCPU(ThreadContext *tc, int cpuId);