From b56c08c4c5b1dab14d82e213ca22c728ae906f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 3 Aug 2026 21:28:37 +0200 Subject: [PATCH] std.zig.system.x86: add znver6 CPU detection --- lib/std/zig/system/x86.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/std/zig/system/x86.zig b/lib/std/zig/system/x86.zig index 0b535c7e810b149d4614c6035f835e2ac15aa710..d50f132cac173f5bc6bcc7ea3f49672f80644034 100644 --- a/lib/std/zig/system/x86.zig +++ b/lib/std/zig/system/x86.zig @@ -209,7 +209,10 @@ fn detectAmdProcessor(cpu: *const Target.Cpu, family: u32, model: u32) ?*const T 0x10...0x1f, 0x60...0x6f, 0x70...0x7f, 0xa0...0xaf => &Target.x86.cpu.znver4, else => &Target.x86.cpu.znver3, }, - 26 => &Target.x86.cpu.znver5, + 26 => switch (model) { + 0x50...0x5f, 0x80...0xcf, 0xd8...0xe7 => &Target.x86.cpu.znver6, + else => &Target.x86.cpu.znver5, + }, else => null, }; } -- 2.54.0