remove '-cpu' command line option, it can be used using cpu:model command line so no extra option is needed

This commit is contained in:
Stanislav Shwartsman 2011-08-20 18:59:25 +00:00
parent dd79431702
commit eba771bf39
2 changed files with 0 additions and 12 deletions

View File

@ -4857,10 +4857,6 @@ For other arguments, see section <link linkend="bochsrc">bochsrc</link>.
<entry>-f <replaceable>filename</replaceable></entry>
<entry>specify configuration file</entry>
</row>
<row>
<entry>-cpu <replaceable>cpu_name</replaceable></entry>
<entry>specify cpu model to emulate</entry>
</row>
<row>
<entry>-log <replaceable>filename</replaceable></entry>
<entry>specify Bochs log file</entry>

View File

@ -490,7 +490,6 @@ void print_usage(void)
"Usage: bochs [flags] [bochsrc options]\n\n"
" -n no configuration file\n"
" -f configfile specify configuration file\n"
" -cpu cpu_name specify cpu model to emulate\n"
" -q quick start (skip configuration interface)\n"
" -benchmark n run bochs in benchmark mode for millions of emulated ticks\n"
" -r path restore the Bochs state from path\n"
@ -567,13 +566,6 @@ int bx_init_main(int argc, char *argv[])
if (++arg >= argc) BX_PANIC(("-qf must be followed by a filename"));
else bochsrc_filename = argv[arg];
}
else if (!strcmp("-cpu", argv[arg])) {
if (++arg >= argc) BX_PANIC(("-cpu must be followed by a CPU name"));
else {
if (! SIM->get_param_enum(BXPN_CPU_MODEL)->set_by_name(argv[arg]))
BX_PANIC(("unsupported CPU model option %s", argv[arg]));
}
}
else if (!strcmp("-benchmark", argv[arg])) {
SIM->get_param_enum(BXPN_BOCHS_START)->set(BX_QUICK_START);
if (++arg >= argc) BX_PANIC(("-benchmark must be followed by a number"));