From 6e6b4bcbf597cacdaf61720b626a4a45aa40949d Mon Sep 17 00:00:00 2001 From: The Tumultuous Unicorn Of Darkness Date: Mon, 8 Jul 2024 21:44:02 +0200 Subject: [PATCH] Set a dummy cpu_exec_mrs() macro when inline ASM is not supported Fix #201 --- libcpuid/asm-bits.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcpuid/asm-bits.h b/libcpuid/asm-bits.h index 04b659d..f25c4c2 100644 --- a/libcpuid/asm-bits.h +++ b/libcpuid/asm-bits.h @@ -94,6 +94,8 @@ # else # error "Unsupported compiler" # endif /* COMPILER */ +# else +# define cpu_exec_mrs(reg_name, reg_value) /* no-op */ #endif /* INLINE_ASM_SUPPORTED */ int cpuid_exists_by_eflags(void);