don't generate trace data unless tracing is on
--HG-- extra : convert_revision : 3953ace8d481d758d6e0d89183c0a7e7bebcf681
This commit is contained in:
parent
8ab0ffa3dd
commit
d8c487c401
1 changed files with 4 additions and 0 deletions
|
@ -1151,10 +1151,14 @@ DefaultFetch<Impl>::fetch(bool &status_change)
|
||||||
DPRINTF(Fetch, "[tid:%i]: Instruction is: %s\n",
|
DPRINTF(Fetch, "[tid:%i]: Instruction is: %s\n",
|
||||||
tid, instruction->staticInst->disassemble(fetch_PC));
|
tid, instruction->staticInst->disassemble(fetch_PC));
|
||||||
|
|
||||||
|
#if TRACING_ON
|
||||||
instruction->traceData =
|
instruction->traceData =
|
||||||
Trace::getInstRecord(curTick, cpu->tcBase(tid),
|
Trace::getInstRecord(curTick, cpu->tcBase(tid),
|
||||||
instruction->staticInst,
|
instruction->staticInst,
|
||||||
instruction->readPC());
|
instruction->readPC());
|
||||||
|
#elif
|
||||||
|
instruction->traceData = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
///FIXME This needs to be more robust in dealing with delay slots
|
///FIXME This needs to be more robust in dealing with delay slots
|
||||||
#if !ISA_HAS_DELAY_SLOT
|
#if !ISA_HAS_DELAY_SLOT
|
||||||
|
|
Loading…
Reference in a new issue