> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux
 22:47:03  up   4:48,  2 users,  load average: 0.28, 0.18, 0.14
This commit is contained in:
tracer-ysyx 2024-02-05 22:47:03 +08:00 committed by xinyangli
parent a0a3c459c4
commit 9a0957389f

View file

@ -43,7 +43,7 @@ expression
}
| '-' number { $$ = -$2; }
| '*' expression {
printf("deref: %u - %#x\n", $2, vaddr_read($2, WORD_BYTES));
// printf("deref: %u, value: %#x\n", $2, vaddr_read($2, WORD_BYTES));
$$ = vaddr_read($2, WORD_BYTES);
}
| '(' expression ')' { $$ = $2; }