qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Proposal: option for CPU selection


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] Proposal: option for CPU selection
Date: Sun, 29 Apr 2007 20:59:37 +0200
User-agent: IceDove 1.5.0.10 (X11/20070329)

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

[Prev in Thread] Current Thread [Next in Thread]