mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
std.zig.system.x86: detect Diamonds Rapids, Wildcat Lake, and Nova Lake
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user