]> xenbits.xensource.com Git - xen.git/commitdiff
xen/riscv: change ISA to r64G
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Wed, 8 Feb 2023 08:20:33 +0000 (09:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Feb 2023 08:20:33 +0000 (09:20 +0100)
Work with some registers requires csr command which is part of
Zicsr.

Also ISA was changed from r64ima to r64g where G is represented the
“IMAFDZicsr Zifencei” base and extensions so basically it is the same
as it was before plus additional extensions we will need in the
nearest future.

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
xen/arch/riscv/Kconfig
xen/arch/riscv/arch.mk

index 468e250c869bb72676ff0574b316d28456fd1138..f382b36f6c8214d4cb42297715595c868a59cf32 100644 (file)
@@ -19,15 +19,19 @@ menu "ISA Selection"
 
 choice
        prompt "Base ISA"
-       default RISCV_ISA_RV64IMA if RISCV_64
+       default RISCV_ISA_RV64G if RISCV_64
        help
          This selects the base ISA extensions that Xen will target.
 
-config RISCV_ISA_RV64IMA
-       bool "RV64IMA"
+config RISCV_ISA_RV64G
+       bool "RV64G"
        help
-         Use the RV64I base ISA, plus the "M" and "A" extensions
-         for integer multiply/divide and atomic instructions, respectively.
+         Use the RV64I base ISA, plus
+         "M" for multiply/divide,
+         "A" for atomic instructions,
+         “F”/"D" for  {single/double}-precision floating-point instructions,
+         "Zicsr" for control and status register access,
+         "Zifencei" for instruction-fetch fence.
 
 endchoice
 
index 012dc677c31d60aeafa4f9aee08a4a84bfb2fbcd..45fe858ee07a082aa6295421e2f63052ab40e5f5 100644 (file)
@@ -3,7 +3,7 @@
 
 CFLAGS-$(CONFIG_RISCV_64) += -mabi=lp64
 
-riscv-march-$(CONFIG_RISCV_ISA_RV64IMA) := rv64ima
+riscv-march-$(CONFIG_RISCV_ISA_RV64G) := rv64g
 riscv-march-$(CONFIG_RISCV_ISA_C)       := $(riscv-march-y)c
 
 # Note that -mcmodel=medany is used so that Xen can be mapped