From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Doc-0002FF-Hi for qemu-devel@nongnu.org; Sun, 18 Sep 2011 05:37:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5Dob-0001SI-Bq for qemu-devel@nongnu.org; Sun, 18 Sep 2011 05:37:34 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]:52381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Doa-0001S0-KQ for qemu-devel@nongnu.org; Sun, 18 Sep 2011 05:37:33 -0400 From: Laurent Vivier Date: Sun, 18 Sep 2011 11:37:08 +0200 Message-Id: <1316338630-9625-3-git-send-email-laurent@vivier.eu> In-Reply-To: <1316338630-9625-1-git-send-email-laurent@vivier.eu> References: <1316338630-9625-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: qemu-devel@nongnu.org Cc: Riku Voipio , 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 files changed, 9 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 5e10055..5f2c073 100755 --- a/configure +++ b/configure @@ -536,6 +536,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" @@ -932,6 +936,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]" @@ -3369,6 +3374,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 -- 1.7.1