From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI2xE-00042q-3t for qemu-devel@nongnu.org; Fri, 06 Sep 2013 16:48:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VI2xD-0000Po-3V for qemu-devel@nongnu.org; Fri, 06 Sep 2013 16:48:32 -0400 Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]:36350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI2xC-0000P7-EZ for qemu-devel@nongnu.org; Fri, 06 Sep 2013 16:48:31 -0400 From: Laurent Vivier Date: Fri, 6 Sep 2013 22:47:52 +0200 Message-Id: <1378500474-26067-3-git-send-email-laurent@vivier.eu> In-Reply-To: <1378500474-26067-1-git-send-email-laurent@vivier.eu> References: <1378500474-26067-1-git-send-email-laurent@vivier.eu> Subject: [Qemu-devel] [PATCH 2/4] linux-user: specify the cpu model during configure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio Cc: qemu-devel@nongnu.org, Laurent Vivier 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 file changed, 9 insertions(+) diff --git a/configure b/configure index ef84abe..22b27fc 100755 --- a/configure +++ b/configure @@ -650,6 +650,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" @@ -1025,6 +1029,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]" @@ -4375,6 +4380,10 @@ upper() { echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]' } +tmp_target_default_cpu=`eval echo \\$${target_name}_default_cpu` +if [ "x$tmp_target_default_cpu" != "x" ] ; then + target_default_cpu="$tmp_target_default_cpu" +fi echo "TARGET_DEFAULT_CPU=\"$target_default_cpu\"" >> $config_target_mak target_arch_name="`upper $TARGET_ARCH`" echo "TARGET_$target_arch_name=y" >> $config_target_mak -- 1.8.1.2