Message ID | 5382fea4f91a7b73adb2d4e5e7318c30bd7d83ce.1543352682.git.alistair.francis@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F125A109C for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 27 Nov 2018 21:29:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E28ED2C257 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 27 Nov 2018 21:29:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D725D2C25A; Tue, 27 Nov 2018 21:29:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 310712C257 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 27 Nov 2018 21:29:05 +0000 (UTC) Received: from localhost ([::1]:44605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1gRkum-000092-Ch for patchwork-qemu-devel@patchwork.kernel.org; Tue, 27 Nov 2018 16:29:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <prvs=862abf4e0=Alistair.Francis@wdc.com>) id 1gRkcN-0006SU-Qo for qemu-devel@nongnu.org; Tue, 27 Nov 2018 16:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <prvs=862abf4e0=Alistair.Francis@wdc.com>) id 1gRkcK-0005ND-LT for qemu-devel@nongnu.org; Tue, 27 Nov 2018 16:10:03 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:54962) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <prvs=862abf4e0=Alistair.Francis@wdc.com>) id 1gRkcK-0005Mm-DK; Tue, 27 Nov 2018 16:10:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1543353006; x=1574889006; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SXEW3aOejaXUGG6wDVeW0kLHIEXsykZD8i0pCB2KA1M=; b=LGBdNusNDdhMETGft2PiDsUdjLfdY4GTtJ77fIjEopI+oG/YCXmR/zUa 5bmpYouJGMNXvBJFRe84Al3ET4UjUf7hh5VUftAvJ/i48MvlG0YzKT0aa 7N5rdW6R36AmwCWDXfAldxgrSnysyKMmn5znmwnwOZIFBndHuG/jGFMZe h5tntSzWWNDZZ0Dwu8pkt4xR38uCnczNHZXnY5BaJfVUF38d8h+RHU4Qv ysF/wpD94KHqOyP0Fm9jdtKKcDU5sA8e/XRKJDQoJ0DzKdf4+58+2P082 mGOVH2WDNAwUDrCwnGwrWM5DQuZzaSukYUpcqNIN+BxX56rowLCF7tURI w==; X-IronPort-AV: E=Sophos;i="5.56,287,1539619200"; d="scan'208";a="193052895" Received: from mail-sn1nam02lp0018.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.18]) by ob1.hgst.iphmx.com with ESMTP; 28 Nov 2018 05:10:04 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v7qIDjAgAlaBEWjkL3cMYCuqfpkT5Kjm0BHkVpNKu6Q=; b=X2JZTL7CXNfJCfxj0PcYmkssHQX3tk1IApHTWMEVBQrqkjGyK+l/blbiFbPwxDbPi0SP2bxm79LzXJPAOUs1iM/w5gfHzC70cqnduQ7ksYcGPkcJk6MDE0AWpm1A88ZysMMqdcC7c30dgocd31gxZ0PwS2BBaakQrBlZPl8e5Tw= Received: from MWHPR04MB0401.namprd04.prod.outlook.com (10.173.48.18) by MWHPR04MB1121.namprd04.prod.outlook.com (10.173.51.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.19; Tue, 27 Nov 2018 21:09:56 +0000 Received: from MWHPR04MB0401.namprd04.prod.outlook.com ([fe80::d13d:19d3:fc93:2ec5]) by MWHPR04MB0401.namprd04.prod.outlook.com ([fe80::d13d:19d3:fc93:2ec5%9]) with mapi id 15.20.1361.019; Tue, 27 Nov 2018 21:09:56 +0000 From: Alistair Francis <Alistair.Francis@wdc.com> To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>, "qemu-riscv@nongnu.org" <qemu-riscv@nongnu.org> Thread-Topic: [RFC v2 22/24] configure: Add support for building RISC-V host Thread-Index: AQHUhpWMWzNp2Vlrik2YQfI9WfxEsg== Date: Tue, 27 Nov 2018 21:09:56 +0000 Message-ID: <5382fea4f91a7b73adb2d4e5e7318c30bd7d83ce.1543352682.git.alistair.francis@wdc.com> References: <cover.1543352682.git.alistair.francis@wdc.com> In-Reply-To: <cover.1543352682.git.alistair.francis@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.19.1 x-clientproxiedby: BYAPR08CA0004.namprd08.prod.outlook.com (2603:10b6:a03:100::17) To MWHPR04MB0401.namprd04.prod.outlook.com (2603:10b6:300:70::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [199.255.44.250] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR04MB1121; 6:nUsIJgcobSMBdxKlYd2TO6h3ARLbf7ikha61iiBwrOMyugHfsdnWPqjEYcaaNpMcz2v3IClBpjCcgy1w2YURGVsBoCSTcUpspq3MNrk+hvttSZACp8ef3FOuA15ROYiZXyBPlCQ5FYKXb4ClbdAfWPU2w8U9s7OpjpsYQz4AZp/kZRZkrQwLjPw1eolptKtcB11Q5mY9KdcYq9AaxpJEmvPRpvlwSbqSJicGK8XDIqk/TVaGcSbRGr6fDxQMjKIFLcDiGgqPxo6FmLBVnH1FDYYCVYQZwjVmKA9w5yOf0Cg/09Z1cUJZBK47AAR/wOKfv6asvEjsS0P5hwALZc0HslqI2adR8zyG0ow2GF7QcFyIDboJWrjJ999aRsM0DrEZtrR69l8dRis6RPVj30zynDdiE3DYMDh6mmHGdj1aN7mccIMiLaqumI6E/SaYglXShu17ld5lL2r8o06CDlUWAg==; 5:R4l8DhLtj2Hgv0//EltsiSw4IF2Fy92SUsV35ovWfzr5YRkMbfNrEIexUzZM9o0SRCQgNWXeBy9C3P7HTvFxjNhBUUVXuHBHiTj01qlZYkOAob7ZpTAbjRbsL5/oBJxzkxG/A074DL9XlCr1yrlMzmuMShzryTTinw1p3aI9/OM=; 7:e7ARUOM9hmX07efzPtpQi337iWzT1f4INh9xg8Gawe14QKKsK7IcFaAZFeuMAh3IX5KI6s0ePSQloCdKIk6ug/1EBf9jnAPq5q/8YY1adLrFZ+qfZCzgPd5Bcq55b2VrbE121GQyZuoRjoLOmjMFdg== x-ms-office365-filtering-correlation-id: 16320a8d-71bd-4b66-1a2b-08d654acae9a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:MWHPR04MB1121; x-ms-traffictypediagnostic: MWHPR04MB1121: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: <MWHPR04MB1121E23ACB2145029085A90E90D00@MWHPR04MB1121.namprd04.prod.outlook.com> x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231443)(944501410)(52105112)(93006095)(93001095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:MWHPR04MB1121; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB1121; x-forefront-prvs: 086943A159 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(136003)(39860400002)(376002)(346002)(366004)(199004)(189003)(186003)(2501003)(26005)(256004)(25786009)(36756003)(86362001)(6506007)(102836004)(386003)(71190400001)(105586002)(71200400001)(97736004)(2906002)(76176011)(3846002)(6116002)(72206003)(52116002)(99286004)(106356001)(118296001)(8676002)(50226002)(39060400002)(4326008)(110136005)(316002)(6436002)(7736002)(53936002)(44832011)(6512007)(54906003)(476003)(478600001)(305945005)(66066001)(446003)(11346002)(6486002)(81166006)(5660300001)(81156014)(8936002)(14454004)(486006)(68736007)(2616005); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB1121; H:MWHPR04MB0401.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-microsoft-antispam-message-info: 4ZB5IGjJmIb31OhUcVEN7jrWEUKUXLcJbLYCbcN4LvyQ/p/fBvSSUP08IBbOpBFbpxm1RvD/WFajAtwf5uhfj6OLYe+Jc0dYxJJ6vxCBm8lQzIrOcVW3nYjQCfrX1QTzbtA1BULO3xaNAizyPmq1HK2te6RIoz33M45NpRXYh9Ee47/eNg2iy+CMhtVGQHq9bQJUxbKOV+/pzQtW0F/bKFmYfxH8QVxbDmA9rO/SY0HxxxQ3ukijELyWQkgP+b5VKpNsVRzkmsY6ku9wUYNSuc3qWlXq0HFr04fC3a55eQz2o5mq0o5Og48JVmoN6O1tuJRmbgrZaYgyU6D0N6dX5827nH0tur2iPHnzX1D+hbg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16320a8d-71bd-4b66-1a2b-08d654acae9a X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Nov 2018 21:09:56.2446 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB1121 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 68.232.143.124 Subject: [Qemu-devel] [RFC v2 22/24] configure: Add support for building RISC-V host X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: "alistair23@gmail.com" <alistair23@gmail.com>, "richard.henderson@linaro.org" <richard.henderson@linaro.org>, Alistair Francis <Alistair.Francis@wdc.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Add RISC-V TCG backend support
|
expand
|
diff --git a/configure b/configure index 0a3c6a72c3..fb52954368 100755 --- a/configure +++ b/configure @@ -709,6 +709,12 @@ elif check_define __s390__ ; then else cpu="s390" fi +elif check_define __riscv ; then + if check_define _LP64 ; then + cpu="riscv64" + elif check_define _ILP32 ; then + cpu="riscv32" + fi elif check_define __arm__ ; then cpu="arm" elif check_define __aarch64__ ; then @@ -721,7 +727,7 @@ ARCH= # Normalise host CPU name and set ARCH. # Note that this case should only have supported host CPUs, not guests. case "$cpu" in - ppc|ppc64|s390|s390x|sparc64|x32) + ppc|ppc64|s390|s390x|sparc64|x32|riscv32|riscv64) cpu="$cpu" supported_cpu="yes" eval "cross_cc_${cpu}=\$host_cc" @@ -6900,6 +6906,8 @@ elif test "$ARCH" = "x86_64" -o "$ARCH" = "x32" ; then QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/i386 $QEMU_INCLUDES" elif test "$ARCH" = "ppc64" ; then QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/ppc $QEMU_INCLUDES" +elif test "$ARCH" = "riscv32" -o "$ARCH" = "riscv64" ; then + QEMU_INCLUDES="-I\$(SRC_PATH)/tcg/riscv $QEMU_INCLUDES" else QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/\$(ARCH) $QEMU_INCLUDES" fi @@ -7397,7 +7405,7 @@ for i in $ARCH $TARGET_BASE_ARCH ; do ppc*) disas_config "PPC" ;; - riscv) + riscv*) disas_config "RISCV" ;; s390*)