As now -machine type=<target_name>-<machine_name> works.
maybe better way is -machine type=<machine_name>,target=<target_name>
as we can select target at the time when machine selected, and at there
The target option for -machine is also parsed, we can take the advantage of it.
And other than MachineClass::targets, we can add an extra
MachineClass::default_target, so that when target is not specified, we
can choose the default target for <machine_name> for the specific
machine.
And for "virt" machines, it's an exception, as it has multiple entrypoint,
For these I think it is better to prefix "virt" with a <base-arch> for
its machine name, then choose the target=<target_name>(mainly for
x86/risc v/arm/ppc/mips(which have two target(32bit and 64bit)).

-- 
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo

Reply via email to