> 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
 10:29:01  up 1 day 10:44,  2 users,  load average: 1.05, 0.53, 0.48
This commit is contained in:
tracer-ysyx 2024-01-13 10:29:01 +08:00 committed by xinyangli
parent 7e0b6894fe
commit ba9e90e090

View file

@ -191,7 +191,8 @@ 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;
arg = strtok(NULL, " "); // No deliminter here, just pass all the remain argument to `parse_expr()`
arg = strtok(NULL, "");
word_t addr = parse_expr(arg, &res); word_t addr = parse_expr(arg, &res);
if (!res) if (!res)
goto wrong_usage; goto wrong_usage;