From 84f0a1bd91b8af5517711fba00533daddb2359e1 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Thu, 22 Sep 2011 18:59:55 -0700 Subject: 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. --- src/cpu/o3/commit_impl.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cpu/o3/commit_impl.hh') 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 DefaultCommit::TrapEvent::TrapEvent(DefaultCommit *_commit, ThreadID _tid) - : Event(CPU_Tick_Pri), commit(_commit), tid(_tid) + : Event(CPU_Tick_Pri, AutoDelete), commit(_commit), tid(_tid) { - this->setFlags(AutoDelete); } template -- cgit v1.2.3