|
@@ -878,11 +878,11 @@ static void help(int exitcode)
|
|
|
g_get_prgname());
|
|
|
|
|
|
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
|
- if ((arch_mask) & arch_type) \
|
|
|
+ if (qemu_arch_available(arch_mask)) \
|
|
|
fputs(opt_help, stdout);
|
|
|
|
|
|
#define ARCHHEADING(text, arch_mask) \
|
|
|
- if ((arch_mask) & arch_type) \
|
|
|
+ if (qemu_arch_available(arch_mask)) \
|
|
|
puts(stringify(text));
|
|
|
|
|
|
#define DEFHEADING(text) ARCHHEADING(text, QEMU_ARCH_ALL)
|
|
@@ -2929,7 +2929,7 @@ void qemu_init(int argc, char **argv)
|
|
|
const QEMUOption *popt;
|
|
|
|
|
|
popt = lookup_opt(argc, argv, &optarg, &optind);
|
|
|
- if (!(popt->arch_mask & arch_type)) {
|
|
|
+ if (!qemu_arch_available(popt->arch_mask)) {
|
|
|
error_report("Option not supported for this target");
|
|
|
exit(1);
|
|
|
}
|