aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/encoding.h')
-rw-r--r--arch/riscv/include/asm/encoding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/encoding.h b/arch/riscv/include/asm/encoding.h
index c450eb9103b..a0695da9364 100644
--- a/arch/riscv/include/asm/encoding.h
+++ b/arch/riscv/include/asm/encoding.h
@@ -9,7 +9,7 @@
#include <asm/csr.h>
-#ifdef CONFIG_RISCV_SMODE
+#if CONFIG_IS_ENABLED(RISCV_SMODE)
#define MODE_PREFIX(__suffix) s##__suffix
#else
#define MODE_PREFIX(__suffix) m##__suffix