fix a display bug
[gem5.git] / kern / system_events.hh
index dba3f326c2d3c3ff8cb679f4799831ac1e439c3b..8a8549d034a8cf6067b5ec9778d5fe7841e045f5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 The Regents of The University of Michigan
+ * Copyright (c) 2004 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -44,13 +44,44 @@ class SkipFuncEvent : public PCEvent
 class FnEvent : public PCEvent
 {
   public:
-    FnEvent(PCEventQueue *q, const std::string &desc, System *system);
+    FnEvent(PCEventQueue *q, const std::string &desc, Stats::MainBin *bin);
     virtual void process(ExecContext *xc);
     std::string myname() const { return _name; }
 
   private:
     std::string _name;
-    Stats::MainBin *myBin;
+    Stats::MainBin *mybin;
 };
 
+class IdleStartEvent : public PCEvent
+{
+  private:
+    System *system;
+
+  public:
+    IdleStartEvent(PCEventQueue *q, const std::string &desc, System *sys)
+        : PCEvent(q, desc), system(sys)
+    {}
+    virtual void process(ExecContext *xc);
+};
+
+class InterruptStartEvent : public PCEvent
+{
+  public:
+    InterruptStartEvent(PCEventQueue *q, const std::string &desc)
+        : PCEvent(q, desc)
+    {}
+    virtual void process(ExecContext *xc);
+};
+
+class InterruptEndEvent : public PCEvent
+{
+  public:
+    InterruptEndEvent(PCEventQueue *q, const std::string &desc)
+        : PCEvent(q, desc)
+    {}
+    virtual void process(ExecContext *xc);
+};
+
+
 #endif // __SYSTEM_EVENTS_HH__