From patchwork Mon Feb 11 05:41:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1039626 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="SGIdhmpt"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="lAZcF0qq"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43yZRw2X0Pz9sMM for ; Mon, 11 Feb 2019 16:42:20 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E2F06C21F06; Mon, 11 Feb 2019 05:42:00 +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 DEDCBC21F4E; Mon, 11 Feb 2019 05:41:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 65FBCC21F98; Mon, 11 Feb 2019 05:41:38 +0000 (UTC) Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by lists.denx.de (Postfix) with ESMTPS id B683AC21FED for ; Mon, 11 Feb 2019 05:41:34 +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=1549863721; x=1581399721; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+1dHWBdw2XLpAcMfCWYr+PqC98zOpyZ5wR1sDvmGbmU=; b=SGIdhmptJsICpOg78KuJODMfnTNA2HCMe3t9g4GvTTfJ5sRccgT4rBRG hJ1M0Ez6IuazVLMJCpvnCs4/DnVLux35aSFUoDxpOodwMw0Gnwn//y8m2 31DBm8mC4sH4xcu8/fmxlTlt7X5q1afkzgw9zmmRFM+iBcPLz14SAuem+ wZWFN/SXxp6jY1J32W+XtPA2dG6Tt4ufcfhwesqRklUvrdHmW3HgHOpvP FGhaAaiYIY2kat9l8gvebKpttem+DgFuWWf18clhQuX3qNCx6cEskHwIp 8S8SD9lIjOavZsIFLWEkhYpSsin2+1+n9s2/VWfvX7iCFGPVPDdTAkZi6 w==; X-IronPort-AV: E=Sophos;i="5.58,358,1544457600"; d="scan'208";a="199087392" Received: from mail-bn3nam01lp2058.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([104.47.33.58]) by ob1.hgst.iphmx.com with ESMTP; 11 Feb 2019 13:41:57 +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=iHDjkn2y8af6w0D8nrocEn5MgT/9t0sM/TjNyKkoQ2c=; b=lAZcF0qqqxf93nZeq8lzmH69yiIKWc1Ogj/0TFOykcKkMKnjhNR8f1fjleyQ8W0s48ZpjKGPc1a4WkkQV7l0wKXAKC4w/DxHXvlMQqG9jL2xxP7yH2RTlUXKEr7IbRj05ewzZ4juu9rynPdXQXqW7zcAGXwtmk71uIxY4Rn8smM= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.247.148) by MN2PR04MB5903.namprd04.prod.outlook.com (20.179.23.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.21; Mon, 11 Feb 2019 05:41:16 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::2cdb:c465:af57:8be1]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::2cdb:c465:af57:8be1%7]) with mapi id 15.20.1601.023; Mon, 11 Feb 2019 05:41:16 +0000 From: Anup Patel To: Rick Chen , Bin Meng , Joe Hershberger , Michal Simek , Michal Simek , Lukas Auer , Masahiro Yamada , Simon Glass Thread-Topic: [PATCH v7 02/15] riscv: Rename cpu/qemu to cpu/generic Thread-Index: AQHUwcxoskuEey5Bm0uW8nba49nYCg== Date: Mon, 11 Feb 2019 05:41:16 +0000 Message-ID: <20190211054030.21393-3-anup.patel@wdc.com> References: <20190211054030.21393-1-anup.patel@wdc.com> In-Reply-To: <20190211054030.21393-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0132.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:35::26) To MN2PR04MB6061.namprd04.prod.outlook.com (2603:10b6:208:de::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: [129.253.179.161] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MN2PR04MB5903; 6:W4aHPp1ybhJtq41iR4Utf/9AobVZh+Fa/4gevXqRkT8WSbJHyBoILd0kp8e4jwZkj/uw3mYNsEdeJILyoHtzLoDa6tuAxUEzUDBeDvMPt3n+GqL0ob6EWuEVbWciIuEzxpsY1DkBd6sD1dmlaG9/P+UbjT09crebFlzC/fbcbyEmOjchnXmevg3IdVIYsYlJ5xYB/vW3fwSmPaqGtU0GBPWRNvZcZw5NN5enTEoO1/bGZtnKqjusXZU+7UhszmbFpkTZuhWyHwaHHIPhgdZAGgoy9gPK0B2ujyVgvT+96CUFi/dGpkc+TkRzQ9OxddRkgY6MRxbUeLqHUbw4OEnc7SO28UmfRsHFTFnU9nG2Pc4aKIYf41OmM2fzvYJYne6tloNWK7AKFXT1Zf1NEdyOHBDObBQuPb08otdEaPNT/z3+WtWjHaWr9AJtxe/pPjkfRhEg1LgZHsPZlzxDsIRcSQ==; 5:urH/bSa0sqXaWqU6YQToaRDEcYuqW3/adQkk7QxxY1G5GVyGHVpfp4rU1sHQcd81UNNHkBfL0s6oFHde+57R933r2g/nac7NYkuO0X9GFLdFK/+y5BJeYeW7JJQNhcJrmovrO7b9EzI58w7drwVUp2qdIXOn6bQ6JP6aZGVMALyuDIS3++AkkC630mE0tchZ8X6lCWyzh0UzOWHrW245Ow==; 7:YiQvVCr2rC7cVpdTFL0lKUU/27v5KHu+qwqsPzf4svoVSCOQcuBoU4ZN075+wOmlc2UAz4cQTxvDCJr7pHtP4x6GURKfap/tAqQfD2Nu0J2nE4ATtYHw1ZozrfU1stedTI/E7Waf5+Rlev1kb8csnA== x-ms-office365-filtering-correlation-id: 62564fdc-7949-4cd5-2a35-08d68fe38a98 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:MN2PR04MB5903; x-ms-traffictypediagnostic: MN2PR04MB5903: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 0945B0CC72 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(376002)(366004)(136003)(396003)(346002)(199004)(189003)(81156014)(54906003)(2616005)(11346002)(26005)(66066001)(386003)(6506007)(44832011)(102836004)(6486002)(476003)(110136005)(486006)(446003)(316002)(50226002)(6436002)(1076003)(4326008)(81166006)(8676002)(53936002)(68736007)(8936002)(6512007)(71190400001)(71200400001)(305945005)(256004)(105586002)(106356001)(25786009)(97736004)(7736002)(52116002)(76176011)(3846002)(6116002)(7416002)(14454004)(478600001)(72206003)(186003)(2906002)(86362001)(99286004)(36756003)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR04MB5903; H:MN2PR04MB6061.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: aIsud9XzzaiMoazYOvahBPgihmZMrKZaK8eKcNp6866pJQ6p2d6dr2VUViTQXi0+UV3H5Sz05tltW4T1kUPf1E6Fw/ELJ49hm1fI7VYC/GE4NQmArIDypReJP98FJt8M1JBiV1MYwvspEZ6zz8lI4WLGHbC/nag0qm2P+yzYbMdODWBghkSXUt9b98/WK1VLIC2wGEEIGQi8Iun9zdXzNs8ZlI9HETagmR8kJUalKXuBWduAyIwPeSdm3wkgmzPZa7ua4b8n4TPWdUeIbij+rHgVNlnI/Kp0UzqYWBqi7p5qTSmHu8K7a66YB0jV7Ww2FjS4vEbihFT7vcN9Ye2KwGHyMCdEOJDF9T1Jzyj74xsu5TpqUoqzdSkMd4g33mpKwVXqH8wYtlPMhYwJaz+TeTmqu3pIZ2ETPwzb2DxSAqU= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62564fdc-7949-4cd5-2a35-08d68fe38a98 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Feb 2019 05:41:11.7885 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5903 Cc: Palmer Dabbelt , Alexander Graf , U-Boot Mailing List Subject: [U-Boot] [PATCH v7 02/15] 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