summaryrefslogtreecommitdiffstats
path: root/utils/bcmflash
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-06-29 11:34:55 -0600
committerEvan Lojewski <github@meklort.com>2019-06-29 11:34:55 -0600
commit4e9143d8ab7fe77339946b7bc37eec0820b00f2e (patch)
tree02c137f81b03b4f11daa244d87821a5f524b4030 /utils/bcmflash
parent99dd644512cfef951ade6d2403a8cf2f43666b94 (diff)
downloadbcm5719-ortega-4e9143d8ab7fe77339946b7bc37eec0820b00f2e.tar.gz
bcm5719-ortega-4e9143d8ab7fe77339946b7bc37eec0820b00f2e.zip
SPlit the MIPS hal from the APE hal in the simulation code.
Diffstat (limited to 'utils/bcmflash')
-rw-r--r--utils/bcmflash/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/bcmflash/main.cpp b/utils/bcmflash/main.cpp
index 903b26a..c8db619 100644
--- a/utils/bcmflash/main.cpp
+++ b/utils/bcmflash/main.cpp
@@ -64,6 +64,8 @@
#include <string>
#include <fstream>
+#include <bcm5719_DEVICE.h>
+
#include "../NVRam/bcm5719_NVM.h"
using namespace std;
@@ -484,12 +486,15 @@ int main(int argc, char const *argv[])
infile.read((char*)ape, new_ape_length);
infile.close();
+#if 0
+ // Erase the previous APE image
while(new_ape_length < ape_length)
{
// erase remaining bytes.
ape[new_ape_length] = 0xFF;
new_ape_length++;
}
+#endif
}
printf("New Length (bytes): 0x%08X\n", new_ape_length);
OpenPOWER on IntegriCloud