summaryrefslogtreecommitdiff
path: root/block/qed.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-03-13 17:24:47 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 23:02:25 +0100
commit3df261b6676b5850e93d6fab3f7a98f8ee8f19c5 (patch)
tree65f19e2429070cb6e1ee96f83ebeecce44e845bd /block/qed.c
parent3b2c52c017fa74783435bc1a429a96ae5e5b164b (diff)
downloadqemu-3df261b6676b5850e93d6fab3f7a98f8ee8f19c5.zip
softmmu/vl.c: Handle '-cpu help' and '-device help' before 'no default machine'
Currently if you try to ask for the list of CPUs for a target architecture which does not specify a default machine type you just get an error: $ qemu-system-arm -cpu help qemu-system-arm: No machine specified, and there is no default Use -machine help to list supported machines Since the list of CPUs doesn't depend on the machine, this is unnecessarily unhelpful. "-device help" has a similar problem. Move the checks for "did the user ask for -cpu help or -device help" up so they precede the select_machine() call which checks that the user specified a valid machine type. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/qed.c')
0 files changed, 0 insertions, 0 deletions