Message ID | 52160afacecc5b109dc43a412fa3e74ddd6277fb.1545246859.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 807BE14E2 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 19 Dec 2018 19:40:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7142328484 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 19 Dec 2018 19:40:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F266284B1; Wed, 19 Dec 2018 19:40:30 +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 D536D28484 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 19 Dec 2018 19:40:29 +0000 (UTC) Received: from localhost ([::1]:33871 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 1gZhhl-0002wl-5C for patchwork-qemu-devel@patchwork.kernel.org; Wed, 19 Dec 2018 14:40:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <prvs=884a3e257=Alistair.Francis@wdc.com>) id 1gZhOS-0003Y5-AY for qemu-devel@nongnu.org; Wed, 19 Dec 2018 14:20:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <prvs=884a3e257=Alistair.Francis@wdc.com>) id 1gZhOO-0002kZ-CX for qemu-devel@nongnu.org; Wed, 19 Dec 2018 14:20:32 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:29398) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <prvs=884a3e257=Alistair.Francis@wdc.com>) id 1gZhOM-0002Xm-8Q; Wed, 19 Dec 2018 14:20:27 -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=1545247226; x=1576783226; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cifM7+QZSxT+Xm4VrK61LpvQUw0BzuPQTL+3kMoQjTk=; b=PdY/gvHzFg0tw9omG5WejPPzFO9wTI5cx2bP1e7EEyCwv4z5Sj8hQq8y nyBXnoqUui0IwMVtOVe6ppsBXid21uQPxe2Zn1A5shJriurVGpE/prEWW tlCdNqWRps9g/epDSvXAofQwGi9kFxkAtG+BvEmiTEGFuo6z+xAFQpRxx GePfoaPaE1gYSNLwBmDHPNoAA2ba5nV9u4OzTAtF+jcbacZ7vqQtTtKNs ZnOOqwCZIDcUoCWtw2cYJ08jqu6cGDV6p/f3vpTZfbt1LtHppVBKOt4kj T9O/XpMJ4O0B+CjOv+3vdI8D4ZqTE8iJynGx+4oZIQatXbVeEiQiJAF4P A==; X-IronPort-AV: E=Sophos;i="5.56,373,1539619200"; d="scan'208";a="97004300" Received: from mail-bl2nam02lp2059.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([104.47.38.59]) by ob1.hgst.iphmx.com with ESMTP; 20 Dec 2018 03:20:20 +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=hTqWVB/1HVm61WQw746JdeLfa7/qZE4su+fiwonvwkc=; b=fC01SWazCeGntPZUizL0UBax9YQRxZMfPZrRdvwj1D1GFrFPuakpmGxBpJhNB2sI6sJQugjnwqftB5W5by9VsEDuwX3IdTmFGWwdv8x6XlNv0BJp4q/ioNvL/XZ83+7LLONsY3zN3lZ6O5qXec0oQCjnqOv95qyNT2V9y/8jLjM= Received: from MWHPR04MB0401.namprd04.prod.outlook.com (10.173.48.18) by MWHPR04MB0848.namprd04.prod.outlook.com (10.172.168.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.19; Wed, 19 Dec 2018 19:20:19 +0000 Received: from MWHPR04MB0401.namprd04.prod.outlook.com ([fe80::9067:fb44:66b2:7604]) by MWHPR04MB0401.namprd04.prod.outlook.com ([fe80::9067:fb44:66b2:7604%4]) with mapi id 15.20.1446.018; Wed, 19 Dec 2018 19:20:19 +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: [PATCH v2 23/23] configure: Add support for building RISC-V host Thread-Index: AQHUl8/hq5Ag0gF5fEO7/QC+sBgPkA== Date: Wed, 19 Dec 2018 19:20:19 +0000 Message-ID: <52160afacecc5b109dc43a412fa3e74ddd6277fb.1545246859.git.alistair.francis@wdc.com> References: <cover.1545246859.git.alistair.francis@wdc.com> In-Reply-To: <cover.1545246859.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: BYAPR03CA0003.namprd03.prod.outlook.com (2603:10b6:a02:a8::16) 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; MWHPR04MB0848; 6:85ZkKIdWN5VVa37kNlKJB90Xz80sa5U76P+HEmGExl6JHZMT4bIB3b/tqghyGMddNDT8W+RN5zl0CCCUTaCL+JEmCWr8K0wo/MuYKnW/cwbza0X5QYzHRpjtvf+JKk5ARXaYJKlMDn4dLRtEJtIa8cgkS+oe2IJGMssp6sjwnDVPQ3SzesNIVVFnDwcXtkgWEQvufmiYJnrrNQdroGG8DstKLQSF6n/TlF4J/Y37ehUd/P4B095SwV7wLXCo1HwOf3NrHPU4SUSs5ucsaHrUFtwaG4ZU6vFaGOhM0AR3Hs2ZnqFEe4ey6r8miuOO0SwiM01P/pVpOwkRbHbqVDeIIIoIGcU7VDWDaP+Ta3hnxwyhao2Ciaa9R4Vc/PKqzihxTFH+xJaXIkwAHT5GUIZ0PindhMisGg3Clm/LtHuZDiP5Mehy/hKb+eJ5nyhXS/vRw9N/3Oneww8h1uoaR2bgGg==; 5:NlSmJzZtJA5XQsRSEABi5Ssbzgehl6/ivW4LOOuob1B3adncdjzHi3KIEuGyf6XgaY59NoiZR6z9kiYluS3F4gbIEpvbfoH1YgWHQC1XvxIlO561xtjTdynTs+CnLDMq5sK6tgEP2pbl7p2CrcvvW+TEY0Mc8OlYqMxlv98b3KU=; 7:f7zsppaeK4OonmLipixEtO/0WQuO37JIyp9xAFB6Te9jasA61TbtqrIq1qZHTTkNu5b2mwOomYZmhS7CLhkytW64vUPOYKaOTc9ijCuC6HosG6QzVO1bJnywDI+x6PT6t1kfkpo2u7eXxLKHjnVYVg== x-ms-office365-filtering-correlation-id: 7c7e54f5-b365-41ca-941b-08d665e7036b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:MWHPR04MB0848; x-ms-traffictypediagnostic: MWHPR04MB0848: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: <MWHPR04MB08480079A6E42CEB13AD081E90BE0@MWHPR04MB0848.namprd04.prod.outlook.com> x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:MWHPR04MB0848; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0848; x-forefront-prvs: 0891BC3F3D x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(39860400002)(396003)(346002)(366004)(376002)(199004)(189003)(6486002)(14454004)(4326008)(72206003)(8936002)(86362001)(2501003)(50226002)(71190400001)(71200400001)(97736004)(6436002)(8676002)(81156014)(81166006)(36756003)(68736007)(25786009)(5660300001)(478600001)(118296001)(105586002)(53936002)(256004)(305945005)(7736002)(6512007)(316002)(44832011)(39060400002)(66066001)(54906003)(110136005)(2906002)(52116002)(6116002)(76176011)(26005)(186003)(102836004)(99286004)(486006)(446003)(476003)(6506007)(11346002)(2616005)(3846002)(106356001)(386003); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0848; H:MWHPR04MB0401.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-microsoft-antispam-message-info: e30XaBJcvaD6qVBOwRIPUL7Ib+zwQxHtAYc/cdmaK5hnps6OEgmtPkd5om6Xg6gpia0IGTYquqiA3OAYcJLs+5m2isiMroguYI+U4KjWhq2ex1jfZGwVP4DOe1aJRCdPzATQXBCSNDQaOqh5Z96a2wle85+o8AEbj2OBuf70yojEjZ+Bg/6KjlFWhREd5Na8VYDax/278DfzavSn0nVLHadGvhsSAicYxiNCKilaNpDnwV3rEU3rJOF1NzzdfZ6ZgLH0EWHl5Li8PQZx5F93SHeSd8saI7ZPrlAbf99cMhEAXE9oiOCtBxJG5SoeX+32 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: 7c7e54f5-b365-41ca-941b-08d665e7036b X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2018 19:20:19.0968 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0848 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 216.71.154.42 Subject: [Qemu-devel] [PATCH v2 23/23] 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 224d3071ac..79375affc1 100755 --- a/configure +++ b/configure @@ -710,6 +710,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 @@ -722,7 +728,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" @@ -6937,6 +6943,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 @@ -7433,7 +7441,7 @@ for i in $ARCH $TARGET_BASE_ARCH ; do ppc*) disas_config "PPC" ;; - riscv) + riscv*) disas_config "RISCV" ;; s390*)