Review Board 2.0.15


sim: eventq: Initialize _curEventQueue to dummy queue

Review Request #2134 - Created Dec. 28, 2013 and updated

Information
Ola Jeppsson
gem5
default
Reviewers
Default
Changeset 10003:c0686acbf0d4
---------------------------
sim: eventq: Initialize _curEventQueue to dummy queue
Initialize _curEventQueue to dummy event queue instead of NULL.
This avoids NULL dereferences when no simulation has been started.
---
 src/sim/eventq.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

   
Posted (Jan. 4, 2014, 11:44 a.m.)
This looks fine, but out of curiosity where are you seeing the error manifest itself?
  1. I have only seen this when playing with the unit tests.
    
    In the call to curTick() in __exit_message()
    src/base/misc.cc:75
    
Ship it!
Posted (Jan. 14, 2014, 7:09 a.m.)
Ship It!