From 0e032574c393118c8b81bffac228a5578b6692b6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 2 Jan 2022 16:13:13 +0000 Subject: [PATCH] add startup debug print indicating file loaded, size and offset --- verilator/microwatt-verilator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/verilator/microwatt-verilator.cpp b/verilator/microwatt-verilator.cpp index 050d2a6..07320e9 100644 --- a/verilator/microwatt-verilator.cpp +++ b/verilator/microwatt-verilator.cpp @@ -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); } -- 2.30.2