summaryrefslogtreecommitdiff
path: root/src/sim/eventq.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-02-05 22:05:00 -0800
committerSteve Reinhardt <stever@eecs.umich.edu>2007-02-05 22:05:00 -0800
commitf5a803f56e6057a9d908c47aa05fbbfb98a575b5 (patch)
tree59f9760a26a5aace26d815e502468585fa25a4f0 /src/sim/eventq.cc
parent17cbfe55fdd80ccd4c9c33ade3b636ba793def56 (diff)
downloadgem5-f5a803f56e6057a9d908c47aa05fbbfb98a575b5.tar.xz
Use an instance counter to give Events repeatable IDs
in debugging mode (especially valuable for tracediff). --HG-- extra : convert_revision : 227434a06b5271a8300f2f6861bd06c4ac19e6c4
Diffstat (limited to 'src/sim/eventq.cc')
-rw-r--r--src/sim/eventq.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/eventq.cc b/src/sim/eventq.cc
index 6ae838897..de3050d8c 100644
--- a/src/sim/eventq.cc
+++ b/src/sim/eventq.cc
@@ -53,6 +53,8 @@ using namespace std;
//
EventQueue mainEventQueue("MainEventQueue");
+Counter Event::instanceCounter = 0;
+
void
EventQueue::insert(Event *event)
{