From c46a8e0d2c79e59e21ee207e849f8c4481cdd13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 20 Jan 2026 23:15:44 +0100 Subject: [PATCH] std.zig.system.x86: detect Diamonds Rapids, Wildcat Lake, and Nova Lake --- lib/std/zig/system/x86.zig | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/std/zig/system/x86.zig b/lib/std/zig/system/x86.zig index 91529b8168..66d8034c4f 100644 --- a/lib/std/zig/system/x86.zig +++ b/lib/std/zig/system/x86.zig @@ -232,7 +232,7 @@ fn detectIntelProcessor(cpu: *Target.Cpu, family: u32, model: u32, brand_id: u32 cpu.model = &Target.x86.cpu.lunarlake; return; }, - 0xcc => { + 0xcc, 0xd5 => { cpu.model = &Target.x86.cpu.pantherlake; return; }, @@ -307,6 +307,20 @@ fn detectIntelProcessor(cpu: *Target.Cpu, family: u32, model: u32, brand_id: u32 cpu.model = &Target.x86.cpu.pentium4; return; }, + 18 => switch (model) { + 0x01, 0x03 => { + cpu.model = &Target.x86.cpu.novalake; + return; + }, + else => return, // Unknown CPU Model + }, + 19 => switch (model) { + 0x01 => { + cpu.model = &Target.x86.cpu.diamondrapids; + return; + }, + else => return, // Unknown CPU Model + }, else => return, // Unknown CPU Model } }