> 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
 21:56:31  up  22:12,  2 users,  load average: 0.25, 0.47, 0.64
This commit is contained in:
tracer-ysyx 2024-01-12 21:56:31 +08:00 committed by xinyangli
parent 03a073a56d
commit 70eaa7c2bf
3 changed files with 2 additions and 3111 deletions

View file

@ -135,9 +135,10 @@ static paddr_t parse_expr(const char *arg, bool *success) {
// FIXME: We cannot use `parse_uint` here, it accept `-1234` as input
// paddr_t addr = parse_uint(arg, &res);
// *success = res;
yy_scan_string(arg);
paddr_t addr;
yy_scan_string(arg);
*success = yyparse(&addr);
yylex_destroy();
return addr;
}
}