Replace curTick global variable with accessor functions.
This step makes it easy to replace the accessor functions (which still access a global variable) with ones that access per-thread curTick values.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user