core/riscv-rv32i: enable software ctz
Because we don't support risc-v bit manipulation extension (CLZ/CTZ instructions) yet, so we enable the software implementation to fix build error while __ctzsi2 is called. BUG=none BRANCH=none TEST=no build error. Change-Id: If916010b9004f95aa4ccfd533be9539aff4c3f50 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1982295 Reviewed-by: Jett Rink <jettrink@chromium.org>
This commit is contained in:
parent
739c21d178
commit
5e2d7361a6
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue