|
@@ -3140,7 +3140,7 @@ static void handle_arg_uname(const char *arg)
|
|
static void handle_arg_cpu(const char *arg)
|
|
static void handle_arg_cpu(const char *arg)
|
|
{
|
|
{
|
|
cpu_model = strdup(arg);
|
|
cpu_model = strdup(arg);
|
|
- if (cpu_model == NULL || strcmp(cpu_model, "?") == 0) {
|
|
|
|
|
|
+ if (cpu_model == NULL || is_help_option(cpu_model)) {
|
|
/* XXX: implement xxx_cpu_list for targets that still miss it */
|
|
/* XXX: implement xxx_cpu_list for targets that still miss it */
|
|
#if defined(cpu_list_id)
|
|
#if defined(cpu_list_id)
|
|
cpu_list_id(stdout, &fprintf, "");
|
|
cpu_list_id(stdout, &fprintf, "");
|
|
@@ -3231,7 +3231,7 @@ struct qemu_argument arg_table[] = {
|
|
{"s", "QEMU_STACK_SIZE", true, handle_arg_stack_size,
|
|
{"s", "QEMU_STACK_SIZE", true, handle_arg_stack_size,
|
|
"size", "set the stack size to 'size' bytes"},
|
|
"size", "set the stack size to 'size' bytes"},
|
|
{"cpu", "QEMU_CPU", true, handle_arg_cpu,
|
|
{"cpu", "QEMU_CPU", true, handle_arg_cpu,
|
|
- "model", "select CPU (-cpu ? for list)"},
|
|
|
|
|
|
+ "model", "select CPU (-cpu help for list)"},
|
|
{"E", "QEMU_SET_ENV", true, handle_arg_set_env,
|
|
{"E", "QEMU_SET_ENV", true, handle_arg_set_env,
|
|
"var=value", "sets targets environment variable (see below)"},
|
|
"var=value", "sets targets environment variable (see below)"},
|
|
{"U", "QEMU_UNSET_ENV", true, handle_arg_unset_env,
|
|
{"U", "QEMU_UNSET_ENV", true, handle_arg_unset_env,
|