From patchwork Tue May 17 22:32:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 96054 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 79254B6EE6 for ; Wed, 18 May 2011 08:33:44 +1000 (EST) Received: from localhost ([::1]:41106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMSph-0005V7-PV for incoming@patchwork.ozlabs.org; Tue, 17 May 2011 18:33:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMSpJ-0005QT-0B for qemu-devel@nongnu.org; Tue, 17 May 2011 18:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMSpG-0000LH-NS for qemu-devel@nongnu.org; Tue, 17 May 2011 18:33:16 -0400 Received: from mail-ew0-f45.google.com ([209.85.215.45]:37210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMSpG-0000KZ-JJ for qemu-devel@nongnu.org; Tue, 17 May 2011 18:33:14 -0400 Received: by mail-ew0-f45.google.com with SMTP id 24so340090ewy.4 for ; Tue, 17 May 2011 15:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=z2GxyNS7/kZzEmGMmqczL9y2OL1PiTYVJ5SUuMh2hI0=; b=hZF2oQfppLacNMaSFN4aVvbfOGvfRLd5e+bz+22Bxot4K+kauVxuwbjBYtL9jpKK4K liqns/Efnld6UQzLrCW1tOMNwnWHa+Y7Lab5JodYC+HhDdSu8MFkLHnkQr3i+aBTtchG f5PUnimmXc50ZWUj95mBM/+4oP3K4XvePGS0Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=AHH+xytIwEmaKfeVG867FZtRYoMg6sWB4R82fuGFcsh45rNxR5SXnuEizBjXXkTFeo +A6Ji4HTnk5lI7riWbpuP5Clrx7IRKQrWIBmxxXkuQuttO/uGCzk31wnfzXYQ0NWFrXR n++wUWpbB51+CTyKIvLMsOI3ngdY6bDnXRors= Received: by 10.213.113.136 with SMTP id a8mr1370727ebq.45.1305671594082; Tue, 17 May 2011 15:33:14 -0700 (PDT) Received: from octofox.metropolis ([188.134.19.124]) by mx.google.com with ESMTPS id y20sm697573eeh.2.2011.05.17.15.33.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 May 2011 15:33:13 -0700 (PDT) Received: by octofox.metropolis (sSMTP sendmail emulation); Wed, 18 May 2011 02:33:10 +0400 From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 18 May 2011 02:32:28 +0400 Message-Id: <1305671572-5899-3-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1305671572-5899-1-git-send-email-jcmvbkbc@gmail.com> References: <1305671572-5899-1-git-send-email-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.45 Cc: Max Filippov Subject: [Qemu-devel] [PATCH 02/26] target-xtensa: add target to the configure script 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 Signed-off-by: Max Filippov --- configure | 12 +++++++++++- default-configs/xtensa-softmmu.mak | 1 + default-configs/xtensaeb-softmmu.mak | 1 + 3 files changed, 13 insertions(+), 1 deletions(-) create mode 100644 default-configs/xtensa-softmmu.mak create mode 100644 default-configs/xtensaeb-softmmu.mak diff --git a/configure b/configure index d7dba5d..56a06ef 100755 --- a/configure +++ b/configure @@ -848,6 +848,8 @@ sh4-softmmu \ sh4eb-softmmu \ sparc-softmmu \ sparc64-softmmu \ +xtensa-softmmu \ +xtensaeb-softmmu \ " fi # the following are Linux specific @@ -3099,7 +3101,7 @@ target_arch2=`echo $target | cut -d '-' -f 1` target_bigendian="no" case "$target_arch2" in - armeb|lm32|m68k|microblaze|mips|mipsn32|mips64|ppc|ppcemb|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus) + armeb|lm32|m68k|microblaze|mips|mipsn32|mips64|ppc|ppcemb|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus|xtensaeb) target_bigendian=yes ;; esac @@ -3294,6 +3296,10 @@ case "$target_arch2" in unicore32) target_phys_bits=32 ;; + xtensa|xtensaeb) + TARGET_ARCH=xtensa + target_phys_bits=32 + ;; *) echo "Unsupported target CPU" exit 1 @@ -3476,6 +3482,10 @@ for i in $ARCH $TARGET_BASE_ARCH ; do echo "CONFIG_SPARC_DIS=y" >> $config_target_mak echo "CONFIG_SPARC_DIS=y" >> $libdis_config_mak ;; + xtensa*) + echo "CONFIG_XTENSA_DIS=y" >> $config_target_mak + echo "CONFIG_XTENSA_DIS=y" >> $libdis_config_mak + ;; esac done diff --git a/default-configs/xtensa-softmmu.mak b/default-configs/xtensa-softmmu.mak new file mode 100644 index 0000000..e5faa09 --- /dev/null +++ b/default-configs/xtensa-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for Xtensa diff --git a/default-configs/xtensaeb-softmmu.mak b/default-configs/xtensaeb-softmmu.mak new file mode 100644 index 0000000..e5faa09 --- /dev/null +++ b/default-configs/xtensaeb-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for Xtensa