add startup debug print indicating file loaded, size and offset
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 2 Jan 2022 16:13:13 +0000 (16:13 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 2 Jan 2022 16:13:13 +0000 (16:13 +0000)
verilator/microwatt-verilator.cpp

index 050d2a6d27eda014454952471e0768c671c9d9c5..07320e9cd648fa58683cb5c29aba2fb4592e9457 100644 (file)
@@ -136,6 +136,8 @@ int main(int argc, char **argv)
             if (i == 2) {
                 offs = 0x500000; // hard-coded offset of the linux binary
             }
+            printf("loading %s at 0x%x size 0x%x\n", bram_file, offs,
+                    statbuf.st_size);
             memcpy(mem+offs, fmem, statbuf.st_size);
             munmap(fmem, statbuf.st_size);
         }