summaryrefslogtreecommitdiff
path: root/platform/generic/include
diff options
context:
space:
mode:
authorInochi Amaoto <[email protected]>2023-10-07 11:06:30 +0800
committerAnup Patel <[email protected]>2023-11-14 21:53:50 +0530
commit492d9b153d00ec2fc2fec89ded42e71df52e27aa (patch)
tree1aac53017e5be305eceb70706862610dcb694cc8 /platform/generic/include
parent8e941e7fe3b8244107832b931980006bf9b0dc55 (diff)
platform: generic: thead: separate implement of T-HEAD c9xx errata
Separate the implement of T-HEAD c9xx errata to allow any platform with bug related to c9xx cores can use it. Signed-off-by: Inochi Amaoto <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/generic/include')
-rw-r--r--platform/generic/include/thead/c9xx_errata.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/generic/include/thead/c9xx_errata.h b/platform/generic/include/thead/c9xx_errata.h
new file mode 100644
index 00000000..bf979384
--- /dev/null
+++ b/platform/generic/include/thead/c9xx_errata.h
@@ -0,0 +1,13 @@
+
+#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)
+
+void thead_register_tlb_flush_trap_handler(void);
+
+#endif // __RISCV_THEAD_C9XX_ERRATA_H____