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:
@@ -62,7 +62,7 @@ RealViewCtrl::read(PacketPtr pkt)
|
||||
break;
|
||||
case Clock24:
|
||||
Tick clk;
|
||||
clk = (Tick)(curTick / (24 * SimClock::Float::MHz));
|
||||
clk = (Tick)(curTick() / (24 * SimClock::Float::MHz));
|
||||
pkt->set((uint32_t)(clk));
|
||||
break;
|
||||
case Flash:
|
||||
|
||||
Reference in New Issue
Block a user