All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 04/30] riscv: rename CPU_RISCV_32/64 to match architecture names ARCH_RV32I/64I
Date: Sat, 20 Oct 2018 00:07:17 +0200	[thread overview]
Message-ID: <20181019220743.15020-5-lukas.auer@aisec.fraunhofer.de> (raw)
In-Reply-To: <20181019220743.15020-1-lukas.auer@aisec.fraunhofer.de>

RISC-V defines the base integer instruction sets as RV32I and RV64I.
Rename CPU_RISCV_32 and CPU_RISCV_64 to ARCH_RV32I and ARCH_64I to match
this convention.

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
---

 arch/riscv/Kconfig              | 16 ++++++++--------
 arch/riscv/lib/setjmp.S         |  2 +-
 configs/ax25-ae350_defconfig    |  2 +-
 configs/qemu-riscv64_defconfig  |  2 +-
 include/config_distro_bootcmd.h |  8 ++++----
 5 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 168ca3de7c..7c76b4d664 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -20,20 +20,20 @@ source "board/AndesTech/ax25-ae350/Kconfig"
 source "board/emulation/qemu-riscv/Kconfig"
 
 choice
-	prompt "CPU selection"
-	default CPU_RISCV_32
+	prompt "Base ISA"
+	default ARCH_RV32I
 
-config CPU_RISCV_32
-	bool "RISC-V 32-bit"
+config ARCH_RV32I
+	bool "RV32I"
 	select 32BIT
 	help
-	  Choose this option to build an U-Boot for RISCV32 architecture.
+	  Choose this option to target the RV32I base integer instruction set.
 
-config CPU_RISCV_64
-	bool "RISC-V 64-bit"
+config ARCH_RV64I
+	bool "RV64I"
 	select 64BIT
 	help
-	  Choose this option to build an U-Boot for RISCV64 architecture.
+	  Choose this option to target the RV64I base integer instruction set.
 
 endchoice
 
diff --git a/arch/riscv/lib/setjmp.S b/arch/riscv/lib/setjmp.S
index 8f5a6a23aa..72bc9241f6 100644
--- a/arch/riscv/lib/setjmp.S
+++ b/arch/riscv/lib/setjmp.S
@@ -6,7 +6,7 @@
 #include <config.h>
 #include <linux/linkage.h>
 
-#ifdef CONFIG_CPU_RISCV_64
+#ifdef CONFIG_ARCH_RV64I
 #define STORE_IDX(reg, idx)	sd reg, (idx*8)(a0)
 #define LOAD_IDX(reg, idx)	ld reg, (idx*8)(a0)
 #else
diff --git a/configs/ax25-ae350_defconfig b/configs/ax25-ae350_defconfig
index 614ef15dc7..9282f05981 100644
--- a/configs/ax25-ae350_defconfig
+++ b/configs/ax25-ae350_defconfig
@@ -1,7 +1,7 @@
 CONFIG_RISCV=y
 CONFIG_SYS_TEXT_BASE=0x00000000
 CONFIG_TARGET_AX25_AE350=y
-CONFIG_CPU_RISCV_64=y
+CONFIG_ARCH_RV64I=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_FIT=y
diff --git a/configs/qemu-riscv64_defconfig b/configs/qemu-riscv64_defconfig
index d6c1a5d646..60b647efe8 100644
--- a/configs/qemu-riscv64_defconfig
+++ b/configs/qemu-riscv64_defconfig
@@ -1,6 +1,6 @@
 CONFIG_RISCV=y
 CONFIG_TARGET_QEMU_VIRT=y
-CONFIG_CPU_RISCV_64=y
+CONFIG_ARCH_RV64I=y
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 373fee78a9..54186efe7b 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -99,9 +99,9 @@
 #define BOOTEFI_NAME "bootia32.efi"
 #elif defined(CONFIG_X86_RUN_64BIT)
 #define BOOTEFI_NAME "bootx64.efi"
-#elif defined(CONFIG_CPU_RISCV_32)
+#elif defined(CONFIG_ARCH_RV32I)
 #define BOOTEFI_NAME "bootriscv32.efi"
-#elif defined(CONFIG_CPU_RISCV_64)
+#elif defined(CONFIG_ARCH_RV64I)
 #define BOOTEFI_NAME "bootriscv64.efi"
 #endif
 #endif
@@ -257,10 +257,10 @@
 #elif defined(__i386__)
 #define BOOTENV_EFI_PXE_ARCH "0x6"
 #define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00006:UNDI:003000"
-#elif defined(CONFIG_CPU_RISCV_32) || ((defined(__riscv) && __riscv_xlen == 32))
+#elif defined(CONFIG_ARCH_RV32I) || ((defined(__riscv) && __riscv_xlen == 32))
 #define BOOTENV_EFI_PXE_ARCH "0x19"
 #define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00025:UNDI:003000"
-#elif defined(CONFIG_CPU_RISCV_64) || ((defined(__riscv) && __riscv_xlen == 64))
+#elif defined(CONFIG_ARCH_RV64I) || ((defined(__riscv) && __riscv_xlen == 64))
 #define BOOTENV_EFI_PXE_ARCH "0x1b"
 #define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00027:UNDI:003000"
 #elif defined(CONFIG_SANDBOX)
-- 
2.17.2

  parent reply	other threads:[~2018-10-19 22:07 UTC|newest]

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19 22:07 [U-Boot] [PATCH 00/30] General fixes / cleanup for RISC-V and improvements to qemu-riscv Lukas Auer
2018-10-19 22:07 ` [U-Boot] [PATCH 01/30] tools: .gitignore: add prelink-riscv Lukas Auer
2018-10-22  6:22   ` Bin Meng
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37BF6@ATCPCS16.andestech.com>
2018-10-23  1:21     ` [U-Boot] FW: " Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 02/30] riscv: ignore device tree binaries Lukas Auer
2018-10-22  6:16   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37942@ATCPCS16.andestech.com>
2018-10-23  1:30       ` [U-Boot] FW: " Rick Chen
2018-10-24 14:17         ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 03/30] dts: riscv: update makefile to also clean the RISC-V dts directory Lukas Auer
2018-10-22  6:23   ` Bin Meng
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37C3F@ATCPCS16.andestech.com>
2018-10-23  1:28     ` [U-Boot] FW: " Rick Chen
2018-10-19 22:07 ` Lukas Auer [this message]
2018-10-22  6:23   ` [U-Boot] [PATCH 04/30] riscv: rename CPU_RISCV_32/64 to match architecture names ARCH_RV32I/64I Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37C6E@ATCPCS16.andestech.com>
     [not found]       ` <CAN5B=eJZp5afSyKRn0=uKz8bkm5cNBq41-JnLLkpn8kwDaf=9A@mail.gmail.com>
2018-10-23  1:46         ` Rick Chen
2018-10-24 14:19     ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 05/30] riscv: select CONFIG_PHYS_64BIT on RV64I systems Lukas Auer
2018-10-22  6:23   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37C8D@ATCPCS16.andestech.com>
2018-10-23  1:50       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 06/30] riscv: add Kconfig entries for the C and A ISA extensions Lukas Auer
2018-10-22  7:21   ` Bin Meng
2018-10-24 15:21     ` Auer, Lukas
2018-10-24 15:32       ` Bin Meng
2018-10-24 15:41         ` Auer, Lukas
2018-10-25  2:12           ` Bin Meng
2018-10-19 22:07 ` [U-Boot] [PATCH 07/30] riscv: set -march and -mabi based on the Kconfig configuration Lukas Auer
2018-10-22  7:21   ` Bin Meng
2018-10-24 15:57     ` Auer, Lukas
2018-10-25  1:56       ` Bin Meng
2018-10-19 22:07 ` [U-Boot] [PATCH 08/30] riscv: add Kconfig entries for the code model Lukas Auer
2018-10-22  7:21   ` Bin Meng
2018-10-19 22:07 ` [U-Boot] [PATCH 09/30] riscv: move target selection into separate file Lukas Auer
2018-10-22  7:22   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37D41@ATCPCS16.andestech.com>
2018-10-23  2:48       ` Rick Chen
2018-10-25  2:50         ` Bin Meng
2018-10-25 11:37           ` Auer, Lukas
2018-10-25 11:39     ` Auer, Lukas
2018-10-25 13:32       ` Bin Meng
2018-10-19 22:07 ` [U-Boot] [PATCH 10/30] riscv: enable -fdata-sections Lukas Auer
2018-10-22  7:22   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37CD1@ATCPCS16.andestech.com>
2018-10-23  2:20       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 11/30] riscv: fix use of incorrectly sized variables Lukas Auer
2018-10-22  7:36   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37E20@ATCPCS16.andestech.com>
2018-10-23  5:52       ` Rick Chen
2018-10-25 11:47         ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 12/30] riscv: make use of the barrier functions from Linux Lukas Auer
2018-10-22  7:36   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37E79@ATCPCS16.andestech.com>
2018-10-23  6:12       ` Rick Chen
2018-10-25 12:39     ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 13/30] riscv: do not reimplement generic io functions Lukas Auer
2018-10-22  7:36   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37E95@ATCPCS16.andestech.com>
2018-10-23  6:18       ` Rick Chen
2018-10-25 12:42     ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 14/30] riscv: complete the list of exception codes Lukas Auer
2018-10-22  7:36   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37EAD@ATCPCS16.andestech.com>
2018-10-23  6:22       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 15/30] riscv: treat undefined exception codes as reserved Lukas Auer
2018-10-22  7:36   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37EC2@ATCPCS16.andestech.com>
2018-10-23  6:26       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 16/30] riscv: hang on unhandled exceptions Lukas Auer
2018-10-22  7:46   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37ED4@ATCPCS16.andestech.com>
2018-10-23  6:28       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 17/30] riscv: implement the invalidate_icache_* functions Lukas Auer
2018-10-22  7:47   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37EEE@ATCPCS16.andestech.com>
2018-10-23  6:34       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 18/30] riscv: invalidate the instruction cache before jumping to Linux Lukas Auer
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A3568B@ATCPCS16.andestech.com>
2018-10-22  1:39     ` [U-Boot] FW: " Rick Chen
2018-10-26 16:27       ` Auer, Lukas
2018-10-29  2:25         ` Rick Chen
2018-10-31  3:48           ` Greentime Hu
2018-10-31  4:22             ` Rick Chen
2018-11-03 17:19               ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 19/30] riscv: fix inconsistent use of spaces and tabs in start.S Lukas Auer
2018-10-22  7:47   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A37F52@ATCPCS16.andestech.com>
2018-10-23  6:58       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 20/30] riscv: align mtvec on a 4-byte boundary Lukas Auer
2018-10-22  7:47   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A380C6@ATCPCS16.andestech.com>
2018-10-23  9:17       ` Rick Chen
2018-10-23  9:25         ` Bin Meng
2018-10-19 22:07 ` [U-Boot] [PATCH 21/30] riscv: remove CONFIG_INIT_CRITICAL Lukas Auer
2018-10-22  9:19   ` Bin Meng
2018-10-25  2:57     ` Bin Meng
2018-10-25 15:48       ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 22/30] riscv: remove unused labels in start.S Lukas Auer
2018-10-22  9:19   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A38CF1@ATCPCS16.andestech.com>
2018-10-24  2:38       ` Rick Chen
2018-10-24  3:34         ` Bin Meng
2018-10-24  5:20           ` Rick Chen
2018-10-24  5:47             ` Rick Chen
2018-10-24 14:13               ` Auer, Lukas
2018-10-25  1:16                 ` Rick Chen
2018-10-25 15:56                   ` Auer, Lukas
2018-10-29 16:43                     ` Auer, Lukas
2018-10-30  1:49                       ` Rick Chen
2018-10-30 12:51                         ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 23/30] riscv: do not blindly modify the mstatus CSR Lukas Auer
2018-10-22  9:19   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A38DCB@ATCPCS16.andestech.com>
2018-10-24  5:51       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 24/30] riscv: save hart ID and device tree passed by prior boot stage Lukas Auer
2018-10-22  9:19   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A38DE5@ATCPCS16.andestech.com>
2018-10-24  5:56       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 25/30] riscv: qemu: use " Lukas Auer
2018-10-22  9:19   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A38E02@ATCPCS16.andestech.com>
2018-10-24  6:05       ` Rick Chen
2018-10-19 22:07 ` [U-Boot] [PATCH 26/30] bdinfo: riscv: print fdt_blob address Lukas Auer
2018-10-22  9:35   ` Bin Meng
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A38E43@ATCPCS16.andestech.com>
2018-10-24  6:54       ` Rick Chen
2018-10-26 13:36         ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 27/30] riscv: qemu: support booting Linux Lukas Auer
2018-10-22  9:35   ` Bin Meng
2018-10-19 22:07 ` [U-Boot] [PATCH 28/30] riscv: align bootm implementation with that of other architectures Lukas Auer
2018-10-22  9:35   ` Bin Meng
2018-10-19 22:07 ` [U-Boot] [PATCH 29/30] dm: core: add missing prototype for ofnode_read_u64 Lukas Auer
2018-10-22  9:35   ` Bin Meng
2018-10-25 16:09     ` Auer, Lukas
2018-10-19 22:07 ` [U-Boot] [PATCH 30/30] riscv: qemu: detect and boot the kernel passed by QEMU Lukas Auer
2018-10-22  9:35   ` Bin Meng
2018-10-22  9:37 ` [U-Boot] [PATCH 00/30] General fixes / cleanup for RISC-V and improvements to qemu-riscv Bin Meng
2018-10-26 13:20   ` Bin Meng
2018-10-26 13:40     ` Auer, Lukas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181019220743.15020-5-lukas.auer@aisec.fraunhofer.de \
    --to=lukas.auer@aisec.fraunhofer.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.