From f810f1583725b84d3538adfe2aab6dea00f5ae87 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 6 Jul 2024 19:31:13 +0300 Subject: prefer __riscv_xlen over riscv64 --- include/arch/types.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/arch/types.h') diff --git a/include/arch/types.h b/include/arch/types.h index 7b1f07f..221c2e5 100644 --- a/include/arch/types.h +++ b/include/arch/types.h @@ -14,10 +14,12 @@ * \todo Fix incorrect include file reference in doxygen. */ -#if defined(riscv64) +#if defined(__riscv) +# if __riscv_xlen == 64 #include "../../arch/riscv64/include/types.h" -#elif defined(riscv32) +# elif #include "../../arch/riscv32/include/types.h" +# endif #endif #endif /* KMI_ARCH_TYPES_H */ -- cgit v1.3