From patchwork Sun May 23 22:35:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 53362 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 963D9B7D2D for ; Mon, 24 May 2010 08:37:01 +1000 (EST) Received: from localhost ([127.0.0.1]:49177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGJn0-00041z-6P for incoming@patchwork.ozlabs.org; Sun, 23 May 2010 18:36:58 -0400 Received: from [140.186.70.92] (port=50571 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGJlk-0003bc-0f for qemu-devel@nongnu.org; Sun, 23 May 2010 18:35:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGJli-0002Ba-DT for qemu-devel@nongnu.org; Sun, 23 May 2010 18:35:39 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]:59728) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGJlh-0002B8-Q0 for qemu-devel@nongnu.org; Sun, 23 May 2010 18:35:38 -0400 Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id 29B13E0803F for ; Mon, 24 May 2010 00:35:31 +0200 (CEST) Received: from Quad (wlp38-1-78-238-229-36.fbx.proxad.net [78.238.229.36]) by smtp6-g21.free.fr (Postfix) with ESMTP for ; Mon, 24 May 2010 00:35:30 +0200 (CEST) Received: from laurent by Quad with local (Exim 4.71) (envelope-from ) id 1OGJla-0008Lf-RR; Mon, 24 May 2010 00:35:30 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Mon, 24 May 2010 00:35:20 +0200 Message-Id: <1274654120-32062-1-git-send-email-Laurent@Vivier.EU> X-Mailer: git-send-email 1.7.0.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Laurent Vivier Subject: [Qemu-devel] [PATCH] linux-user: display cpu list. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Laurent Vivier As it is done for qemu-system with "-cpu ?", when cpu_list_id() is missing for a target, call cpu_list() instead. Signed-off-by: Laurent Vivier --- linux-user/main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index b240f29..f6fd6e3 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2797,6 +2797,8 @@ int main(int argc, char **argv, char **envp) /* XXX: implement xxx_cpu_list for targets that still miss it */ #if defined(cpu_list_id) cpu_list_id(stdout, &fprintf, ""); +#elif defined(cpu_list) + cpu_list(stdout, &fprintf); /* deprecated */ #endif exit(1); }