> 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:58:50  up  22:14,  2 users,  load average: 0.55, 0.46, 0.61
This commit is contained in:
tracer-ysyx 2024-01-12 21:58:50 +08:00 committed by xinyangli
parent 2cbfd0dbfb
commit 49fac50878

View file

@ -138,6 +138,7 @@ static paddr_t parse_expr(const char *arg, bool *success) {
paddr_t addr;
yy_scan_string(arg);
*success = yyparse(&addr);
printf("sucess: %d", *success);
yylex_destroy();
return addr;
}
@ -191,7 +192,6 @@ static int cmd_x(char *args) {
word_t n = parse_uint(arg, &res);
if (!res)
goto wrong_usage;
printf("%u", n);
arg = strtok(NULL, " ");
word_t addr = parse_expr(arg, &res);
if (!res)