Message ID | c320e8b15e554ca6fc5a3e9f461c709b2b3514f2.1544229872.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 8053415A6 for <patchwork-qemu-devel@patchwork.kernel.org>; Sat, 8 Dec 2018 01:09:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BD372D678 for <patchwork-qemu-devel@patchwork.kernel.org>; Sat, 8 Dec 2018 01:09:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B52B2D696; Sat, 8 Dec 2018 01:09:01 +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 226322D678 for <patchwork-qemu-devel@patchwork.kernel.org>; Sat, 8 Dec 2018 01:09:00 +0000 (UTC) Received: from localhost ([::1]:48648 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 1gVR75-0008VQ-9g for patchwork-qemu-devel@patchwork.kernel.org; Fri, 07 Dec 2018 20:08:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <prvs=8739c4fd6=Alistair.Francis@wdc.com>) id 1gVQp8-0004HA-K5 for qemu-devel@nongnu.org; Fri, 07 Dec 2018 19:50:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <prvs=8739c4fd6=Alistair.Francis@wdc.com>) id 1gVQp5-0001jL-7m for qemu-devel@nongnu.org; Fri, 07 Dec 2018 19:50:26 -0500 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:42077) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <prvs=8739c4fd6=Alistair.Francis@wdc.com>) id 1gVQoz-0001ep-Gb; Fri, 07 Dec 2018 19:50:20 -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=1544230218; x=1575766218; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=dpz4/gnPBplgoUnvtKnRzRogXNhxbdNcpFehJNuVSPo=; b=oFHXjgy5ktb2iqXhFdL/q/EgmWqdjkZgXmdJtQiq70cW59Wnlq6D7kSz 5Qcm73Lm0vcV29s8T76hFxTZghSPOleOOwuyo6iH9GgiuxQ1dT7FD8XTN RKXu3UygdQPw2ocyDWfMm8c+hvZR2HIuSvlEssDrRyVS7OuGZSdN5tkwp lgZ8wZYm98jT3nJVHsJr5G0NanD0D8/e8aHm36eplJav+DbhyyI4sqc6e dLUCTLrQL+DIqmdY23d7/sguQ4oOIleAGDbiXXrhSZcxRNM8/P2z/Z1S0 jfZQArjH+W76mwsjf1Fl+c7fqKA+G4onSw35RDHS1qorEfG+rb+3nWAgC w==; X-IronPort-AV: E=Sophos;i="5.56,328,1539619200"; d="scan'208";a="97343949" Received: from mail-by2nam03lp2059.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([104.47.42.59]) by ob1.hgst.iphmx.com with ESMTP; 08 Dec 2018 08:50:01 +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=f5Q8HqkYUTEKhA+dMcNe5+Q7rqVmp+QpEog945isH8I=; b=FFEwBocL9b3f/alVqcFtpsTpednhiKRkFVi5zDuQJebIUwXjqO6Sp8yuBiyfJSmKR9DtBZz35Zbdt7xHR4kf/pgJ1GQ8ZIx6d0qUfBYeDAmAOtYYQEckuN8zl5pbOTNdVe4OwfZ7GtnDKJnTNieAYbcCuDqSMdMWq8If49TIaKE= Received: from MWHPR04MB0401.namprd04.prod.outlook.com (10.173.48.18) by MWHPR04MB1215.namprd04.prod.outlook.com (10.173.52.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.21; Sat, 8 Dec 2018 00:49:58 +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.1404.021; Sat, 8 Dec 2018 00:49:58 +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 v3 24/24] configure: Add support for building RISC-V host Thread-Index: AQHUjo/xTVSLtCrol06wSrqYWMDtWg== Date: Sat, 8 Dec 2018 00:49:58 +0000 Message-ID: <c320e8b15e554ca6fc5a3e9f461c709b2b3514f2.1544229872.git.alistair.francis@wdc.com> References: <cover.1544229872.git.alistair.francis@wdc.com> In-Reply-To: <cover.1544229872.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: BYAPR02CA0004.namprd02.prod.outlook.com (2603:10b6:a02:ee::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.171] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR04MB1215; 6:DqfgTswFDInH4NoiP5QeJ/54F0sGJgufwBsWIhcl14dKf+tz2yzfP6On+nivJgCRRSMANxW3YuZcADCpnHatD4MzFHh0X/utNzzdMOIWnhlCN0Mo82F2hh2RivVAOSNK0pvCqjQ9XewowKqwgnfU4hOBJDPlLeVswiyq3pBl/yYAuoY4fuorr9tRWYgRaev2B402czcqzpola0OyYVya2GVB2Ye9mxHaPeJhOAAYXkFJlcFiqdQ5lDtVum1fAT+2fgBvshZ29h23kW3Y3aC448sbLtzuXh/qeanyoqOQNKEJ4X51YR9QCrpKRCVGWSHu2EcpZbv64k6HQUBzVMzsPZ5xohwvONm2h3UaWXFIcwowVRMk2jSWNiI79grwjusvmZKrcn1z7BGwGVPohyD716pcvPMViujQqM36NrI9yU2t3nuPqfeBwBFIfbJKpDOkeYsaMgEaeQbhqkijDmriYQ==; 5:BDPON1yuY3WY5I5M8OJP7i3+Q323bEEAuRizGv7Q68b+BFV+562Ej2OBkCpmg7nyI0Y6ZvHqg6rEHsEDWb3vC8xhjrpe21a0Z5818fBNAB7mYw9hx9ZETZBunHsO2mMGX1s4N80H3+ScO5oBH9hC8QIWVO3nYEQnrlmsSrqeWAA=; 7:OD+wycJxYHH8iCUfquuTlDksdADpYnv7SX3aqZUHgQAGCwUybLIqa+ypY6LYlnlshU30C+zSiUng5K8jBTC0BIIy/YRnD4dbcCQIq3Qxp0w9zZ8BneiDlnCFTwEGrZaaqM+s04VOt48UchGSUayIAA== x-ms-office365-filtering-correlation-id: 1f4338c9-4e08-4563-f0cb-08d65ca713f1 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:MWHPR04MB1215; x-ms-traffictypediagnostic: MWHPR04MB1215: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: <MWHPR04MB121571E7CA846FCBF15F313190AB0@MWHPR04MB1215.namprd04.prod.outlook.com> x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231455)(999002)(944501520)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:MWHPR04MB1215; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB1215; x-forefront-prvs: 0880FB6EC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(396003)(346002)(39860400002)(366004)(136003)(189003)(199004)(476003)(44832011)(305945005)(11346002)(7736002)(81156014)(8676002)(3846002)(2616005)(118296001)(5660300001)(106356001)(446003)(81166006)(6116002)(86362001)(486006)(105586002)(6506007)(50226002)(386003)(76176011)(2906002)(8936002)(102836004)(26005)(186003)(52116002)(66066001)(97736004)(2501003)(478600001)(4326008)(54906003)(99286004)(110136005)(68736007)(25786009)(256004)(14454004)(39060400002)(71190400001)(71200400001)(6486002)(6512007)(72206003)(36756003)(53936002)(6436002)(316002); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB1215; H:MWHPR04MB0401.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-microsoft-antispam-message-info: u1Rb4sqvHb5juXWXtS6g1jC50zG71CIJcPWGC02BugPqAmUKLQ3K0mzxeWAAX9982l4i3stLR2u2eyyEze4zp19DwcmRWmq71N/lNxX9aA+/Kab1+R5QXvYUBgC15Z6tHhje7zmHLqmRhKxygAPescA2nyB4o4ZQUr4cTkDDOzgRxts+5El2qKpCSUcuSGP1pHysBWrzBjHTJVUylKTg5VcYQUTatoH8HVF1hsd/XkzpENWekqHJzXHdxAM/pnX+vJO+O4YN7vVMcuhgESghEGPpXRSjbNC4d968n7dsSmVg+NFP4F6NGQNZO2qZjCoZcaIGzjwNtlvHNCIcS2k/wq5wajaD9eTTVqW8lhXLYZ0= 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: 1f4338c9-4e08-4563-f0cb-08d65ca713f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Dec 2018 00:49:58.5792 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB1215 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 216.71.153.144 Subject: [Qemu-devel] [RFC v3 24/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..2e13ee918d 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" + else + 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*)