summaryrefslogtreecommitdiffstats
path: root/simulator/bcm5719_DEVICE_sim.cpp
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-07-14 20:07:52 -0600
committerGitHub <noreply@github.com>2020-07-14 20:07:52 -0600
commit437967699cf69896e6bb9c50979dbc17a4850ced (patch)
tree5ba05f80c7d304a4a7c7ea4cdd9674d06ad2b36e /simulator/bcm5719_DEVICE_sim.cpp
parent74c4f25d634429c02cb7654bbd1a7ce742a3433e (diff)
downloadbcm5719-ortega-437967699cf69896e6bb9c50979dbc17a4850ced.tar.gz
bcm5719-ortega-437967699cf69896e6bb9c50979dbc17a4850ced.zip
regs: Add APE Clock Policy definitions. (#91)
Diffstat (limited to 'simulator/bcm5719_DEVICE_sim.cpp')
-rw-r--r--simulator/bcm5719_DEVICE_sim.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/simulator/bcm5719_DEVICE_sim.cpp b/simulator/bcm5719_DEVICE_sim.cpp
index e23bb24..24ca2d3 100644
--- a/simulator/bcm5719_DEVICE_sim.cpp
+++ b/simulator/bcm5719_DEVICE_sim.cpp
@@ -353,11 +353,15 @@ void init_bcm5719_DEVICE_sim(void *base)
DEVICE.LinkAwarePowerModeClockPolicy.r32.installReadCallback(read_from_ram, (uint8_t *)base);
DEVICE.LinkAwarePowerModeClockPolicy.r32.installWriteCallback(write_to_ram, (uint8_t *)base);
- for(int i = 0; i < 3; i++)
+ for(int i = 0; i < 2; i++)
{
DEVICE.reserved_13844[i].installReadCallback(read_from_ram, (uint8_t *)base);
DEVICE.reserved_13844[i].installWriteCallback(write_to_ram, (uint8_t *)base);
}
+ /** @brief Bitmap for @ref DEVICE_t.ApeClkPolicy. */
+ DEVICE.ApeClkPolicy.r32.installReadCallback(read_from_ram, (uint8_t *)base);
+ DEVICE.ApeClkPolicy.r32.installWriteCallback(write_to_ram, (uint8_t *)base);
+
/** @brief Bitmap for @ref DEVICE_t.ApeSleepStateClockPolicy. */
DEVICE.ApeSleepStateClockPolicy.r32.installReadCallback(read_from_ram, (uint8_t *)base);
DEVICE.ApeSleepStateClockPolicy.r32.installWriteCallback(write_to_ram, (uint8_t *)base);
OpenPOWER on IntegriCloud