If you ever called qemu with "-cpu ?" and wonder why you get no answer:
here is a small patch which changes this behaviour for all targets
without CPU selection.

Regards
Stefan

Index: vl.c
===================================================================
--- vl.c        (Revision 629)
+++ vl.c        (Arbeitskopie)
@@ -7040,6 +7040,8 @@
                     mips_cpu_list(stdout, &fprintf);
 #elif defined(TARGET_SPARC)
                     sparc_cpu_list(stdout, &fprintf);
+#else
+                    printf("Target ignores cpu selection\n");
 #endif
                     exit(1);
                 } else {
Index: linux-user/main.c
===================================================================
--- linux-user/main.c   (Revision 616)
+++ linux-user/main.c   (Arbeitskopie)
@@ -1747,6 +1747,8 @@
                 mips_cpu_list(stdout, &fprintf);
 #elif defined(TARGET_SPARC)
                 sparc_cpu_list(stdout, &fprintf);
+#else
+                printf("Target ignores cpu selection\n");
 #endif
                 _exit(1);
             }

Reply via email to