Replace curTick global variable with accessor functions.
[gem5.git] / src / cpu / o3 / commit_impl.hh
index 2895de2938c06f2d647d40445a3b2237a85cebf2..2912cbb037ca54a533cabfa5337c1fdbb1a761f0 100644 (file)
@@ -47,7 +47,7 @@
 #include "arch/utility.hh"
 #include "base/cp_annotate.hh"
 #include "base/loader/symtab.hh"
-#include "base/timebuf.hh"
+#include "cpu/timebuf.hh"
 #include "config/full_system.hh"
 #include "config/the_isa.hh"
 #include "config/use_checker.hh"
@@ -475,7 +475,7 @@ DefaultCommit<Impl>::generateTrapEvent(ThreadID tid)
 
     TrapEvent *trap = new TrapEvent(this, tid);
 
-    cpu->schedule(trap, curTick + trapLatency);
+    cpu->schedule(trap, curTick() + trapLatency);
     trapInFlight[tid] = true;
 }