x86/cpuid: Always expose 32 and 64-bit CPUs
authorAndre Przywara <andre.przywara@amd.com>
Thu, 11 Mar 2010 13:39:04 +0000 (14:39 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 Mar 2010 15:50:54 +0000 (16:50 +0100)
Since 64-bit capability is just another CPUID bit we now properly
mask, there is no reason anymore to hide the 64-bit capable CPU
models from a 32-bit only QEMU. All 64-bit CPUs can be used
perfectly in 32-bit legacy mode anyway, so these models also make
sense for 32-bit.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-i386/cpuid.c

index e3dc9e5..b949e60 100644 (file)
@@ -251,7 +251,6 @@ static x86_def_t *x86_defs = {NULL};
 /* built-in cpu model definitions (deprecated)
  */
 static x86_def_t builtin_x86_defs[] = {
-#ifdef TARGET_X86_64
     {
         .name = "qemu64",
         .level = 4,
@@ -350,7 +349,6 @@ static x86_def_t builtin_x86_defs[] = {
         .xlevel = 0x80000008,
         .model_id = "Common KVM processor"
     },
-#endif
     {
         .name = "qemu32",
         .level = 4,