dsp/cpu: NaCl has no support for xgetbv

or the raw opcode; fixes:
  934ed4: unrecognized instruction

Change-Id: I981870baf0e8b03bf40144ea8ec25eff140d5bc3
This commit is contained in:
James Zern 2014-05-29 21:30:10 +00:00
parent 4c398699ef
commit 4dfa86b29c

View File

@ -44,7 +44,8 @@ static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) {
#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;