mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
vl: convert -tb-size to qemu_strtoul
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b3f6ea7e55
commit
8b3ae692b8
3 changed files with 5 additions and 5 deletions
6
vl.c
6
vl.c
|
@ -3933,9 +3933,9 @@ int main(int argc, char **argv, char **envp)
|
|||
configure_rtc(opts);
|
||||
break;
|
||||
case QEMU_OPTION_tb_size:
|
||||
tcg_tb_size = strtol(optarg, NULL, 0);
|
||||
if (tcg_tb_size < 0) {
|
||||
tcg_tb_size = 0;
|
||||
if (qemu_strtoul(optarg, NULL, 0, &tcg_tb_size) < 0) {
|
||||
error_report("Invalid argument to -tb-size");
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
case QEMU_OPTION_icount:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue