GCC: Get everything working with gcc 4.6.1.
[gem5.git] / src / cpu / inorder / resource_sked.hh
index bd002e161ee8dcd934677453f509d7fe53f8a9ff..c44c2d3fabb106e75d5afbc48fc11b13816bd893 100644 (file)
@@ -32,9 +32,9 @@
 #ifndef __CPU_INORDER_RESOURCE_SKED_HH__
 #define __CPU_INORDER_RESOURCE_SKED_HH__
 
-#include <vector>
-#include <list>
 #include <cstdlib>
+#include <list>
+#include <vector>
 
 /** ScheduleEntry class represents a single function that an instruction
     wants to do at any pipeline stage. For example, if an instruction
@@ -111,6 +111,12 @@ class ResourceSked {
     /** Ending Entry of this schedule */
     SkedIt end();
 
+    /** Ending Entry of a specified stage */
+    SkedIt end(int stage_num);
+
+    /** Find a schedule entry based on stage and command */
+    SkedIt find(int stage_num, int cmd);
+
     /** What is the next task for this instruction schedule? */
     ScheduleEntry* top();