cpu: o3: commit: mark pipeline delay variable as consts
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:08 +0000 (09:39 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:08 +0000 (09:39 -0500)
src/cpu/o3/commit.hh

index a63e8e9e9c34042c44ba207a2b9af03526fa242b..6688a70dc8cbdf0797f709e9051ddabe827c0dee 100644 (file)
@@ -406,29 +406,29 @@ class DefaultCommit
     std::list<ThreadID> priority_list;
 
     /** IEW to Commit delay. */
-    Cycles iewToCommitDelay;
+    const Cycles iewToCommitDelay;
 
     /** Commit to IEW delay. */
-    Cycles commitToIEWDelay;
+    const Cycles commitToIEWDelay;
 
     /** Rename to ROB delay. */
-    Cycles renameToROBDelay;
+    const Cycles renameToROBDelay;
 
-    Cycles fetchToCommitDelay;
+    const Cycles fetchToCommitDelay;
 
     /** Rename width, in instructions.  Used so ROB knows how many
      *  instructions to get from the rename instruction queue.
      */
-    unsigned renameWidth;
+    const unsigned renameWidth;
 
     /** Commit width, in instructions. */
-    unsigned commitWidth;
+    const unsigned commitWidth;
 
     /** Number of Reorder Buffers */
     unsigned numRobs;
 
     /** Number of Active Threads */
-    ThreadID numThreads;
+    const ThreadID numThreads;
 
     /** Is a drain pending? Commit is looking for an instruction boundary while
      * there are no pending interrupts
@@ -445,7 +445,7 @@ class DefaultCommit
     /** The latency to handle a trap.  Used when scheduling trap
      * squash event.
      */
-    Cycles trapLatency;
+    const Cycles trapLatency;
 
     /** The interrupt fault. */
     Fault interrupt;