mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00

As Guo Ren said from the kernel mailing list [1], future T-Head CPUs, including the newer versions of T-Head C908, will feature standard Sscofpmf extension. For these CPUs, T-Head's implementation of PMU Overflow Interrupts may not needed anymore. In this case, we shouldn't apply T-Head PMU for all T-Head CPUs. Thus, this patch separated T-Head PMU errata. [1] https://lore.kernel.org/linux-riscv/Zh9sUUUT09LZb0MO@gmail.com/ Signed-off-by: Yangyu Chen <cyy@cyyself.name> Reviewed-by: Inochi Amaoto <inochiama@outlook.com> Reviewed-by: Anup Patel <anup@brainfault.org>
15 lines
389 B
C
15 lines
389 B
C
|
|
#ifndef __RISCV_THEAD_C9XX_ERRATA_H____
|
|
#define __RISCV_THEAD_C9XX_ERRATA_H____
|
|
|
|
/**
|
|
* T-HEAD board with this quirk need to execute sfence.vma to flush
|
|
* stale entrie avoid incorrect memory access.
|
|
*/
|
|
#define THEAD_QUIRK_ERRATA_TLB_FLUSH BIT(0)
|
|
#define THEAD_QUIRK_ERRATA_THEAD_PMU BIT(1)
|
|
|
|
void thead_register_tlb_flush_trap_handler(void);
|
|
|
|
#endif // __RISCV_THEAD_C9XX_ERRATA_H____
|