> 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:38:02  up 3 days 21:38,  2 users,  load average: 1.03, 1.06, 0.97
This commit is contained in:
tracer-ysyx 2024-01-11 22:38:02 +08:00 committed by xinyangli
parent b3a7f26b9d
commit 7bf17d3663

View file

@ -189,9 +189,9 @@ static int cmd_x(char *args) {
word_t addr = parse_expr(arg, &res);
if (!res)
goto wrong_usage;
printf("%d, %d\n", addr, MUXDEF(CONFIG_ISA64, 4, 8));
for (paddr_t paddr = addr; paddr < addr + n;
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));
printf(FMT_WORD "\n", value);
}