Fix mov syntax
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 16 Jun 2019 16:35:43 +0000 (18:35 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Jun 2019 16:35:43 +0000 (18:35 +0200)
common_x86_64.h

index 9db66b5..c05998d 100644 (file)
@@ -129,7 +129,7 @@ static __inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){
   *ecx=cpuinfo[2];
   *edx=cpuinfo[3];
 #else
-        __asm__ __volatile__("mov %%ecx, 0;"
+        __asm__ __volatile__("mov $0, %%ecx;"
                             "cpuid"
                             : "=a" (*eax),
                             "=b" (*ebx),