From patchwork Wed Aug 17 20:46:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryce Lanham X-Patchwork-Id: 110448 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 9562DB6FAF for ; Thu, 18 Aug 2011 09:18:05 +1000 (EST) Received: from localhost ([::1]:48624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtn3E-00078q-1q for incoming@patchwork.ozlabs.org; Wed, 17 Aug 2011 16:49:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtn2K-0004oA-4q for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:48:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qtn2I-0006dU-HR for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:48:27 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:62061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtn2H-0006dP-Ua for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:48:26 -0400 Received: by gwb19 with SMTP id 19so553866gwb.4 for ; Wed, 17 Aug 2011 13:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=OcyWBQ/HxTvkh9BGb2hf0T9jVZd2Xka9uCnRQzWY038=; b=w+ngJCBR8C7Ud0oCRG6wtb/JgExvErvhpmYzM2656uGtcKPoTgr3O9a1bk8AMQG5sv brSEUcVwwF8nRjI3bRihlFiIUmpNWP70Aale7Cc3VDICodaw6VvCSe7RvGG1Kq6IZBFN QdhIbHv5YWR+jQaH7f3HZjn93k7rxw4YYBBwM= Received: by 10.236.175.99 with SMTP id y63mr5049516yhl.53.1313614103808; Wed, 17 Aug 2011 13:48:23 -0700 (PDT) Received: from localhost.localdomain (betelgeuse.cs.uchicago.edu [128.135.24.226]) by mx.google.com with ESMTPS id a29sm1237029yhj.59.2011.08.17.13.48.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Aug 2011 13:48:23 -0700 (PDT) From: Bryce Lanham To: qemu-devel@nongnu.org Date: Wed, 17 Aug 2011 15:46:09 -0500 Message-Id: <1313614076-28878-5-git-send-email-blanham@gmail.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1313614076-28878-1-git-send-email-blanham@gmail.com> References: <1313614076-28878-1-git-send-email-blanham@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.45 Cc: Laurent Vivier Subject: [Qemu-devel] [PATCH 004/111] 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 From: Laurent Vivier 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 1b9da9e..46b49e0 100755 --- a/configure +++ b/configure @@ -530,6 +530,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" @@ -926,6 +930,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]" @@ -3360,6 +3365,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