> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 17:53:22  up   7:29,  2 users,  load average: 0.42, 0.54, 0.55
This commit is contained in:
tracer-ysyx 2024-03-13 17:53:22 +08:00 committed by xinyangli
parent 12b18e77fd
commit 47dedcbb43

View file

@ -14,6 +14,7 @@
***************************************************************************************/
#include "common.h"
#include "debug.h"
#include <memory/host.h>
#include <memory/paddr.h>
#include <device/mmio.h>
@ -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);