dsp/cpu: NaCl has no support for xgetbv
or the raw opcode; fixes:
934ed4: unrecognized instruction
Change-Id: I981870baf0e8b03bf40144ea8ec25eff140d5bc3
diff --git a/src/dsp/cpu.c b/src/dsp/cpu.c
index b4f5374..3456504 100644
--- a/src/dsp/cpu.c
+++ b/src/dsp/cpu.c
@@ -44,7 +44,8 @@
#define GetCPUInfo __cpuid
#endif
-#if defined(__i386__) || defined(__x86_64__)
+// NaCl has no support for xgetbv or the raw opcode.
+#if !defined(__native_client__) && (defined(__i386__) || defined(__x86_64__))
static WEBP_INLINE uint64_t xgetbv(void) {
const uint32_t ecx = 0;
uint32_t eax, edx;