authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-03 21:28:37+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-07 00:30:52+02:00
logb56c08c4c5b1dab14d82e213ca22c728ae906f76
treebe7752c42f52f2d4c3bebd43c474d175dbb1d8b8
parent0e4a98d969e865cf2d0ac40f17562a8612493e59
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.zig.system.x86: add znver6 CPU detection


1 files changed, 4 insertions(+), 1 deletions(-)

lib/std/zig/system/x86.zig+4-1
...@@ -209,7 +209,10 @@ fn detectAmdProcessor(cpu: *const Target.Cpu, family: u32, model: u32) ?*const T...@@ -209,7 +209,10 @@ fn detectAmdProcessor(cpu: *const Target.Cpu, family: u32, model: u32) ?*const T
209 0x10...0x1f, 0x60...0x6f, 0x70...0x7f, 0xa0...0xaf => &Target.x86.cpu.znver4,209 0x10...0x1f, 0x60...0x6f, 0x70...0x7f, 0xa0...0xaf => &Target.x86.cpu.znver4,
210 else => &Target.x86.cpu.znver3,210 else => &Target.x86.cpu.znver3,
211 },211 },
212 26 => &Target.x86.cpu.znver5,212 26 => switch (model) {
213 0x50...0x5f, 0x80...0xcf, 0xd8...0xe7 => &Target.x86.cpu.znver6,
214 else => &Target.x86.cpu.znver5,
215 },
213 else => null,216 else => null,
214 };217 };
215}218}