authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-20 23:15:44+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-22 15:31:57+02:00
logadc3e6001eedd36652f6b9170258134ea4621ee4
treeb2f75c9f434e0063693728dd11f8e6e9ecb8d540
parentec0d6201c2bfe2765b986488c48da266565a4f68
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.zig.system.x86: detect Diamonds Rapids, Wildcat Lake, and Nova Lake


1 files changed, 15 insertions(+), 1 deletions(-)

lib/std/zig/system/x86.zig+15-1
......@@ -232,7 +232,7 @@ fn detectIntelProcessor(cpu: *Target.Cpu, family: u32, model: u32, brand_id: u32
232232 cpu.model = &Target.x86.cpu.lunarlake;
233233 return;
234234 },
235 0xcc => {
235 0xcc, 0xd5 => {
236236 cpu.model = &Target.x86.cpu.pantherlake;
237237 return;
238238 },
......@@ -307,6 +307,20 @@ fn detectIntelProcessor(cpu: *Target.Cpu, family: u32, model: u32, brand_id: u32
307307 cpu.model = &Target.x86.cpu.pentium4;
308308 return;
309309 },
310 18 => switch (model) {
311 0x01, 0x03 => {
312 cpu.model = &Target.x86.cpu.novalake;
313 return;
314 },
315 else => return, // Unknown CPU Model
316 },
317 19 => switch (model) {
318 0x01 => {
319 cpu.model = &Target.x86.cpu.diamondrapids;
320 return;
321 },
322 else => return, // Unknown CPU Model
323 },
310324 else => return, // Unknown CPU Model
311325 }
312326}