summaryrefslogtreecommitdiffstats
path: root/simulator/HAL.cpp
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-03-23 16:24:42 -0600
committerEvan Lojewski <github@meklort.com>2019-03-23 16:24:42 -0600
commit8905806adb192188cc97a6084e899dbb69091448 (patch)
tree8b1ff21ee4355e5c05e72daf7b1f3226207be808 /simulator/HAL.cpp
parent97f0d0f23389f19e09abafae2e2cc5131bfb1874 (diff)
downloadbcm5719-ortega-8905806adb192188cc97a6084e899dbb69091448.tar.gz
bcm5719-ortega-8905806adb192188cc97a6084e899dbb69091448.zip
Split APE SHM out of the APE register area. Instantiate 4x in the APE, one per functino.
Diffstat (limited to 'simulator/HAL.cpp')
-rw-r--r--simulator/HAL.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/simulator/HAL.cpp b/simulator/HAL.cpp
index 716650e..73f421a 100644
--- a/simulator/HAL.cpp
+++ b/simulator/HAL.cpp
@@ -3,6 +3,7 @@
#include <bcm5719_DEVICE.h>
#include <bcm5719_APE.h>
+#include <bcm5719_SHM.h>
#include <bcm5719_GEN.h>
#include <dirent.h>
#include <endian.h>
@@ -248,10 +249,14 @@ bool initHAL(const char *pci_path, int wanted_function)
init_bcm5719_GEN();
init_bcm5719_GEN_mmap(&DEVICEBase[0x8000 + 0xB50]); // 0x8000 for windowed area
- init_bcm5719_APE();
- init_bcm5719_APE_mmap(APEBase);
init_bcm5719_NVM();
init_bcm5719_NVM_mmap(&DEVICEBase[0x7000]);
+ init_bcm5719_APE();
+ init_bcm5719_APE_mmap(APEBase);
+
+ init_bcm5719_SHM();
+ init_bcm5719_SHM_mmap(&DAPEBase[0x4000]);
+
return true;
}
OpenPOWER on IntegriCloud