> 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:31:30  up 3 days 21:32,  2 users,  load average: 0.99, 0.98, 0.92
This commit is contained in:
tracer-ysyx 2024-01-11 22:31:30 +08:00 committed by xinyangli
parent 04ccee4b8c
commit ed1d62143c

View file

@ -19,9 +19,9 @@
#include <cpu/cpu.h>
#include <errno.h>
#include <isa.h>
#include <memory/paddr.h>
#include <readline/history.h>
#include <readline/readline.h>
#include <memory/paddr.h>
#include <stdint.h>
static int is_batch_mode = false;
@ -185,7 +185,8 @@ static int cmd_x(char *args) {
word_t addr = parse_expr(arg, &res);
if (!res)
goto wrong_usage;
for (paddr_t paddr = addr; paddr < addr + n; paddr += MUXDEF(CONFIG_ISA64, 4, 8)) {
for (paddr_t paddr = addr; paddr < addr + n;
paddr += MUXDEF(CONFIG_ISA64, 4, 8)) {
word_t value = paddr_read(addr, MUXDEF(CONFIG_ISA64, 4, 8));
printf(FMT_WORD "\n", value);
}