> 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
 23:10:26  up 3 days 22:11,  2 users,  load average: 0.50, 0.63, 0.80
This commit is contained in:
tracer-ysyx 2024-01-11 23:10:26 +08:00 committed by xinyangli
parent a251ef6adc
commit 2174a96662

View file

@ -190,10 +190,11 @@ static int cmd_x(char *args) {
if (!res)
goto wrong_usage;
addr = addr & ~(WORD_BYTES - 1);
for (paddr_t paddr = addr; paddr < addr + n;
paddr += WORD_BYTES) {
for (paddr_t paddr = addr; paddr < addr + n; paddr += WORD_BYTES) {
word_t value = paddr_read(addr, WORD_BYTES);
printf("\e[1;34m" FMT_PADDR "\e[0m" " " FMT_WORD "\n", paddr, value);
printf("\e[1;34m" FMT_PADDR "\e[0m"
" " FMT_WORD "\n",
paddr, value);
}
return 0;