> 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:43:13  up 3 days 21:43,  2 users,  load average: 0.46, 0.80, 0.89
This commit is contained in:
tracer-ysyx 2024-01-11 22:43:13 +08:00 committed by xinyangli
parent 991cc19536
commit 26df7f1440

View file

@ -189,6 +189,7 @@ static int cmd_x(char *args) {
word_t addr = parse_expr(arg, &res); word_t addr = parse_expr(arg, &res);
if (!res) if (!res)
goto wrong_usage; goto wrong_usage;
addr = addr & ~0x3;
for (paddr_t paddr = addr; paddr < addr + n; for (paddr_t paddr = addr; paddr < addr + n;
paddr += WORD_BYTES) { paddr += WORD_BYTES) {
word_t value = paddr_read(addr, WORD_BYTES); word_t value = paddr_read(addr, WORD_BYTES);