> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux
 22:37:36  up 3 days 21:38,  2 users,  load average: 1.56, 1.15, 1.00
This commit is contained in:
tracer-ysyx 2024-01-11 22:37:36 +08:00 committed by xinyangli
parent 6c2aa3fa5c
commit 08177e20f4

View file

@ -191,6 +191,7 @@ static int cmd_x(char *args) {
goto wrong_usage; goto wrong_usage;
for (paddr_t paddr = addr; paddr < addr + n; for (paddr_t paddr = addr; paddr < addr + n;
paddr += MUXDEF(CONFIG_ISA64, 4, 8)) { paddr += MUXDEF(CONFIG_ISA64, 4, 8)) {
printf("%d, %d", paddr, MUXDEF(CONFIG_ISA64, 4, 8));
word_t value = paddr_read(addr, MUXDEF(CONFIG_ISA64, 4, 8)); word_t value = paddr_read(addr, MUXDEF(CONFIG_ISA64, 4, 8));
printf(FMT_WORD "\n", value); printf(FMT_WORD "\n", value);
} }