summaryrefslogtreecommitdiffstats
path: root/simulator
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
parent74c4f25d634429c02cb7654bbd1a7ce742a3433e (diff)
downloadbcm5719-ortega-437967699cf69896e6bb9c50979dbc17a4850ced.tar.gz
bcm5719-ortega-437967699cf69896e6bb9c50979dbc17a4850ced.zip
regs: Add APE Clock Policy definitions. (#91)
Diffstat (limited to 'simulator')
-rw-r--r--simulator/APE_DEVICE.cpp2
-rw-r--r--simulator/APE_DEVICE0.cpp331
-rw-r--r--simulator/APE_DEVICE1.cpp2
-rw-r--r--simulator/APE_DEVICE1_sim.cpp4
-rw-r--r--simulator/APE_DEVICE2.cpp2
-rw-r--r--simulator/APE_DEVICE2_sim.cpp4
-rw-r--r--simulator/APE_DEVICE3.cpp2
-rw-r--r--simulator/APE_DEVICE3_sim.cpp4
-rw-r--r--simulator/APE_DEVICE_sim.cpp4
-rw-r--r--simulator/bcm5719_DEVICE.cpp2
-rw-r--r--simulator/bcm5719_DEVICE_sim.cpp6
11 files changed, 362 insertions, 1 deletions
diff --git a/simulator/APE_DEVICE.cpp b/simulator/APE_DEVICE.cpp
index 8d6318b..1244218 100644
--- a/simulator/APE_DEVICE.cpp
+++ b/simulator/APE_DEVICE.cpp
@@ -145,6 +145,8 @@ void init_APE_DEVICE(void)
/** @brief Bitmap for @ref DEVICE_t.LinkAwarePowerModeClockPolicy. */
+ /** @brief Bitmap for @ref DEVICE_t.ApeClkPolicy. */
+
/** @brief Bitmap for @ref DEVICE_t.ApeSleepStateClockPolicy. */
/** @brief Bitmap for @ref DEVICE_t.ClockSpeedOverridePolicy. */
diff --git a/simulator/APE_DEVICE0.cpp b/simulator/APE_DEVICE0.cpp
new file mode 100644
index 0000000..b6a3bd6
--- /dev/null
+++ b/simulator/APE_DEVICE0.cpp
@@ -0,0 +1,331 @@
+////////////////////////////////////////////////////////////////////////////////
+///
+/// @file APE_DEVICE.cpp
+///
+/// @project ape
+///
+/// @brief APE_DEVICE
+///
+////////////////////////////////////////////////////////////////////////////////
+///
+////////////////////////////////////////////////////////////////////////////////
+///
+/// @copyright Copyright (c) 2018, Evan Lojewski
+/// @cond
+///
+/// All rights reserved.
+///
+/// Redistribution and use in source and binary forms, with or without
+/// modification, are permitted provided that the following conditions are met:
+/// 1. Redistributions of source code must retain the above copyright notice,
+/// this list of conditions and the following disclaimer.
+/// 2. Redistributions in binary form must reproduce the above copyright notice,
+/// this list of conditions and the following disclaimer in the documentation
+/// and/or other materials provided with the distribution.
+/// 3. Neither the name of the <organization> nor the
+/// names of its contributors may be used to endorse or promote products
+/// derived from this software without specific prior written permission.
+///
+////////////////////////////////////////////////////////////////////////////////
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+/// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+/// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+/// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+/// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+/// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+/// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+/// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+/// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+/// POSSIBILITY OF SUCH DAMAGE.
+/// @endcond
+////////////////////////////////////////////////////////////////////////////////
+
+#include <APE_DEVICE.h>
+
+DEVICE_t DEVICE0;
+
+void init_APE_DEVICE0(void)
+{
+ /** @brief Component Registers for @ref DEVICE. */
+ /** @brief Bitmap for @ref DEVICE_t.MiscellaneousHostControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciState. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RegisterBase. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MemoryBase. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RegisterData. */
+
+ /** @brief Bitmap for @ref DEVICE_t.UndiReceiveReturnRingConsumerIndex. */
+
+ /** @brief Bitmap for @ref DEVICE_t.UndiReceiveReturnRingConsumerIndexLow. */
+
+ /** @brief Bitmap for @ref DEVICE_t.LinkStatusControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ApeMemoryBase. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ApeMemoryData. */
+
+ /** @brief Bitmap for @ref DEVICE_t.160. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacStatus. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacEvent. */
+
+ /** @brief Bitmap for @ref DEVICE_t.LedControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses0High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses0Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses1High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses1Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses2High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses2Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses3High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EmacMacAddresses3Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.WolPatternPointer. */
+
+ /** @brief Bitmap for @ref DEVICE_t.WolPatternCfg. */
+
+ /** @brief Bitmap for @ref DEVICE_t.438. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MtuSize. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MiiCommunication. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MiiMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.TransmitMacMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.TransmitMacStatus. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ReceiveMacMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ReceiveMacStatus. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch1High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch1Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch2High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch2Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch3High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch3Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch4High. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PerfectMatch4Low. */
+
+ /** @brief Bitmap for @ref DEVICE_t.SgmiiStatus. */
+
+ /** @brief Bitmap for @ref DEVICE_t.CpmuControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.NoLinkPowerModeClockPolicy. */
+
+ /** @brief Bitmap for @ref DEVICE_t.LinkAwarePowerModeClockPolicy. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ClockSpeedOverridePolicy. */
+
+ /** @brief Bitmap for @ref DEVICE_t.Status. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ClockStatus. */
+
+ /** @brief Bitmap for @ref DEVICE_t.GphyControlStatus. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ChipId. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MutexRequest. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MutexGrant. */
+
+ /** @brief Bitmap for @ref DEVICE_t.GphyStrap. */
+
+ /** @brief Bitmap for @ref DEVICE_t.FlashClockControlPolicy. */
+
+ /** @brief Bitmap for @ref DEVICE_t.TopLevelMiscellaneousControl1. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EeeMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EeeLinkIdleControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EeeControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.GlobalMutexRequest. */
+
+ /** @brief Bitmap for @ref DEVICE_t.GlobalMutexGrant. */
+
+ /** @brief Bitmap for @ref DEVICE_t.TemperatureMonitorControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MemoryArbiterMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.BufferManagerMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.LsoNonlsoBdReadDmaCorruptionEnableControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscMode. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscStatus. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscProgramCounter. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscCurrentInstruction. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscHardwareBreakpoint. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister0. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister1. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister2. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister3. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister4. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister5. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister6. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister7. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister8. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister9. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister10. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister11. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister12. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister13. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister14. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister15. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister16. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister17. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister18. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister19. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister20. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister21. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister22. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister23. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister24. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister25. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister26. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister27. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister28. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister29. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister30. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxRiscRegister31. */
+
+ /** @brief Bitmap for @ref DEVICE_t.6408. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerConsumptionInfo. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerDissipatedInfo. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciVpdRequest. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciVpdResponse. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciVendorDeviceId. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciSubsystemId. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciClassCodeRevision. */
+
+ /** @brief Bitmap for @ref DEVICE_t.64c0. */
+
+ /** @brief Bitmap for @ref DEVICE_t.64c4. */
+
+ /** @brief Bitmap for @ref DEVICE_t.64c8. */
+
+ /** @brief Bitmap for @ref DEVICE_t.64dc. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciSerialNumberLow. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciSerialNumberHigh. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget0. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget1. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget2. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget3. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget4. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget5. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget6. */
+
+ /** @brief Bitmap for @ref DEVICE_t.PciPowerBudget7. */
+
+ /** @brief Bitmap for @ref DEVICE_t.6530. */
+
+ /** @brief Bitmap for @ref DEVICE_t.6550. */
+
+ /** @brief Bitmap for @ref DEVICE_t.65f4. */
+
+ /** @brief Bitmap for @ref DEVICE_t.GrcModeControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MiscellaneousConfig. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MiscellaneousLocalControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.Timer. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxCpuEvent. */
+
+ /** @brief Bitmap for @ref DEVICE_t.6838. */
+
+ /** @brief Bitmap for @ref DEVICE_t.MdiControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.RxCpuEventEnable. */
+
+ /** @brief Bitmap for @ref DEVICE_t.FastBootProgramCounter. */
+
+ /** @brief Bitmap for @ref DEVICE_t.ExpansionRomAddr. */
+
+ /** @brief Bitmap for @ref DEVICE_t.68f0. */
+
+ /** @brief Bitmap for @ref DEVICE_t.EavRefClockControl. */
+
+ /** @brief Bitmap for @ref DEVICE_t.7c04. */
+
+
+}
diff --git a/simulator/APE_DEVICE1.cpp b/simulator/APE_DEVICE1.cpp
index 13b1873..3c8a7c6 100644
--- a/simulator/APE_DEVICE1.cpp
+++ b/simulator/APE_DEVICE1.cpp
@@ -145,6 +145,8 @@ void init_APE_DEVICE1(void)
/** @brief Bitmap for @ref DEVICE1_t.LinkAwarePowerModeClockPolicy. */
+ /** @brief Bitmap for @ref DEVICE1_t.ApeClkPolicy. */
+
/** @brief Bitmap for @ref DEVICE1_t.ApeSleepStateClockPolicy. */
/** @brief Bitmap for @ref DEVICE1_t.ClockSpeedOverridePolicy. */
diff --git a/simulator/APE_DEVICE1_sim.cpp b/simulator/APE_DEVICE1_sim.cpp
index 21256d1..9111d89 100644
--- a/simulator/APE_DEVICE1_sim.cpp
+++ b/simulator/APE_DEVICE1_sim.cpp
@@ -280,6 +280,10 @@ void init_APE_DEVICE1_sim(void *arg0)
DEVICE1.LinkAwarePowerModeClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE1.LinkAwarePowerModeClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+ /** @brief Bitmap for @ref DEVICE1_t.ApeClkPolicy. */
+ DEVICE1.ApeClkPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
+ DEVICE1.ApeClkPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+
/** @brief Bitmap for @ref DEVICE1_t.ApeSleepStateClockPolicy. */
DEVICE1.ApeSleepStateClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE1.ApeSleepStateClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
diff --git a/simulator/APE_DEVICE2.cpp b/simulator/APE_DEVICE2.cpp
index 34786f9..647c430 100644
--- a/simulator/APE_DEVICE2.cpp
+++ b/simulator/APE_DEVICE2.cpp
@@ -145,6 +145,8 @@ void init_APE_DEVICE2(void)
/** @brief Bitmap for @ref DEVICE2_t.LinkAwarePowerModeClockPolicy. */
+ /** @brief Bitmap for @ref DEVICE2_t.ApeClkPolicy. */
+
/** @brief Bitmap for @ref DEVICE2_t.ApeSleepStateClockPolicy. */
/** @brief Bitmap for @ref DEVICE2_t.ClockSpeedOverridePolicy. */
diff --git a/simulator/APE_DEVICE2_sim.cpp b/simulator/APE_DEVICE2_sim.cpp
index 68e137c..681e1b6 100644
--- a/simulator/APE_DEVICE2_sim.cpp
+++ b/simulator/APE_DEVICE2_sim.cpp
@@ -280,6 +280,10 @@ void init_APE_DEVICE2_sim(void *arg0)
DEVICE2.LinkAwarePowerModeClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE2.LinkAwarePowerModeClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+ /** @brief Bitmap for @ref DEVICE2_t.ApeClkPolicy. */
+ DEVICE2.ApeClkPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
+ DEVICE2.ApeClkPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+
/** @brief Bitmap for @ref DEVICE2_t.ApeSleepStateClockPolicy. */
DEVICE2.ApeSleepStateClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE2.ApeSleepStateClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
diff --git a/simulator/APE_DEVICE3.cpp b/simulator/APE_DEVICE3.cpp
index 1835503..fcd0638 100644
--- a/simulator/APE_DEVICE3.cpp
+++ b/simulator/APE_DEVICE3.cpp
@@ -145,6 +145,8 @@ void init_APE_DEVICE3(void)
/** @brief Bitmap for @ref DEVICE3_t.LinkAwarePowerModeClockPolicy. */
+ /** @brief Bitmap for @ref DEVICE3_t.ApeClkPolicy. */
+
/** @brief Bitmap for @ref DEVICE3_t.ApeSleepStateClockPolicy. */
/** @brief Bitmap for @ref DEVICE3_t.ClockSpeedOverridePolicy. */
diff --git a/simulator/APE_DEVICE3_sim.cpp b/simulator/APE_DEVICE3_sim.cpp
index 28d9492..fd8fec1 100644
--- a/simulator/APE_DEVICE3_sim.cpp
+++ b/simulator/APE_DEVICE3_sim.cpp
@@ -280,6 +280,10 @@ void init_APE_DEVICE3_sim(void *arg0)
DEVICE3.LinkAwarePowerModeClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE3.LinkAwarePowerModeClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+ /** @brief Bitmap for @ref DEVICE3_t.ApeClkPolicy. */
+ DEVICE3.ApeClkPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
+ DEVICE3.ApeClkPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+
/** @brief Bitmap for @ref DEVICE3_t.ApeSleepStateClockPolicy. */
DEVICE3.ApeSleepStateClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE3.ApeSleepStateClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
diff --git a/simulator/APE_DEVICE_sim.cpp b/simulator/APE_DEVICE_sim.cpp
index bbc715c..dea9965 100644
--- a/simulator/APE_DEVICE_sim.cpp
+++ b/simulator/APE_DEVICE_sim.cpp
@@ -280,6 +280,10 @@ void init_APE_DEVICE_sim(void *arg0)
DEVICE.LinkAwarePowerModeClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE.LinkAwarePowerModeClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+ /** @brief Bitmap for @ref DEVICE_t.ApeClkPolicy. */
+ DEVICE.ApeClkPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
+ DEVICE.ApeClkPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
+
/** @brief Bitmap for @ref DEVICE_t.ApeSleepStateClockPolicy. */
DEVICE.ApeSleepStateClockPolicy.r32.installReadCallback(loader_read_mem, (uint8_t *)base);
DEVICE.ApeSleepStateClockPolicy.r32.installWriteCallback(loader_write_mem, (uint8_t *)base);
diff --git a/simulator/bcm5719_DEVICE.cpp b/simulator/bcm5719_DEVICE.cpp
index 9f5f0c1..0f646cc 100644
--- a/simulator/bcm5719_DEVICE.cpp
+++ b/simulator/bcm5719_DEVICE.cpp
@@ -145,6 +145,8 @@ void init_bcm5719_DEVICE(void)
/** @brief Bitmap for @ref DEVICE_t.LinkAwarePowerModeClockPolicy. */
+ /** @brief Bitmap for @ref DEVICE_t.ApeClkPolicy. */
+
/** @brief Bitmap for @ref DEVICE_t.ApeSleepStateClockPolicy. */
/** @brief Bitmap for @ref DEVICE_t.ClockSpeedOverridePolicy. */
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