Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

riscv: Move vendor errata definitions to new header

Move vendor errata definitions into errata_list_vendors.h.

Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Han Gao <rabenda.cn@gmail.com>
Link: https://lore.kernel.org/r/20250713155321.2064856-2-guoren@kernel.org
[pjw@kernel.org: updated to apply and to make the whitespace consistent]
Signed-off-by: Paul Walmsley <pjw@kernel.org>

authored by

Guo Ren (Alibaba DAMO Academy) and committed by
Paul Walmsley
16d18e3e 92c4995b

+25 -18
+1 -18
arch/riscv/include/asm/errata_list.h
··· 10 10 #include <asm/insn-def.h> 11 11 #include <asm/hwcap.h> 12 12 #include <asm/vendorid_list.h> 13 - 14 - #ifdef CONFIG_ERRATA_ANDES 15 - #define ERRATA_ANDES_NO_IOCP 0 16 - #define ERRATA_ANDES_NUMBER 1 17 - #endif 18 - 19 - #ifdef CONFIG_ERRATA_SIFIVE 20 - #define ERRATA_SIFIVE_CIP_453 0 21 - #define ERRATA_SIFIVE_CIP_1200 1 22 - #define ERRATA_SIFIVE_NUMBER 2 23 - #endif 24 - 25 - #ifdef CONFIG_ERRATA_THEAD 26 - #define ERRATA_THEAD_MAE 0 27 - #define ERRATA_THEAD_PMU 1 28 - #define ERRATA_THEAD_GHOSTWRITE 2 29 - #define ERRATA_THEAD_NUMBER 3 30 - #endif 13 + #include <asm/errata_list_vendors.h> 31 14 32 15 #ifdef __ASSEMBLER__ 33 16
+24
arch/riscv/include/asm/errata_list_vendors.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + 3 + #ifndef ASM_ERRATA_LIST_VENDORS_H 4 + #define ASM_ERRATA_LIST_VENDORS_H 5 + 6 + #ifdef CONFIG_ERRATA_ANDES 7 + #define ERRATA_ANDES_NO_IOCP 0 8 + #define ERRATA_ANDES_NUMBER 1 9 + #endif 10 + 11 + #ifdef CONFIG_ERRATA_SIFIVE 12 + #define ERRATA_SIFIVE_CIP_453 0 13 + #define ERRATA_SIFIVE_CIP_1200 1 14 + #define ERRATA_SIFIVE_NUMBER 2 15 + #endif 16 + 17 + #ifdef CONFIG_ERRATA_THEAD 18 + #define ERRATA_THEAD_MAE 0 19 + #define ERRATA_THEAD_PMU 1 20 + #define ERRATA_THEAD_GHOSTWRITE 2 21 + #define ERRATA_THEAD_NUMBER 3 22 + #endif 23 + 24 + #endif /* ASM_ERRATA_LIST_VENDORS_H */