/[qemu]/qemu/kqemu.c
ViewVC logotype

Diff of /qemu/kqemu.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by bellard, Sun Aug 21 19:15:23 2005 UTC revision 1.7 by bellard, Sat Sep 3 16:25:14 2005 UTC
# Line 119  static void kqemu_update_cpuid(CPUState Line 119  static void kqemu_update_cpuid(CPUState
119      critical_features_mask =      critical_features_mask =
120          CPUID_CMOV | CPUID_CX8 |          CPUID_CMOV | CPUID_CX8 |
121          CPUID_FXSR | CPUID_MMX | CPUID_SSE |          CPUID_FXSR | CPUID_MMX | CPUID_SSE |
122          CPUID_SSE2;          CPUID_SSE2 | CPUID_SEP;
123      if (!is_cpuid_supported()) {      if (!is_cpuid_supported()) {
124          features = 0;          features = 0;
125      } else {      } else {
126          cpuid(1, eax, ebx, ecx, edx);          cpuid(1, eax, ebx, ecx, edx);
127          features = edx;          features = edx;
128      }      }
129    #ifdef __x86_64__
130        /* NOTE: on x86_64 CPUs, SYSENTER is not supported in
131           compatibility mode, so in order to have the best performances
132           it is better not to use it */
133        features &= ~CPUID_SEP;
134    #endif
135      env->cpuid_features = (env->cpuid_features & ~critical_features_mask) |      env->cpuid_features = (env->cpuid_features & ~critical_features_mask) |
136          (features & critical_features_mask);          (features & critical_features_mask);
137      /* XXX: we could update more of the target CPUID state so that the      /* XXX: we could update more of the target CPUID state so that the

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26