From patchwork Thu Jul 28 13:37:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 107254 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 15B70B6F57 for ; Thu, 28 Jul 2011 23:38:22 +1000 (EST) Received: from localhost ([::1]:50832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmQn4-0004rj-4d for incoming@patchwork.ozlabs.org; Thu, 28 Jul 2011 09:38:18 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmQmw-0004nd-51 for qemu-devel@nongnu.org; Thu, 28 Jul 2011 09:38:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmQmu-0008Nu-QV for qemu-devel@nongnu.org; Thu, 28 Jul 2011 09:38:10 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:51035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmQmu-0008NY-BA for qemu-devel@nongnu.org; Thu, 28 Jul 2011 09:38:08 -0400 Received: from aspire-one.lan (dynamic-adsl-78-14-106-154.clienti.tiscali.it [78.14.106.154]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MW9VZ-1QsgBb2oNl-00Y2FR; Thu, 28 Jul 2011 15:38:07 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 28 Jul 2011 15:37:54 +0200 Message-Id: <1311860276-24690-3-git-send-email-Laurent@Vivier.EU> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1311860276-24690-1-git-send-email-Laurent@Vivier.EU> References: <1311860276-24690-1-git-send-email-Laurent@Vivier.EU> X-Provags-ID: V02:K0:9TqoPyhyPVKxvLECEWFHhl9xulEWqFOeQRz59i/VK0C pE77Y/H8doYt1ODDkrxs/5uWLMUW7HVlbHpacnJoWYlv6Yt2iD MeTvVUGE7F5KfIIRYtj7LA9IPM1dnrTd1JpFwys6ieDjTuK5YH bjaKjZktiUCZV6TvHkr9XbDQWwrtdi9aKG+eONXtaO1ENKtBCV e7Sn8dVkopUI5MCtT09MHOX5hyrGrPVwXDN3FJRnIk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.8 Cc: Riku Voipio , Laurent Vivier Subject: [Qemu-devel] [PATCH 2/4] linux-user: specify the cpu model during configure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch allows to set the default cpu model for a given architecture, for instance: configure --target-list=m68k-linux-user --m68k-default-cpu=m68040 Signed-off-by: Laurent Vivier --- configure | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/configure b/configure index c74a5f9..d54f0ed 100755 --- a/configure +++ b/configure @@ -527,6 +527,10 @@ for opt do ;; --target-list=*) target_list="$optarg" ;; + --*-default-cpu=*) + tmp=`expr "x$opt" : 'x--\(.*\)-default-cpu=.*'` + eval ${tmp}_default_cpu="$optarg" + ;; --enable-trace-backend=*) trace_backend="$optarg" ;; --with-trace-file=*) trace_file="$optarg" @@ -916,6 +920,7 @@ echo " use %M for cpu name [$interp_prefix]" echo " --target-list=LIST set target list (default: build everything)" echo "Available targets: $default_target_list" | \ fold -s -w 53 | sed -e 's/^/ /' +echo " --ARCH-default-cpu=CPU set the default cpu for a given architecture" echo "" echo "Advanced options (experts only):" echo " --source-path=PATH path of source code [$source_path]" @@ -3291,6 +3296,10 @@ case "$target_arch2" in exit 1 ;; esac +tmp_target_default_cpu=`eval echo \\$${target_arch2}_default_cpu` +if [ "x$tmp_target_default_cpu" != "x" ] ; then + target_default_cpu="$tmp_target_default_cpu" +fi echo "TARGET_SHORT_ALIGNMENT=$target_short_alignment" >> $config_target_mak echo "TARGET_INT_ALIGNMENT=$target_int_alignment" >> $config_target_mak echo "TARGET_LONG_ALIGNMENT=$target_long_alignment" >> $config_target_mak