From 20632054d6f5a138e0cc3f8b2e35887dd821896a Mon Sep 17 00:00:00 2001 From: Veselin Georgiev Date: Mon, 23 Jun 2014 23:41:02 +0300 Subject: [PATCH] Add support for Atom Pineview. --- libcpuid/recog_intel.c | 3 ++ tests/tests_stash.txt | 94 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/libcpuid/recog_intel.c b/libcpuid/recog_intel.c index 4e4c438..fd2c5ca 100644 --- a/libcpuid/recog_intel.c +++ b/libcpuid/recog_intel.c @@ -61,6 +61,7 @@ enum _intel_code_t { ATOM_DIAMONDVILLE, ATOM_DUALCORE, ATOM_SILVERTHORNE, + ATOM_PINEVIEW, CORE_I3, CORE_I5, CORE_I7, @@ -207,6 +208,7 @@ const struct match_entry_t cpudb_intel[] = { { 6, 12, -1, -1, -1, 1, -1, -1, ATOM_DUALCORE , 0, "Atom Dual-Core (Diamondville)" }, { 6, 12, -1, -1, -1, 1, -1, -1, ATOM_SILVERTHORNE , 0, "Atom (Silverthorne)" }, { 6, 12, -1, -1, -1, 2, -1, -1, NO_CODE , 0, "Atom (Cedarview)" }, + { 6, 12, -1, -1, -1, 1, -1, -1, ATOM_PINEVIEW , 0, "Atom (Pineview)" }, /* -------------------------------------------------- */ @@ -592,6 +594,7 @@ static intel_code_t get_brand_code(struct cpu_id_t* data) { ATOM_DIAMONDVILLE, "Atom(TM) CPU N" }, { ATOM_DUALCORE, "Atom(TM) CPU 3" }, { ATOM_SILVERTHORNE, "Atom(TM) CPU Z" }, + { ATOM_PINEVIEW, "Atom(TM) CPU D" }, }; if (strstr(bs, "Mobile")) { diff --git a/tests/tests_stash.txt b/tests/tests_stash.txt index 5fb3a6a..311f06d 100644 --- a/tests/tests_stash.txt +++ b/tests/tests_stash.txt @@ -5788,3 +5788,97 @@ intel_fn11[3]=07280203 00000000 00000000 00000503 Atom (Cedarview) fpu vme de pse tsc msr pae mce cx8 apic mtrr sep pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni dts64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm xd movbe lm lahf_lm -------------------------------------------------------------------------------- +basic_cpuid[0]=0000000a 756e6547 6c65746e 49656e69 +basic_cpuid[1]=000106ca 01020800 0040e31d bfebfbff +basic_cpuid[2]=4fba5901 0e3080c0 00000000 00000000 +basic_cpuid[3]=00000000 00000000 00000000 00000000 +basic_cpuid[4]=00004121 0140003f 0000003f 00000001 +basic_cpuid[5]=00000040 00000040 00000003 00000010 +basic_cpuid[6]=00000001 00000002 00000001 00000000 +basic_cpuid[7]=00000000 00000000 00000000 00000000 +basic_cpuid[8]=00000000 00000000 00000000 00000000 +basic_cpuid[9]=00000000 00000000 00000000 00000000 +basic_cpuid[10]=07280203 00000000 00000000 00000503 +basic_cpuid[11]=07280203 00000000 00000000 00000503 +basic_cpuid[12]=07280203 00000000 00000000 00000503 +basic_cpuid[13]=07280203 00000000 00000000 00000503 +basic_cpuid[14]=07280203 00000000 00000000 00000503 +basic_cpuid[15]=07280203 00000000 00000000 00000503 +basic_cpuid[16]=07280203 00000000 00000000 00000503 +basic_cpuid[17]=07280203 00000000 00000000 00000503 +basic_cpuid[18]=07280203 00000000 00000000 00000503 +basic_cpuid[19]=07280203 00000000 00000000 00000503 +basic_cpuid[20]=07280203 00000000 00000000 00000503 +basic_cpuid[21]=07280203 00000000 00000000 00000503 +basic_cpuid[22]=07280203 00000000 00000000 00000503 +basic_cpuid[23]=07280203 00000000 00000000 00000503 +basic_cpuid[24]=07280203 00000000 00000000 00000503 +basic_cpuid[25]=07280203 00000000 00000000 00000503 +basic_cpuid[26]=07280203 00000000 00000000 00000503 +basic_cpuid[27]=07280203 00000000 00000000 00000503 +basic_cpuid[28]=07280203 00000000 00000000 00000503 +basic_cpuid[29]=07280203 00000000 00000000 00000503 +basic_cpuid[30]=07280203 00000000 00000000 00000503 +basic_cpuid[31]=07280203 00000000 00000000 00000503 +ext_cpuid[0]=80000008 00000000 00000000 00000000 +ext_cpuid[1]=00000000 00000000 00000001 20100800 +ext_cpuid[2]=20202020 20202020 746e4920 52286c65 +ext_cpuid[3]=74412029 54286d6f 4320294d 44205550 +ext_cpuid[4]=20353234 20402020 30382e31 007a4847 +ext_cpuid[5]=00000000 00000000 00000000 00000000 +ext_cpuid[6]=00000000 00000000 02006040 00000000 +ext_cpuid[7]=00000000 00000000 00000000 00000000 +ext_cpuid[8]=00003024 00000000 00000000 00000000 +ext_cpuid[9]=07280203 00000000 00000000 00000503 +ext_cpuid[10]=07280203 00000000 00000000 00000503 +ext_cpuid[11]=07280203 00000000 00000000 00000503 +ext_cpuid[12]=07280203 00000000 00000000 00000503 +ext_cpuid[13]=07280203 00000000 00000000 00000503 +ext_cpuid[14]=07280203 00000000 00000000 00000503 +ext_cpuid[15]=07280203 00000000 00000000 00000503 +ext_cpuid[16]=07280203 00000000 00000000 00000503 +ext_cpuid[17]=07280203 00000000 00000000 00000503 +ext_cpuid[18]=07280203 00000000 00000000 00000503 +ext_cpuid[19]=07280203 00000000 00000000 00000503 +ext_cpuid[20]=07280203 00000000 00000000 00000503 +ext_cpuid[21]=07280203 00000000 00000000 00000503 +ext_cpuid[22]=07280203 00000000 00000000 00000503 +ext_cpuid[23]=07280203 00000000 00000000 00000503 +ext_cpuid[24]=07280203 00000000 00000000 00000503 +ext_cpuid[25]=07280203 00000000 00000000 00000503 +ext_cpuid[26]=07280203 00000000 00000000 00000503 +ext_cpuid[27]=07280203 00000000 00000000 00000503 +ext_cpuid[28]=07280203 00000000 00000000 00000503 +ext_cpuid[29]=07280203 00000000 00000000 00000503 +ext_cpuid[30]=07280203 00000000 00000000 00000503 +ext_cpuid[31]=07280203 00000000 00000000 00000503 +intel_fn4[0]=00004121 0140003f 0000003f 00000001 +intel_fn4[1]=00004122 01c0003f 0000003f 00000001 +intel_fn4[2]=00004143 01c0003f 000003ff 00000001 +intel_fn4[3]=00000000 00000000 00000000 00000000 +intel_fn11[0]=07280203 00000000 00000000 00000503 +intel_fn11[1]=07280203 00000000 00000000 00000503 +intel_fn11[2]=07280203 00000000 00000000 00000503 +intel_fn11[3]=07280203 00000000 00000000 00000503 +-------------------------------------------------------------------------------- +6 +12 +10 +6 +28 +1 +2 +24 +32 +512 +-1 +6 +8 +-1 +64 +64 +-1 +128 (non-authoritative) +Atom (Pineview) +fpu vme de pse tsc msr pae mce cx8 apic mtrr sep pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni dts64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm syscall xd movbe lm lahf_lm +--------------------------------------------------------------------------------