CPU: Print out traces for faluting inst when the flag ExecFaulting is set
This commit is contained in:
parent
dee8f3d500
commit
546eaa6109
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue