> 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:
parent
b3a7f26b9d
commit
7bf17d3663
1 changed files with 1 additions and 1 deletions
|
@ -189,9 +189,9 @@ 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;
|
||||||
|
printf("%d, %d\n", addr, MUXDEF(CONFIG_ISA64, 4, 8));
|
||||||
for (paddr_t paddr = addr; paddr < addr + n;
|
for (paddr_t paddr = addr; paddr < addr + n;
|
||||||
paddr += MUXDEF(CONFIG_ISA64, 4, 8)) {
|
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));
|
word_t value = paddr_read(addr, MUXDEF(CONFIG_ISA64, 4, 8));
|
||||||
printf(FMT_WORD "\n", value);
|
printf(FMT_WORD "\n", value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue