From 3aab212920c54c41a7c4de8f3b6dd4be5221343b Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Mon, 8 May 2023 11:54:03 -0400 Subject: [PATCH] riscv: Microchip Mi-V should use built-in atomic operations The Mi-V implements the A extension therefore it shouldn't use the C version. The built-in version generates code with proper machine opcodes. Signed-off-by: Nicolas Pitre --- soc/riscv/riscv-privilege/miv/Kconfig.soc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/riscv/riscv-privilege/miv/Kconfig.soc b/soc/riscv/riscv-privilege/miv/Kconfig.soc index 88f5a9faf42..189abb6879c 100644 --- a/soc/riscv/riscv-privilege/miv/Kconfig.soc +++ b/soc/riscv/riscv-privilege/miv/Kconfig.soc @@ -9,7 +9,7 @@ choice config SOC_RISCV32_MIV bool "Microchip Mi-V system implementation" - select ATOMIC_OPERATIONS_C + select ATOMIC_OPERATIONS_BUILTIN select INCLUDE_RESET_VECTOR select RISCV_ISA_RV32I select RISCV_ISA_EXT_M