> 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:
parent
2cbfd0dbfb
commit
49fac50878
1 changed files with 1 additions and 1 deletions
|
@ -138,6 +138,7 @@ static paddr_t parse_expr(const char *arg, bool *success) {
|
||||||
paddr_t addr;
|
paddr_t addr;
|
||||||
yy_scan_string(arg);
|
yy_scan_string(arg);
|
||||||
*success = yyparse(&addr);
|
*success = yyparse(&addr);
|
||||||
|
printf("sucess: %d", *success);
|
||||||
yylex_destroy();
|
yylex_destroy();
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
@ -191,7 +192,6 @@ static int cmd_x(char *args) {
|
||||||
word_t n = parse_uint(arg, &res);
|
word_t n = parse_uint(arg, &res);
|
||||||
if (!res)
|
if (!res)
|
||||||
goto wrong_usage;
|
goto wrong_usage;
|
||||||
printf("%u", n);
|
|
||||||
arg = strtok(NULL, " ");
|
arg = strtok(NULL, " ");
|
||||||
word_t addr = parse_expr(arg, &res);
|
word_t addr = parse_expr(arg, &res);
|
||||||
if (!res)
|
if (!res)
|
||||||
|
|
Loading…
Reference in a new issue