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

This commit is contained in:
Alex Rønne Petersen
2026-01-20 23:15:44 +01:00
parent a24eee8390
commit c46a8e0d2c
+15 -1
View File
@@ -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
}
}