From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRKgt-0000Yn-Sn for qemu-devel@nongnu.org; Wed, 02 Oct 2013 07:34:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRKgk-00026V-2g for qemu-devel@nongnu.org; Wed, 02 Oct 2013 07:34:03 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:54917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRKgj-00025R-OO for qemu-devel@nongnu.org; Wed, 02 Oct 2013 07:33:53 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 2 Oct 2013 12:33:50 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 383FD17D805F for ; Wed, 2 Oct 2013 12:34:06 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r92BXarh63832066 for ; Wed, 2 Oct 2013 11:33:36 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r92BXlLT022829 for ; Wed, 2 Oct 2013 05:33:47 -0600 From: Michael Mueller Date: Wed, 2 Oct 2013 13:33:32 +0200 Message-Id: <1380713622-22325-2-git-send-email-mimu@linux.vnet.ibm.com> In-Reply-To: <1380713622-22325-1-git-send-email-mimu@linux.vnet.ibm.com> References: <1380713622-22325-1-git-send-email-mimu@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH RFC 01/11] s390/qemu: cpu modle disable list cpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Mueller 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 --- 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