Review Board 2.0.15


sim: typecast Tick to UTick for eventQ assert

Review Request #603 - Created March 20, 2011 and submitted

Information
Korey Sewell
gem5
default
Reviewers
Default
ali, gblack, nate, stever
sim: typecast Tick to UTick for eventQ assert
This passed the simple-atomic, simple-timing, and o3 regressions tests for ARM_FS.
Review request changed
Updated (March 26, 2011, 3:38 a.m.)

Summary:

-sim: use nextCycle() for quiesceSkip function
+sim: typecast Tick to UTick for eventQ assert

Description:

~  

sim: use nextCycle() for quiesceSkip function

  ~

sim: typecast Tick to UTick for eventQ assert

-   the increment of curTick causes some compiler to complain on an assert in the event queue
-   scheduler. Since the code is only scheduling for the next cycle it seems safe to go ahead
-   and just use the cpu's function to trick the compiler. NOTE: this only comes up in opt/debug
-   builds since asserts are taken out of fast

Diff:

Revision 2 (+1 -1)

Show changes

Ship it!
Posted (March 26, 2011, 6:54 a.m.)



  
src/sim/eventq.hh (Diff revision 2)
 
 
Can you add a comment here explaining why you you're casting to UTick?