TimingSimpleCPU: Add some DPRINTFs when the cpu suspends and resumes.
--HG-- extra : convert_revision : a305cf9dcaca5ed3b97499a5e24c511f4416125a
This commit is contained in:
parent
cf1c25dbcc
commit
422ab8bec0
1 changed files with 9 additions and 0 deletions
|
@ -157,6 +157,7 @@ TimingSimpleCPU::drain(Event *drain_event)
|
||||||
void
|
void
|
||||||
TimingSimpleCPU::resume()
|
TimingSimpleCPU::resume()
|
||||||
{
|
{
|
||||||
|
DPRINTF(SimpleCPU, "Resume\n");
|
||||||
if (_status != SwitchedOut && _status != Idle) {
|
if (_status != SwitchedOut && _status != Idle) {
|
||||||
assert(system->getMemoryMode() == Enums::timing);
|
assert(system->getMemoryMode() == Enums::timing);
|
||||||
|
|
||||||
|
@ -215,6 +216,8 @@ TimingSimpleCPU::takeOverFrom(BaseCPU *oldCPU)
|
||||||
void
|
void
|
||||||
TimingSimpleCPU::activateContext(int thread_num, int delay)
|
TimingSimpleCPU::activateContext(int thread_num, int delay)
|
||||||
{
|
{
|
||||||
|
DPRINTF(SimpleCPU, "ActivateContext %d (%d cycles)\n", thread_num, delay);
|
||||||
|
|
||||||
assert(thread_num == 0);
|
assert(thread_num == 0);
|
||||||
assert(thread);
|
assert(thread);
|
||||||
|
|
||||||
|
@ -231,6 +234,8 @@ TimingSimpleCPU::activateContext(int thread_num, int delay)
|
||||||
void
|
void
|
||||||
TimingSimpleCPU::suspendContext(int thread_num)
|
TimingSimpleCPU::suspendContext(int thread_num)
|
||||||
{
|
{
|
||||||
|
DPRINTF(SimpleCPU, "SuspendContext %d\n", thread_num);
|
||||||
|
|
||||||
assert(thread_num == 0);
|
assert(thread_num == 0);
|
||||||
assert(thread);
|
assert(thread);
|
||||||
|
|
||||||
|
@ -511,6 +516,8 @@ TimingSimpleCPU::write(int32_t data, Addr addr, unsigned flags, uint64_t *res)
|
||||||
void
|
void
|
||||||
TimingSimpleCPU::fetch()
|
TimingSimpleCPU::fetch()
|
||||||
{
|
{
|
||||||
|
DPRINTF(SimpleCPU, "Fetch\n");
|
||||||
|
|
||||||
if (!curStaticInst || !curStaticInst->isDelayedCommit())
|
if (!curStaticInst || !curStaticInst->isDelayedCommit())
|
||||||
checkForInterrupts();
|
checkForInterrupts();
|
||||||
|
|
||||||
|
@ -560,6 +567,8 @@ TimingSimpleCPU::advanceInst(Fault fault)
|
||||||
void
|
void
|
||||||
TimingSimpleCPU::completeIfetch(PacketPtr pkt)
|
TimingSimpleCPU::completeIfetch(PacketPtr pkt)
|
||||||
{
|
{
|
||||||
|
DPRINTF(SimpleCPU, "Complete ICache Fetch\n");
|
||||||
|
|
||||||
// received a response from the icache: execute the received
|
// received a response from the icache: execute the received
|
||||||
// instruction
|
// instruction
|
||||||
assert(!pkt->isError());
|
assert(!pkt->isError());
|
||||||
|
|
Loading…
Reference in a new issue