> 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
 18:16:08  up 3 days 17:16,  2 users,  load average: 1.03, 1.13, 0.89
This commit is contained in:
tracer-ysyx 2024-01-11 18:16:08 +08:00 committed by xinyangli
parent dc8644a8c5
commit e338bdf059

View file

@ -70,11 +70,16 @@ static int cmd_si(char *args) {
base = 16; arg = arg + 2;
}
}
if (arg[0] == '0')
return 0;
int n = strtoumax(arg, NULL, base);
if (n == UINTMAX_MAX) {
printf("%s is too large\n", args);
return 0;
} else if (n == 0) {
printf("Invalid argument for command si: %s\n", args);
return 0;
} else {
}else {
cpu_exec(n);
}
}