tcg-target.inc.c:3495:no such instruction: `xgetbv'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While building QEMU on Mac OS 10.6.8 I saw this error message:
tag-target.
In the file tcg/i386/
asm ("xgetbv" : "=a" (xcrl), "=d" (xcrh) : "c" (0));
https:/
According to the above link, another project also experienced this problem on Mac OS X. The fix was to replace the name of the instruction with the encoded form '.byte 0x0F, 0x01, 0xd0'.
Host info:
Mac OS 10.6.8
GCC 5.2.0
Additional information:
This may be a gcc issue. I have compiled QEMU on Mac OS 10.12 and didn't experience any issues. The compiler used was Apple's clang.
summary: |
- tag-target.inc.c:3495:no such instruction: `xgetbv' + tcg-target.inc.c:3495:no such instruction: `xgetbv' |
The exact commit that causes this problem is this:
commit 770c2fc7bb70804 ae9869995fd02da dd6d7656ac
tcg/i386: Add vector operations