Review Board 2.0.15


CPU: Print out traces for faluting instructions when the flag for it (ExecFaulting) is set

Review Request #233 - Created Aug. 23, 2010 and submitted

Information
Ali Saidi
gem5
Reviewers
Default
CPU: Print out traces for faluting instructions when the flag for it (ExecFaulting) is set

   
Posted (Aug. 23, 2010, 3:52 a.m.)



  
src/cpu/simple/atomic.cc (Diff revision 1)
 
 
How about moving this check up to the surrounding if?

else if (traceData && !DTRACE(ExecFaulting)) {

That would fit into the flow of the code better, I think.
Posted (Aug. 23, 2010, 4:01 a.m.)



  
src/cpu/simple/atomic.cc (Diff revision 1)
 
 
Well, the code needs to delete trace data and set it to null either way. Only if the execfaulting flag is set does it need to dump()
  1. It will be later like it would have been with no fault in postExecute. I added that blob of code is to suppress dumping later if there was a fault, so everything will work fine if you suppress the suppressor and make it work like it temporarily work like it did before I added that. By making it dump here, you're making it do the same thing in two different places depending on the circumstances which might be confusing later on.
  2. ok.