diff options
| author | Evan Lojewski <github@meklort.com> | 2019-02-16 08:38:26 -0700 |
|---|---|---|
| committer | Evan Lojewski <github@meklort.com> | 2019-02-16 08:38:26 -0700 |
| commit | 09904cbc6afe94757e9df2587b311bbb0d995f62 (patch) | |
| tree | e1181dc54d6b7fe042e764f069fa85c813cc4247 /simulator/HAL.cpp | |
| parent | 073244cf2636970574332ebd86e1a9115984fa34 (diff) | |
| download | bcm5719-ortega-09904cbc6afe94757e9df2587b311bbb0d995f62.tar.gz bcm5719-ortega-09904cbc6afe94757e9df2587b311bbb0d995f62.zip | |
Update bcmregtool to print out a number of useful registers and to support single stepping the cpu.
Diffstat (limited to 'simulator/HAL.cpp')
| -rw-r--r-- | simulator/HAL.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/simulator/HAL.cpp b/simulator/HAL.cpp index 80b9eaf..7b34af7 100644 --- a/simulator/HAL.cpp +++ b/simulator/HAL.cpp @@ -3,6 +3,7 @@ #include <bcm5719_DEVICE.h> #include <bcm5719_APE.h> +#include <bcm5719_GEN.h> #include <dirent.h> #include <endian.h> #include <errno.h> @@ -242,10 +243,14 @@ bool initHAL(const char *pci_path) init_bcm5719_DEVICE(); init_bcm5719_DEVICE_mmap(DEVICEBase); + + init_bcm5719_GEN(); + init_bcm5719_GEN_mmap(&DEVICEBase[0x8000 + 0xB50]); // 0x8000 for windowed area + init_bcm5719_APE(); // init_bcm5719_APE_mmap(); init_bcm5719_NVM(); - init_bcm5719_NVM_mmap(DEVICEBase + 0x7000); + init_bcm5719_NVM_mmap(&DEVICEBase[0x7000]); return true; } |

