From nobody Fri Nov 14 15:21:08 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1588231596; cv=none; d=zohomail.com; s=zohoarc; b=Wqx1a3iZPLsgKcoBAvBw/WNKXzb56kRksubDID0r3If4KUd7nlGq53oTLjzJTNPg4/ArTKH05463+Kig8RRGfSFHKC8zHohtAdXfd47mPAjSnZWuEFFyM/WNrCs/LGK3bVulME4voMXBfdwJTm3XnO7AzRlrzzKv+PopGZL2MXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588231596; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=i9/yxdUO3Q8K6QSFF9LG/gJ6crdezfFpCeFLRje5Lfc=; b=NsbIQZhof9atR3yjhi6HIfRIXfn+Or4JPvEs02xkF1oBPMjwo7Cr2ho647scD5iBr+YcGjI3ScR4kObFyQQS6/S27M3kvnDjO95XTLMIPLaT5qDh9xsEypGcOWxWsFKUCueGLIgLi39RwTxrAp5WkXOU0f18iOaAUIuTd6+0hLM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1588231596381941.612921713772; Thu, 30 Apr 2020 00:26:36 -0700 (PDT) Received: from localhost ([::1]:60562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jU3ad-0001Vi-4T for importer@patchew.org; Thu, 30 Apr 2020 03:26:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34264) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jU3XX-0004ay-Nv for qemu-devel@nongnu.org; Thu, 30 Apr 2020 03:23:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jU3W7-0006YI-Ff for qemu-devel@nongnu.org; Thu, 30 Apr 2020 03:23:23 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:46784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jU3W6-0006Wb-OX; Thu, 30 Apr 2020 03:21:55 -0400 Received: from L-PF1D6DP4-1208.hz.ali.com(mailfrom:zhiwei_liu@c-sky.com fp:SMTPD_---.HQfovas_1588231302) by smtp.aliyun-inc.com(10.147.40.7); Thu, 30 Apr 2020 15:21:46 +0800 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1275953|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_alarm|0.0499706-0.00109699-0.948932; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03299; MF=zhiwei_liu@c-sky.com; NM=1; PH=DS; RN=10; RT=10; SR=0; TI=SMTPD_---.HQfovas_1588231302; From: LIU Zhiwei To: peter.maydell@linaro.org Subject: [RFC PATCH 6/8] riscv: Add configure script Date: Thu, 30 Apr 2020 15:21:37 +0800 Message-Id: <20200430072139.4602-7-zhiwei_liu@c-sky.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200430072139.4602-1-zhiwei_liu@c-sky.com> References: <20200430072139.4602-1-zhiwei_liu@c-sky.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=121.197.200.217; envelope-from=zhiwei_liu@c-sky.com; helo=smtp2200-217.mail.aliyun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/30 03:21:44 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Received-From: 121.197.200.217 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-riscv@nongnu.org, richard.henderson@linaro.org, qemu-devel@nongnu.org, wxy194768@alibaba-inc.com, wenmeng_zhang@c-sky.com, palmer@dabbelt.com, alistair23@gmail.com, alex.bennee@linaro.org, LIU Zhiwei Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" For RV64 risu, make CFLAGS=3D"-march=3Drv64g" Signed-off-by: LIU Zhiwei --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index ca2d7db..5c9e967 100755 --- a/configure +++ b/configure @@ -58,6 +58,8 @@ guess_arch() { ARCH=3D"m68k" elif check_define __powerpc64__ ; then ARCH=3D"ppc64" + elif check_define __riscv ; then + ARCH=3D"riscv64" else echo "This cpu is not supported by risu. Try -h. " >&2 exit 1 @@ -139,7 +141,7 @@ Some influential environment variables: prefixed with the given string. =20 ARCH force target architecture instead of trying to detect it. - Valid values=3D[arm|aarch64|ppc64|ppc64le|m68k] + Valid values=3D[arm|aarch64|ppc64|ppc64le|m68k|riscv64] =20 CC C compiler command CFLAGS C compiler flags --=20 2.23.0