diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2007-05-20 21:43:01 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2007-05-20 21:43:01 -0700 |
commit | 05d14cf3e258bc414695711e6d7303cf31e72fa3 (patch) | |
tree | c812e65ee4e23df158dd021368592bd27fb22cb7 /src/dev/sinic.cc | |
parent | 87adc37e91784575d44572d2520b1adf115fc931 (diff) | |
download | gem5-05d14cf3e258bc414695711e6d7303cf31e72fa3.tar.xz |
Add new EventWrapper constructor that takes a Tick value
and schedules the event immediately.
--HG--
extra : convert_revision : a84e729a5ef3632cbe6cff858c453c782707d983
Diffstat (limited to 'src/dev/sinic.cc')
-rw-r--r-- | src/dev/sinic.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dev/sinic.cc b/src/dev/sinic.cc index 420761620..e13fdb0bc 100644 --- a/src/dev/sinic.cc +++ b/src/dev/sinic.cc @@ -630,8 +630,7 @@ Base::cpuIntrPost(Tick when) if (intrEvent) intrEvent->squash(); - intrEvent = new IntrEvent(this, true); - intrEvent->schedule(intrTick); + intrEvent = new IntrEvent(this, intrTick, true); } void @@ -1339,8 +1338,7 @@ Base::unserialize(Checkpoint *cp, const std::string §ion) Tick intrEventTick; UNSERIALIZE_SCALAR(intrEventTick); if (intrEventTick) { - intrEvent = new IntrEvent(this, true); - intrEvent->schedule(intrEventTick); + intrEvent = new IntrEvent(this, intrEventTick, true); } } |