From patchwork Fri Jan 18 11:18:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1027214 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="EkfvWbLk"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="c+gDH75u"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43gz4N18tVz9sBQ for ; Fri, 18 Jan 2019 22:19:48 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C657EC2201F; Fri, 18 Jan 2019 11:19:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C27F5C22095; Fri, 18 Jan 2019 11:19:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 24E9FC2208B; Fri, 18 Jan 2019 11:18:56 +0000 (UTC) Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by lists.denx.de (Postfix) with ESMTPS id 70B95C21E36 for ; Fri, 18 Jan 2019 11:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1547810333; x=1579346333; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=M75QEe9v7F0NLcP5nKtAQVdwk6PlbFlpL3vzTePeySg=; b=EkfvWbLkoKLZ3boxl1qk2gpN5btiYhN389YQMr49RX2Qv6Ve9P9U9baP 2+jBBzZz21/tFgEalxkAmzre4WhDbhTp7y3bZ0BNDlZ/HF+YP5lbOTwy5 KQqt4BKOgGNfCaL8LXs00e1KZ3lAKqBXQ7SRGtNTgaYMDT1AbRKXcom6M /KUpCFBKSzdSyydpYJJcGscJR6AweoMyhd9lS5LJtx7NDeDe51z496Shu 1/9Y4vFsTDOkGyJSIIPrANVVB8lCdonne4zndWfrd/FbUtQ7gCsBiLbs9 KFdsI4mZSvSE1tGbnnimjFsr6QeaYgKvelARCQydvudvVRUjUoB2qVEKD g==; X-IronPort-AV: E=Sophos;i="5.56,491,1539619200"; d="scan'208";a="100370961" Received: from mail-dm3nam03lp2050.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([104.47.41.50]) by ob1.hgst.iphmx.com with ESMTP; 18 Jan 2019 19:18:50 +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=XLRZ89twNBMzS2CV68W/M0EgR3jqTyuKk0M+s8Nvd9U=; b=c+gDH75u8zUGhhr/9bMUdiWh3eochRXRKynChF2P9WAMOLaDO/mHeaELJW42ThTqb2Nw8hlr99ITFLZ63HcNyhw82I6xGjMr4NvKqTeq+A9aYKBRmdrCCquORw+CSKPcD9m5Hjnj6fzXAyTbl7Jo0T+YLBR6Zk2hPg5crBPkXvE= Received: from BYAPR04MB5303.namprd04.prod.outlook.com (20.178.49.148) by BYAPR04MB5016.namprd04.prod.outlook.com (52.135.235.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.24; Fri, 18 Jan 2019 11:18:48 +0000 Received: from BYAPR04MB5303.namprd04.prod.outlook.com ([fe80::add1:92cc:65d7:5d94]) by BYAPR04MB5303.namprd04.prod.outlook.com ([fe80::add1:92cc:65d7:5d94%2]) with mapi id 15.20.1537.018; Fri, 18 Jan 2019 11:18:48 +0000 From: Anup Patel To: Rick Chen , Bin Meng , Joe Hershberger , Lukas Auer , Masahiro Yamada , Simon Glass Thread-Topic: [PATCH v2 01/11] riscv: Rename cpu/qemu to cpu/generic Thread-Index: AQHUrx+VoPZE+wbl9022u2txuQPlpA== Date: Fri, 18 Jan 2019 11:18:48 +0000 Message-ID: <20190118111820.71349-2-anup.patel@wdc.com> References: <20190118111820.71349-1-anup.patel@wdc.com> In-Reply-To: <20190118111820.71349-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0115.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::31) To BYAPR04MB5303.namprd04.prod.outlook.com (2603:10b6:a03:c8::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [49.207.48.211] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR04MB5016; 6:1Otl0nwZvJW1nH2tEl6iRfagUDB4iJHa0zevd8J7mc9PB6A7G2Bke2u2cY9eyvunRoj/Ws4/+EfpjNfHUA2O2M0Umhq1mMInRQmGWlo+v5G0RHJUtXmmzyf3Rb+51TcsOFyDkgLkh2KER71r7TQvjcdXr3up2IcKf45RgpxPB+U2go+R1kPF+qcdBlZITJVyh9MCuOFwsvNBBrvfCJkTlLhlSQKvmTRV/BBQKujnPhz8fiBX+4tL3dJKvHcAuHqtUI4/lRQ3/xxF+SNVhMiYTF1ZWKvk4MdlJfgEP4drsPBuQ8FwTJzMnRjlX/YQMN6/Aj9p9+mqyEgF/Yo5PvtkoR+qpSD4ZJ+bscwYx96/8MaYFFC6YWLCfOKhjLmU/B2KmQvd07K8meJ1oW7u9ExLVa8pz0yxQf7v/V4r18mOHWqEuVQOa434DDF1TySXm2RDMVFUknJvAUxEZaYsk2lUmw==; 5:dLQClQu9RYCcI53sZKJG9N0D9NEr4Qd9pJ+iXDsEFIc1IzZHHKaBXJTV+rAzJHxy2DnQI2uKV7Wjb4ehmmN8vr1FS9mQFEeusAh6/SCwqYnm/XJvAqghpWPpJtIQchAIEp12cAA/nOeNsQSrdmJ+gF0GLrbaDpBYaLpAYaDnO/Y/OPTC8arn7epENc7L0IReWSUBKGOuibdwZ0tXKqGmHw==; 7:SgckCvyHG5ubRnNl0LRrSArl1q/vb68UpvZlnBaLsXzpVzIhhP+l08ghDmm8MRL1GVn2gUDHK4lB/VVpR1VCL6csUU+HH0NUf5LD/A3OOffTGjHElDz59PEKs86WaXAiMkJm+pQer0HJkdFhrvWRHw== x-ms-office365-filtering-correlation-id: 899a48fc-728d-4aa9-0ec0-08d67d36b7a8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:BYAPR04MB5016; x-ms-traffictypediagnostic: BYAPR04MB5016: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 0921D55E4F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(136003)(346002)(366004)(376002)(396003)(189003)(199004)(81156014)(81166006)(2906002)(14454004)(8676002)(36756003)(4326008)(39060400002)(305945005)(68736007)(478600001)(7736002)(8936002)(50226002)(97736004)(256004)(2616005)(486006)(476003)(25786009)(72206003)(105586002)(106356001)(6436002)(6486002)(6512007)(44832011)(1076003)(110136005)(54906003)(6116002)(3846002)(71190400001)(386003)(11346002)(316002)(71200400001)(102836004)(6506007)(55236004)(26005)(186003)(53936002)(446003)(86362001)(7416002)(52116002)(5660300001)(76176011)(99286004)(66066001)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB5016; H:BYAPR04MB5303.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: rJJvBfH0NVENs+r+0KqLO1oLODoaPZY6ciGXorLCD+GluIPuyLmY1yRG8VTQAnA8lsE+lkKNDSeg/RGQn9l1WxLGh0e3W2O3OxdE/5WGvl2XSHBM1LFfPeOdiTpzdsFCKCM0jNkzl1usst9qx+uR9Livh1hWoVqTGHTv65MkhtRB97rFUFfKSAiswfACbI7rhvS0dvwM5u3q+xqwYOkc+ytJfD38Omgt2L4BIa9sMKFUn43D5/wczm4Y0AILlS/c8fxzmCrbVCkTYIbzx7DVgvltrt9jB3wsIJ9k/C5vwS4gk46Dpz3O7eX/z3gpyTHd3jTjk5RCc4dFPmW4E0BcwhcqGliH4MIO42oszctuFFsVxAyer7DVz1hPk7lmzDLrAMpdaVpRpGW1ZHccFW2XeKIaYq0XNCSnqZAbqGMWZjw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 899a48fc-728d-4aa9-0ec0-08d67d36b7a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2019 11:18:44.9954 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB5016 Cc: Palmer Dabbelt , U-Boot Mailing List , Alexander Graf , Christoph Hellwig , Paul Walmsley Subject: [U-Boot] [PATCH v2 01/11] riscv: Rename cpu/qemu to cpu/generic X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The QEMU CPU support under arch/riscv is pretty much generic and works fine for SiFive Unleashed as well. In fact, there will be quite a few RISC-V SOCs for which QEMU CPU support will work fine. This patch renames cpu/qemu to cpu/generic to indicate the above fact. If there are SOC specific errata workarounds required in cpu/generic then those can be done at runtime in cpu/generic based on CPU vendor specific DT compatible string. Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer Reviewed-by: Bin Meng --- arch/riscv/Kconfig | 2 +- arch/riscv/cpu/{qemu => generic}/Kconfig | 2 +- arch/riscv/cpu/{qemu => generic}/Makefile | 0 arch/riscv/cpu/{qemu => generic}/cpu.c | 0 arch/riscv/cpu/{qemu => generic}/dram.c | 0 board/emulation/qemu-riscv/Kconfig | 4 ++-- 6 files changed, 4 insertions(+), 4 deletions(-) rename arch/riscv/cpu/{qemu => generic}/Kconfig (91%) rename arch/riscv/cpu/{qemu => generic}/Makefile (100%) rename arch/riscv/cpu/{qemu => generic}/cpu.c (100%) rename arch/riscv/cpu/{qemu => generic}/dram.c (100%) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index c45e4d73a8..6879047ff7 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -22,7 +22,7 @@ source "board/emulation/qemu-riscv/Kconfig" # platform-specific options below source "arch/riscv/cpu/ax25/Kconfig" -source "arch/riscv/cpu/qemu/Kconfig" +source "arch/riscv/cpu/generic/Kconfig" # architecture-specific options below diff --git a/arch/riscv/cpu/qemu/Kconfig b/arch/riscv/cpu/generic/Kconfig similarity index 91% rename from arch/riscv/cpu/qemu/Kconfig rename to arch/riscv/cpu/generic/Kconfig index f48751e6de..1d6ab5032d 100644 --- a/arch/riscv/cpu/qemu/Kconfig +++ b/arch/riscv/cpu/generic/Kconfig @@ -2,7 +2,7 @@ # # Copyright (C) 2018, Bin Meng -config QEMU_RISCV +config GENERIC_RISCV bool select ARCH_EARLY_INIT_R imply CPU diff --git a/arch/riscv/cpu/qemu/Makefile b/arch/riscv/cpu/generic/Makefile similarity index 100% rename from arch/riscv/cpu/qemu/Makefile rename to arch/riscv/cpu/generic/Makefile diff --git a/arch/riscv/cpu/qemu/cpu.c b/arch/riscv/cpu/generic/cpu.c similarity index 100% rename from arch/riscv/cpu/qemu/cpu.c rename to arch/riscv/cpu/generic/cpu.c diff --git a/arch/riscv/cpu/qemu/dram.c b/arch/riscv/cpu/generic/dram.c similarity index 100% rename from arch/riscv/cpu/qemu/dram.c rename to arch/riscv/cpu/generic/dram.c diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig index 0d865acf10..88d07d568e 100644 --- a/board/emulation/qemu-riscv/Kconfig +++ b/board/emulation/qemu-riscv/Kconfig @@ -7,7 +7,7 @@ config SYS_VENDOR default "emulation" config SYS_CPU - default "qemu" + default "generic" config SYS_CONFIG_NAME default "qemu-riscv" @@ -18,7 +18,7 @@ config SYS_TEXT_BASE config BOARD_SPECIFIC_OPTIONS # dummy def_bool y - select QEMU_RISCV + select GENERIC_RISCV imply SYS_NS16550 imply VIRTIO_MMIO imply VIRTIO_NET