ARM: Add support for read of 100MHz clock in system controller.
This commit is contained in:
parent
2157b9976b
commit
e2a6275c03
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ RealViewCtrl::read(PacketPtr pkt)
|
|||
clk = (Tick)(curTick() / (24 * SimClock::Float::MHz));
|
||||
pkt->set((uint32_t)(clk));
|
||||
break;
|
||||
case Clock100:
|
||||
Tick clk100;
|
||||
clk100 = (Tick)(curTick() / (100 * SimClock::Float::MHz));
|
||||
pkt->set((uint32_t)(clk100));
|
||||
break;
|
||||
case Flash:
|
||||
pkt->set<uint32_t>(0);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue