From: Yu-Chien Peter Lin Date: Fri, 10 Jan 2025 08:53:08 +0000 (+0800) Subject: Kconfig: Add a default cache line size for RISC-V X-Git-Tag: v2025.04-rc1~53^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6be961a75834ad4f6f42d034be7c5a4551fdc20e;p=pandora-u-boot.git Kconfig: Add a default cache line size for RISC-V The RISC-V ISA profile RVA23U64 requires extension Zic64b (Cache blocks must be 64 bytes in size, naturally aligned in the address space). Some RISC-V platforms do not define the d-cache line size through SYS_CACHE_SHIFT_n. Set a default value of 64 bytes for such cases. Signed-off-by: Yu-Chien Peter Lin Reviewed-by: Heinrich Schuchardt Reviewed-by: Leo Yu-Chi Liang --- diff --git a/arch/Kconfig b/arch/Kconfig index bb2e7bedd10..b0190b1f415 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -52,7 +52,8 @@ config SYS_CACHELINE_SIZE default 64 if SYS_CACHE_SHIFT_6 default 32 if SYS_CACHE_SHIFT_5 default 16 if SYS_CACHE_SHIFT_4 - # Fall-back for MIPS + # Fall-back for MIPS and RISC-V + default 64 if RISCV default 32 if MIPS config LINKER_LIST_ALIGN