Received: from eggs.gnu.org ([208.118.235.92]:40469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYpnQ-0004n6-DJ for qemu-devel@nongnu.org; Wed, 14 Nov 2012 22:07:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYpnN-0007FJ-AE for qemu-devel@nongnu.org; Wed, 14 Nov 2012 22:07:16 -0500 Received: from cantor2.suse.de ([195.135.220.15]:49853 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYpnN-0007FE-0d for qemu-devel@nongnu.org; Wed, 14 Nov 2012 22:07:13 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 15 Nov 2012 04:06:46 +0100 Message-Id: <1352948807-30415-11-git-send-email-afaerber@suse.de> In-Reply-To: <1352948807-30415-1-git-send-email-afaerber@suse.de> References: <1352948807-30415-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 10/11] target-i386/cpu: Add new Opteron CPU model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Boris Ostrovsky , Andre Przywara , Eduardo Habkost , anthony@codemonkey.ws, =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Andre Przywara Add a new base CPU model called Opteron_G5 to model the latest Opteron CPUs. This increases the model value and model numbers and adds TBM, F16C and FMA over the latest G4 model. Signed-off-by: Andre Przywara Signed-off-by: Boris Ostrovsky [ehabkost: edited commit message] Signed-off-by: Eduardo Habkost Reviewed-by: Igor Mammedov Signed-off-by: Andreas F=C3=A4rber --- target-i386/cpu.c | 32 ++++++++++++++++++++++++++++++++ 1 Datei ge=C3=A4ndert, 32 Zeilen hinzugef=C3=BCgt(+) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index f896e0c..c3aff4f 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -756,6 +756,38 @@ static x86_def_t builtin_x86_defs[] =3D { .xlevel =3D 0x8000001A, .model_id =3D "AMD Opteron 62xx class CPU", }, + { + .name =3D "Opteron_G5", + .level =3D 0xd, + .vendor1 =3D CPUID_VENDOR_AMD_1, + .vendor2 =3D CPUID_VENDOR_AMD_2, + .vendor3 =3D CPUID_VENDOR_AMD_3, + .family =3D 21, + .model =3D 2, + .stepping =3D 0, + .features =3D CPUID_SSE2 | CPUID_SSE | CPUID_FXSR | CPUID_MMX | + CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV | CPUI= D_MCA | + CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC | CPUID_CX8= | + CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC | CPUID_PSE | + CPUID_DE | CPUID_FP87, + .ext_features =3D CPUID_EXT_F16C | CPUID_EXT_AVX | CPUID_EXT_XSA= VE | + CPUID_EXT_AES | CPUID_EXT_POPCNT | CPUID_EXT_SSE42 | + CPUID_EXT_SSE41 | CPUID_EXT_CX16 | CPUID_EXT_FMA | + CPUID_EXT_SSSE3 | CPUID_EXT_PCLMULQDQ | CPUID_EXT_SSE3, + .ext2_features =3D CPUID_EXT2_LM | CPUID_EXT2_RDTSCP | + CPUID_EXT2_PDPE1GB | CPUID_EXT2_FXSR | CPUID_EXT2_MMX | + CPUID_EXT2_NX | CPUID_EXT2_PSE36 | CPUID_EXT2_PAT | + CPUID_EXT2_CMOV | CPUID_EXT2_MCA | CPUID_EXT2_PGE | + CPUID_EXT2_MTRR | CPUID_EXT2_SYSCALL | CPUID_EXT2_APIC | + CPUID_EXT2_CX8 | CPUID_EXT2_MCE | CPUID_EXT2_PAE | CPUID_EX= T2_MSR | + CPUID_EXT2_TSC | CPUID_EXT2_PSE | CPUID_EXT2_DE | CPUID_EXT= 2_FPU, + .ext3_features =3D CPUID_EXT3_TBM | CPUID_EXT3_FMA4 | CPUID_EXT3= _XOP | + CPUID_EXT3_3DNOWPREFETCH | CPUID_EXT3_MISALIGNSSE | + CPUID_EXT3_SSE4A | CPUID_EXT3_ABM | CPUID_EXT3_SVM | + CPUID_EXT3_LAHF_LM, + .xlevel =3D 0x8000001A, + .model_id =3D "AMD Opteron 63xx class CPU", + }, }; =20 #ifdef CONFIG_KVM --=20 1.7.10.4