diff --git a/nemu/src/memory/paddr.c b/nemu/src/memory/paddr.c index 52fddee..a72d95f 100644 --- a/nemu/src/memory/paddr.c +++ b/nemu/src/memory/paddr.c @@ -14,6 +14,7 @@ ***************************************************************************************/ #include "common.h" +#include "debug.h" #include #include #include @@ -75,6 +76,11 @@ void init_mem() { ptr = strtok_r(NULL, ",", &saveptr); if (!ptr) break; } + Log("MTRACE ranges: "); + for (int i = 0; i < range_count; i++) { + printf("[0x%x, 0x%x], ", mtrace_start[i], mtrace_end[i]); + } + puts(""); #endif IFDEF(CONFIG_MEM_RANDOM, memset(pmem, rand(), CONFIG_MSIZE)); Log("physical memory area [" FMT_PADDR ", " FMT_PADDR "]", PMEM_LEFT, PMEM_RIGHT);