summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/riscv-rv32i/config_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/riscv-rv32i/config_core.h b/core/riscv-rv32i/config_core.h
index 608fec3026..fe6135683d 100644
--- a/core/riscv-rv32i/config_core.h
+++ b/core/riscv-rv32i/config_core.h
@@ -10,7 +10,12 @@
#define BFD_ARCH riscv
#define BFD_FORMAT "elf32-littleriscv"
+/*
+ * The hardware doesn't support the risc-v bit manipulation
+ * extension (CLZ/CTZ instructions) so let's use the software implementation.
+ */
#define CONFIG_SOFTWARE_CLZ
+#define CONFIG_SOFTWARE_CTZ
#define CONFIG_SOFTWARE_PANIC
#endif /* __CROS_EC_CONFIG_CORE_H */