From patchwork Sat Feb 9 06:31:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1039126 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="CkDvO59a"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="Tqzc6RZv"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43xMgn6514z9sML for ; Sat, 9 Feb 2019 17:33:25 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 4E8C7C21FBA; Sat, 9 Feb 2019 06:32:25 +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 ADB8AC21F9C; Sat, 9 Feb 2019 06:32:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5B9DDC21EC5; Sat, 9 Feb 2019 06:31:51 +0000 (UTC) Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lists.denx.de (Postfix) with ESMTPS id 1D10FC21ED5 for ; Sat, 9 Feb 2019 06:31:46 +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=1549693908; x=1581229908; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+1dHWBdw2XLpAcMfCWYr+PqC98zOpyZ5wR1sDvmGbmU=; b=CkDvO59aEbEGj0QKwd7cqmrW+2b5UKgt1bsdJY/z39dcaqrJPpUOlaDb J7WnE4rRsoAOhSSJ1sTIPwqGCtt4qzyG05Y9O+xKoTzySpMcflXpFuJ3G 4XpgiwB0gnoxiPLVHwqaPdp5pRpTigZt5eD/1goUXjXpwkTKuAXnCdYR8 kaS9KTiJGxL4v54i7/ejLkmdKmYHLL4vg1uh5gbyhHX7tEvF2TUqoGqRu msjYMMFmm8/HyZgfse+z9ekcrSVKymtXABRP1BPz41jZUmemTBxIWxbok e07bJ6sgRF1FY0jwInexru/wVXVSjR8C2k8wz3NfC7t/Hqzs+jxKp8OKK Q==; X-IronPort-AV: E=Sophos;i="5.58,350,1544457600"; d="scan'208";a="102611957" Received: from mail-co1nam05lp2050.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.50]) by ob1.hgst.iphmx.com with ESMTP; 09 Feb 2019 14:31:45 +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=Tqzc6RZvr8XEl5BN36mNUC0gs6RqABHWKt6jbiFmWiaTM3wi+f9eu6o6ZpNHWR34wpI4EdQFvn22ybdg2sYb3mhEQKI7pvIsAzCYTu/7EyF6p9xD6gI99DV3eMMH33MoFDrrgF5elracWZiPJwbSeZRx4WQVmPvra05/uv8EoiY= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.247.148) by MN2SPR01MB0008.namprd04.prod.outlook.com (20.179.144.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.17; Sat, 9 Feb 2019 06:31:42 +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.016; Sat, 9 Feb 2019 06:31:42 +0000 From: Anup Patel To: Rick Chen , Bin Meng , Joe Hershberger , Michal Simek , Michal Simek , Lukas Auer , Masahiro Yamada , Simon Glass Thread-Topic: [PATCH v6 03/16] riscv: Rename cpu/qemu to cpu/generic Thread-Index: AQHUwEEerJ2qYTCJWE+2EnfZttPQrA== Date: Sat, 9 Feb 2019 06:31:42 +0000 Message-ID: <20190209063052.29092-4-anup.patel@wdc.com> References: <20190209063052.29092-1-anup.patel@wdc.com> In-Reply-To: <20190209063052.29092-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR0101CA0047.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::33) 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: [49.207.49.10] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MN2SPR01MB0008; 6:vGqwKvbSBkbv4h5S4wv0BxmF7DkpdA1OFYB1tJhDeOJV+HAzjenKZqRbPxc+ETmSI52JT600mbZh69YYpRvoEW/YIxfwAv57pFEtmSRuK4muXQCQsRUDQwM95S8leZLuxSQS+Fb/KFGDeVLBNMFNH7y91boiFuLjPVSgADBqJBJpkYkLKov1wYwSTyrpX+E5OGQRisuoRgI3MA3bYMzfqhUQEYJYraqoxDTSkV7HO1Qm4P3TcIE+AJvf+GBNq5GaVxm03s5Y8zb3TMnRvY5SSDPQAxv6OSw0L3lBTvEjq2eiabScEdmlvE/krJ5m6DK00AOhCALIUu/yatBf7q7ujdCfouciW7VRpnpMryQdq16M5id2KMPyUNJQprpoQIHrTLsKCWeUO1aJsD2bUOIRMcJVN90rETB2TXqX9y/K3rrTtMZq1bJtQYzNS+rtS9C0nPqerKGiqqr/76SYki0T7g==; 5:ViDYuHmNjBYfJyDrEK8o4L56H35Pl/hp7NjcX1xirmfNruOjOMGnGsQJgv3tcbFmn77CiAb/77F7VsbjER/YOV8958blZ+CAjTgi82i7Sn+j9VnLkJTkCBTfeyoyNGjCCKGAsrA45rZRiN7xHQv9Ly8JijvhZm30ER+mKdDdHDrXXudquXHzj7vKYzcnfcZwd73OVj50X6BSOJ4ZUSFeKw==; 7:HnGhaBRWn6l6lXTo2gQA/bsDHhjGuTOSWzIWe24E12NcMmKDXQHWJI+5+fXEUzIt/pJV+gUhQLhJfPJNZIRRNb718ghUJj23e5FRtgk84jfkkOkk8JP/5eDisI60GI5BHMMaNM5A4TDh28WfRD7sVA== x-ms-office365-filtering-correlation-id: c7449e90-7e2b-4ff1-5614-08d68e5840f3 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:MN2SPR01MB0008; x-ms-traffictypediagnostic: MN2SPR01MB0008: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 09435FCA72 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(366004)(396003)(346002)(39860400002)(136003)(189003)(199004)(99286004)(1076003)(76176011)(55236004)(186003)(102836004)(52116002)(6436002)(72206003)(6506007)(71190400001)(71200400001)(478600001)(26005)(6512007)(68736007)(53936002)(386003)(97736004)(256004)(6116002)(3846002)(105586002)(305945005)(86362001)(2616005)(81156014)(8676002)(50226002)(25786009)(446003)(7736002)(106356001)(476003)(11346002)(2906002)(66066001)(14454004)(6486002)(44832011)(486006)(7416002)(36756003)(316002)(54906003)(4326008)(110136005)(8936002)(81166006)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2SPR01MB0008; H:MN2PR04MB6061.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: hvNSKantN+CkK2Ojj80iVep1DHmZPCeDAQQdOW+IcRxpP4WzV2WN6rgsfaZ92yRL+eVFOzo69kY/GMpbydwMIwaxtXhDWZEgxYm49g8ieJLZcoXt15GrZNDbZ3JlCcErdKr6ZNzNd3w46zoX2vKrRf/wD9yVlBP0gIWMxDyj7YO6gwvO9OZyfcoQrpVoIfz0aktvvTlCHAZmD3hjFbuU6GRRKQgLsUfNTG9od8Myh+CoMhGFdqy8PJ+xuqlKVE0bEEoR8zrRfkVtGvM0+4TabMEkDmYgycHLrvuiCofToNBwWyj2NkqFoapTLKH/hHs+6T9B282wvWrNPenqFYArHuZWn9vGcTbIzk67GTuYF3qYb/KMN1Nl/ruqofd1oii+qI4N+IcJR22lHIHw+sNxpOv7zmXdvaQkBSXwhwig1Ho= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7449e90-7e2b-4ff1-5614-08d68e5840f3 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2019 06:31:37.7670 (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: MN2SPR01MB0008 Cc: Palmer Dabbelt , Alexander Graf , U-Boot Mailing List Subject: [U-Boot] [PATCH v6 03/16] 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