projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ruby: drop NetworkMessage class
[gem5.git]
/
src
/
mem
/
ruby
/
common
/
Consumer.cc
diff --git
a/src/mem/ruby/common/Consumer.cc
b/src/mem/ruby/common/Consumer.cc
index 9f3735709506c9d8cd7b191f03b9bcd5a083e3b0..59605d51b70f26b63137f0e1977fe1b90618acf2 100644
(file)
--- a/
src/mem/ruby/common/Consumer.cc
+++ b/
src/mem/ruby/common/Consumer.cc
@@
-28,6
+28,8
@@
#include "mem/ruby/common/Consumer.hh"
#include "mem/ruby/common/Consumer.hh"
+using namespace std;
+
void
Consumer::scheduleEvent(Cycles timeDelta)
{
void
Consumer::scheduleEvent(Cycles timeDelta)
{
@@
-43,4
+45,9
@@
Consumer::scheduleEventAbsolute(Tick evt_time)
em->schedule(evt, evt_time);
insertScheduledWakeupTime(evt_time);
}
em->schedule(evt, evt_time);
insertScheduledWakeupTime(evt_time);
}
+
+ Tick t = em->clockEdge();
+ set<Tick>::iterator bit = m_scheduled_wakeups.begin();
+ set<Tick>::iterator eit = m_scheduled_wakeups.lower_bound(t);
+ m_scheduled_wakeups.erase(bit,eit);
}
}