From nobody Sat Feb 7 09:03:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1495739591049401.0929268472879; Thu, 25 May 2017 12:13:11 -0700 (PDT) Received: from localhost ([::1]:33330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDyC5-0005F2-OF for importer@patchew.org; Thu, 25 May 2017 15:13:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDyAX-0003sE-F3 for qemu-devel@nongnu.org; Thu, 25 May 2017 15:11:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDyAT-0001hQ-1L for qemu-devel@nongnu.org; Thu, 25 May 2017 15:11:33 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDyAS-0001hI-Na for qemu-devel@nongnu.org; Thu, 25 May 2017 15:11:28 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v4PJ8cpL034399 for ; Thu, 25 May 2017 15:11:27 -0400 Received: from e24smtp02.br.ibm.com (e24smtp02.br.ibm.com [32.104.18.86]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ans8ybu4b-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 25 May 2017 15:11:27 -0400 Received: from localhost by e24smtp02.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 25 May 2017 16:11:24 -0300 Received: from d24relay02.br.ibm.com (9.18.232.42) by e24smtp02.br.ibm.com (10.172.0.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 25 May 2017 16:11:22 -0300 Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.8.31.93]) by d24relay02.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v4PJBDYg17170818 for ; Thu, 25 May 2017 16:11:21 -0300 Received: from d24av02.br.ibm.com (localhost [127.0.0.1]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v4PJAnZH013600 for ; Thu, 25 May 2017 16:10:49 -0300 Received: from pacoca.ibm.com ([9.85.147.99]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v4PJAfwa013205; Thu, 25 May 2017 16:10:47 -0300 From: Jose Ricardo Ziviani To: qemu-devel@nongnu.org Date: Thu, 25 May 2017 16:10:21 -0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495739423-32326-1-git-send-email-joserz@linux.vnet.ibm.com> References: <1495739423-32326-1-git-send-email-joserz@linux.vnet.ibm.com> X-TM-AS-MML: disable x-cbid: 17052519-0020-0000-0000-000002AD13C5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17052519-0021-0000-0000-000030CA914B Message-Id: <1495739423-32326-3-git-send-email-joserz@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-05-25_15:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705250348 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 148.163.156.1 Subject: [Qemu-devel] [PATCH Risu v3 2/4] configure: Add initial support to PPC64 (big endian) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, nikunj@linux.vnet.ibm.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Uses the same ppc64 source file for both BE/LE archs since they are essentially the same thing. Signed-off-by: Jose Ricardo Ziviani --- configure | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 055e6d6..dd64d8b 100755 --- a/configure +++ b/configure @@ -51,11 +51,7 @@ guess_arch() { elif check_define __aarch64__ ; then ARCH=3D"aarch64" elif check_define __powerpc64__ ; then - if check_define __BIG_ENDIAN__; then - ARCH=3D"ppc64" - else - ARCH=3D"ppc64le" - fi + ARCH=3D"ppc64le" else echo "This cpu is not supported by risu. Try -h. " >&2 exit 1 @@ -127,6 +123,9 @@ OBJDUMP=3D"${OBJDUMP-${CROSS_PREFIX}objdump}" =20 if test "x${ARCH}" =3D "x"; then guess_arch +elif test "x${ARCH}" =3D "xppc64"; then + # ppc64 and ppc64le uses the same C source code + ARCH=3D"ppc64le" fi =20 generate_makefilein --=20 2.7.4