qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH RFC 01/11] s390/qemu: cpu modle disable list cpus


From: Michael Mueller
Subject: [Qemu-devel] [PATCH RFC 01/11] s390/qemu: cpu modle disable list cpus
Date: Wed, 2 Oct 2013 13:33:32 +0200

The patch disables the early invocation of list_cpus() to allow
the dynamically initialization of all S390 cpu classes in current
host runtime context.

Signed-off-by: Michael Mueller <address@hidden>
---
 vl.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/vl.c b/vl.c
index efb8644..15731b0 100644
--- a/vl.c
+++ b/vl.c
@@ -3841,9 +3841,11 @@ int main(int argc, char **argv, char **envp)
      */
     cpudef_init();
 
-    if (cpu_model && is_help_option(cpu_model)) {
-        list_cpus(stdout, &fprintf, cpu_model);
-        exit(0);
+    if (arch_type != QEMU_ARCH_S390X) {
+        if (cpu_model && is_help_option(cpu_model)) {
+            list_cpus(stdout, &fprintf, cpu_model);
+            exit(0);
+        }
     }
 
     /* Open the logfile at this point, if necessary. We can't open the logfile
-- 
1.8.3.1




reply via email to

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