diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-12 06:47:46 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-12 06:47:46 +0000 |
commit | c732abe2227954316a5db399aac2040ec0d68f91 (patch) | |
tree | 3dc6907025e858009a1c36460c4ab0a620eec731 /linux-user/main.c | |
parent | 90251fb96e9feba205ee4867cbfe21e0142ad341 (diff) |
Unify '-cpu ?' option.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3380 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/main.c')
-rw-r--r-- | linux-user/main.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 7de7ff5a71..1e406d3d43 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1945,14 +1945,9 @@ int main(int argc, char **argv) } else if (!strcmp(r, "cpu")) { cpu_model = argv[optind++]; if (strcmp(cpu_model, "?") == 0) { -#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(1); } |