* You can do whatever you want with this file.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "wimlib/x86_cpu_features.h"
#if defined(__i386__) || defined(__x86_64__)
{
u32 edx, eax;
- __asm__ ("xgetbv" : "=d" (edx), "=a" (eax) : "c" (index));
+ /* Execute the "xgetbv" instruction. Old versions of binutils do not
+ * recognize this instruction, so list the raw bytes instead. */
+ __asm__ (".byte 0x0f, 0x01, 0xd0" : "=d" (edx), "=a" (eax) : "c" (index));
return ((u64)edx << 32) | eax;
}