mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 03:44:46 +01:00
std.zig.system.x86: detect Diamonds Rapids, Wildcat Lake, and Nova Lake
This commit is contained in:
parent
144e528dc7
commit
baf3bb9a86
1 changed files with 15 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue