CPU: Print out traces for faluting inst when the flag ExecFaulting is set

This commit is contained in:
Ali Saidi 2010-08-25 19:10:43 -05:00
parent dee8f3d500
commit 546eaa6109
2 changed files with 2 additions and 4 deletions

View file

@ -687,8 +687,7 @@ AtomicSimpleCPU::tick()
// keep an instruction count
if (fault == NoFault)
countInst();
else if (traceData) {
// If there was a fault, we should trace this instruction.
else if (traceData && !DTRACE(ExecFaulting)) {
delete traceData;
traceData = NULL;
}

View file

@ -817,8 +817,7 @@ TimingSimpleCPU::completeIfetch(PacketPtr pkt)
// keep an instruction count
if (fault == NoFault)
countInst();
else if (traceData) {
// If there was a fault, we shouldn't trace this instruction.
else if (traceData && !DTRACE(ExecFaulting)) {
delete traceData;
traceData = NULL;
}