> 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:41:21  up 3 days 21:42,  2 users,  load average: 0.69, 0.94, 0.95
This commit is contained in:
tracer-ysyx 2024-01-11 22:41:21 +08:00 committed by xinyangli
parent 40dccf6a54
commit f4c4758627

View file

@ -189,11 +189,10 @@ static int cmd_x(char *args) {
word_t addr = parse_expr(arg, &res);
if (!res)
goto wrong_usage;
printf("%u, %d\n", addr, WORD_BYTES);
for (paddr_t paddr = addr; paddr < addr + n;
paddr += WORD_BYTES) {
word_t value = paddr_read(addr, WORD_BYTES);
printf(FMT_WORD "\n", value);
printf(FMT_PADDR FMT_WORD "\n", paddr, value);
}
return 0;