[PATCH 01/10] riscv: lib: Split out support for T-Head cache management operations

Leo Liang ycliang at andestech.com
Mon May 12 11:56:41 CEST 2025


On Sat, Apr 26, 2025 at 04:56:55PM +0000, Yao Zi wrote:
> [EXTERNAL MAIL]
> 
> Designed before a standard set of cache management operations defined in
> RISC-V, earlier T-Head cores like C906 and C910 provide CMO through the
> customized extension XTheadCMO, which has been used in the CV1800B port
> of U-Boot.
> 
> This patch splits XTheadCMO-related code into a generic module, allowing
> SoCs shipping T-Head cores to share the code.
> 
> Link: https://github.com/XUANTIE-RV/thead-extension-spec
> Signed-off-by: Yao Zi <ziyao at disroot.org>
> ---
>  arch/riscv/Kconfig                                  | 8 ++++++++
>  arch/riscv/cpu/cv1800b/Kconfig                      | 1 +
>  arch/riscv/cpu/cv1800b/Makefile                     | 1 -
>  arch/riscv/lib/Makefile                             | 1 +
>  arch/riscv/{cpu/cv1800b/cache.c => lib/thead_cmo.c} | 0
>  5 files changed, 10 insertions(+), 1 deletion(-)
>  rename arch/riscv/{cpu/cv1800b/cache.c => lib/thead_cmo.c} (100%)

Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list