diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-09-22 18:59:55 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-09-22 18:59:55 -0700 |
commit | 84f0a1bd91b8af5517711fba00533daddb2359e1 (patch) | |
tree | e9dd08fe7ff8a575efc08c5a927c719f674d06fe /src/cpu/o3/commit_impl.hh | |
parent | ba79155d9d0f42457f74b533e27f0af2ab1b5e4a (diff) | |
download | gem5-84f0a1bd91b8af5517711fba00533daddb2359e1.tar.xz |
event: minor cleanup
Initialize flags via the Event constructor instead of calling
setFlags() in the body of the derived class's constructor. I
forget exactly why, but this made life easier when implementing
multi-queue support.
Also rename Event::getFlags() to isFlagSet() to better match
common usage, and get rid of some unused Event methods.
Diffstat (limited to 'src/cpu/o3/commit_impl.hh')
-rw-r--r-- | src/cpu/o3/commit_impl.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/o3/commit_impl.hh b/src/cpu/o3/commit_impl.hh index f218cc76a..75ae87c75 100644 --- a/src/cpu/o3/commit_impl.hh +++ b/src/cpu/o3/commit_impl.hh @@ -71,9 +71,8 @@ using namespace std; template <class Impl> DefaultCommit<Impl>::TrapEvent::TrapEvent(DefaultCommit<Impl> *_commit, ThreadID _tid) - : Event(CPU_Tick_Pri), commit(_commit), tid(_tid) + : Event(CPU_Tick_Pri, AutoDelete), commit(_commit), tid(_tid) { - this->setFlags(AutoDelete); } template <class Impl> |