eventq: Clean up some flags
authorNathan Binkert <nate@binkert.org>
Fri, 2 Apr 2010 22:28:22 +0000 (15:28 -0700)
committerNathan Binkert <nate@binkert.org>
Fri, 2 Apr 2010 22:28:22 +0000 (15:28 -0700)
commitf32674d9bcfc801a5f9c24c8d96c6f417391325f
tree283194957483d53ba3ece6ce146c12ad5d407320
parent2ee3edba8edda618b31fcb7a3cc84b76bae18bf7
eventq: Clean up some flags
- Make the initialized flag always available, not just in debug mode.
- Make the Initialized flag actually use several bits so it is very
unlikely that something that's uninitialized accidentally looks
initialized.
- Add an initialized() function that tells you if the current event is
indeed  initialized.
- Clear the flags on delete so it can't be accidentally thought of as
initialized.
- Fix getFlags assert statement.  "How did this ever work?"
src/sim/eventq.cc
src/sim/eventq.hh