> 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:23:16  up 3 days 21:24,  2 users,  load average: 1.66, 1.11, 0.84
This commit is contained in:
tracer-ysyx 2024-01-11 22:23:16 +08:00 committed by xinyangli
parent 43ea6aac16
commit 21c7c9ce35
3 changed files with 94 additions and 27 deletions

View file

@ -27,7 +27,7 @@ const char *regs[] = {
void isa_reg_display() {
int colomn_per_row = 4;
for(int i = 0; i < ARRLEN(regs); i++) {
printf("\e[1;34m%3s\e[0m: 0x%08x ", reg_name(i), gpr(i));
printf("\e[1;34m%3s\e[0m: " FMT_PADDR, reg_name(i), gpr(i));
if (i % colomn_per_row == 3)
putchar('\n');
else