CPU: Print out traces for faluting inst when the flag ExecFaulting is set
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user