aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-12 06:47:46 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-12 06:47:46 +0000
commitc732abe2227954316a5db399aac2040ec0d68f91 (patch)
tree3dc6907025e858009a1c36460c4ab0a620eec731 /vl.c
parent90251fb96e9feba205ee4867cbfe21e0142ad341 (diff)
downloadqemu-c732abe2227954316a5db399aac2040ec0d68f91.zip
qemu-c732abe2227954316a5db399aac2040ec0d68f91.tar.gz
qemu-c732abe2227954316a5db399aac2040ec0d68f91.tar.bz2
Unify '-cpu ?' option.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3380 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/vl.c b/vl.c
index 01bb06e..65c3e6a 100644
--- a/vl.c
+++ b/vl.c
@@ -7690,14 +7690,9 @@ int main(int argc, char **argv)
case QEMU_OPTION_cpu:
/* hw initialization will check this */
if (*optarg == '?') {
-#if defined(TARGET_PPC)
- ppc_cpu_list(stdout, &fprintf);
-#elif defined(TARGET_ARM)
- arm_cpu_list();
-#elif defined(TARGET_MIPS)
- mips_cpu_list(stdout, &fprintf);
-#elif defined(TARGET_SPARC)
- sparc_cpu_list(stdout, &fprintf);
+/* XXX: implement xxx_cpu_list for targets that still miss it */
+#if defined(cpu_list)
+ cpu_list(stdout, &fprintf);
#endif
exit(0);
} else {