aboutsummaryrefslogtreecommitdiff
path: root/util/cpuinfo-i386.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cpuinfo-i386.c')
-rw-r--r--util/cpuinfo-i386.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/cpuinfo-i386.c b/util/cpuinfo-i386.c
index 434319aa71..ab6143d9e7 100644
--- a/util/cpuinfo-i386.c
+++ b/util/cpuinfo-i386.c
@@ -77,8 +77,10 @@ unsigned __attribute__((constructor)) cpuinfo_init(void)
* See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688
*/
__cpuid(0, a, b, c, d);
- if (c == signature_INTEL_ecx || c == signature_AMD_ecx) {
+ if (c == signature_INTEL_ecx) {
info |= CPUINFO_ATOMIC_VMOVDQA;
+ } else if (c == signature_AMD_ecx) {
+ info |= CPUINFO_ATOMIC_VMOVDQA | CPUINFO_ATOMIC_VMOVDQU;
}
}
}