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 144e528dc7
commit baf3bb9a86
No known key found for this signature in database

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
}
}