> 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:43:48  up   4:44,  2 users,  load average: 0.49, 0.20, 0.14
This commit is contained in:
tracer-ysyx 2024-02-05 22:43:48 +08:00 committed by xinyangli
parent 188c2d8bb5
commit 8960f8b37a

View file

@ -42,7 +42,10 @@ expression
$$ = $1 / $3; $$ = $1 / $3;
} }
| '-' number { $$ = -$2; } | '-' number { $$ = -$2; }
| '*' expression { printf("deref: %u", $2); $$ = vaddr_read($2, WORD_BYTES * 8); } | '*' expression {
printf("deref: %u", $2);
// $$ = vaddr_read($2, WORD_BYTES * 8);
}
| '(' expression ')' { $$ = $2; } | '(' expression ')' { $$ = $2; }
number number