memset(_mem, sz, 0);
vluint64_t restore_time = 0;
- bool traceme = false; // true: dump to trace file, false: don't
+ bool traceme = false; // true: dump to trace file, false: don't
// identify bram files to load (if not starting "+[verilator]")
// here we can specify any number of files, but at present only
// (realistically) two are supported: the bootloader (at address 0x0)
// of hassle
for (int i = 1; i < argc; i++) {
char *bram_file = NULL;
- if (strcmp("-h", argv[i]) == 0) {
+ if (strcmp("-h", argv[i]) == 0) {
printf("---Microwatt-verilator binary.---\n");
- printf("Line args:\n");
- printf("-h <- shows this help string\n");
- printf("-d <- enable trace dumping\n");
- printf("-s [NUMBER] <- start sim from snapshot\n");
- printf("first arg <- binary file to load into bram\n");
- printf("second arg <- linux binary to load to 0x600000 (a hack)\n");
- exit(1);
+ printf("Line args:\n");
+ printf("-h <- shows this help string\n");
+ printf("-d <- enable trace dumping\n");
+ printf("-s [NUMBER] <- start sim from snapshot\n");
+ printf("first arg <- binary file to load into bram\n");
+ printf("second arg <- linux binary to load to 0x600000 (a hack)\n");
+ exit(1);
}
- else if (strcmp("-d", argv[i]) == 0) {
+ else if (strcmp("-d", argv[i]) == 0) {
printf("Trace dump enabled. NOTE: Generates *LARGE* files!\n");
- traceme = true;
+ traceme = true;
}
else if (strcmp("-s", argv[i]) == 0) {
bram_file = (char*)malloc(128); // okok not freed, i know