private void Corei7_9700(FeatureCheck x86cpu, int apic, int smt, int core) { CheckSignature(0x906ED); x86cpu.Check("standard", 0x7FFAFBFF, 0xBFEBFBFF, 0x029C6FBF, 0x40000000, 0xBC000400); x86cpu.Check("procstate", 0x0000000F); x86cpu.Check("extended", 0x00000121, 0x2C100800); x86cpu.AssertOnDifference(); Assert.That(x86cpu.Cpu.Description, Is.EqualTo("Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz")); Assert.That(x86cpu.Cpu.Topology.ApicId, Is.EqualTo(apic)); Assert.That(x86cpu.Cpu.Topology.CoreTopology.Count, Is.EqualTo(3)); x86cpu.AssertCoreTopo(CpuTopoType.Smt, smt, 1); x86cpu.AssertCoreTopo(CpuTopoType.Core, core, 7); x86cpu.AssertCoreTopo(CpuTopoType.Package, 0, -1 << 4); }
private void Corei7_6600U_2p1c_All(FeatureCheck x86cpu, int apic, int core, int pkg) { CheckSignature(0x406E3); // Note that by running in VMWare, the feature flags are quite different. x86cpu.Check("standard", 0XF6FA3203, 0x0F8BFBFF, 0x009C27AB, 0x00000000, 0xBC000000); x86cpu.Check("procstate", 0x0000000B); x86cpu.Check("extended", 0x00000121, 0x2C100000); x86cpu.AssertOnDifference(); Assert.That(x86cpu.Cpu.Description, Is.EqualTo("Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz")); Assert.That(x86cpu.Cpu.Topology.ApicId, Is.EqualTo(apic)); Assert.That(x86cpu.Cpu.Topology.CoreTopology.Count, Is.EqualTo(2)); x86cpu.AssertCoreTopo(CpuTopoType.Core, core, 0); // Could also be 1, but HTT=0 implies 1 core, so this is zero. x86cpu.AssertCoreTopo(CpuTopoType.Package, pkg, -1); // Could also be -1 << 1, but HTT=0, implies 1 core. }
private void Corei7_6700K_vmware(FeatureCheck x86cpu, int apic, int smt, int core, int pkg) { CheckSignature(0x506E3); // Note that by running in VMWare, the feature flags are quite different. x86cpu.Check("standard", 0xF7FA3203, 0x1F8BBBFF, 0x009C27AB, 0x00000000, 0xBC000400); x86cpu.Check("procstate", 0x0000000B); x86cpu.Check("extended", 0x00000121, 0x2C100000); x86cpu.AssertOnDifference(); Assert.That(x86cpu.Cpu.Description, Is.EqualTo("Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz")); Assert.That(x86cpu.Cpu.Topology.ApicId, Is.EqualTo(apic)); Assert.That(x86cpu.Cpu.Topology.CoreTopology.Count, Is.EqualTo(3)); x86cpu.AssertCoreTopo(CpuTopoType.Smt, smt, 0); x86cpu.AssertCoreTopo(CpuTopoType.Core, core, 1); x86cpu.AssertCoreTopo(CpuTopoType.Package, pkg, -1 << 1); }