From 5b80900a5d944c17f19f6e36be43076baf90a5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 22 Jul 2025 21:51:12 +0200 Subject: [PATCH] std.zig.system: update aarch64 and powerpc cpu detection for LLVM 21 --- lib/std/zig/system/arm.zig | 2 ++ lib/std/zig/system/linux.zig | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/std/zig/system/arm.zig b/lib/std/zig/system/arm.zig index c3e27f65cf..95f8f8aebc 100644 --- a/lib/std/zig/system/arm.zig +++ b/lib/std/zig/system/arm.zig @@ -89,6 +89,7 @@ pub const cpu_models = struct { E{ .part = 0xd88, .m64 = &A64.cortex_a520ae }, E{ .part = 0xd89, .m64 = &A64.cortex_a720ae }, E{ .part = 0xd8e, .m64 = &A64.neoverse_n3 }, + E{ .part = 0xd8f, .m64 = &A64.cortex_a320 }, }; // implementer = 0x42 const Broadcom = [_]E{ @@ -113,6 +114,7 @@ pub const cpu_models = struct { // implementer = 0x4e const Nvidia = [_]E{ E{ .part = 0x004, .m64 = &A64.carmel }, + E{ .part = 0x010, .m64 = &A64.olympus }, }; // implementer = 0x50 const Ampere = [_]E{ diff --git a/lib/std/zig/system/linux.zig b/lib/std/zig/system/linux.zig index df70e71f5b..ac68791a16 100644 --- a/lib/std/zig/system/linux.zig +++ b/lib/std/zig/system/linux.zig @@ -143,6 +143,7 @@ const PowerpcCpuinfoImpl = struct { .{ "POWER8NVL", &Target.powerpc.cpu.pwr8 }, .{ "POWER9", &Target.powerpc.cpu.pwr9 }, .{ "POWER10", &Target.powerpc.cpu.pwr10 }, + .{ "POWER11", &Target.powerpc.cpu.pwr11 }, }; fn line_hook(self: *PowerpcCpuinfoImpl, key: []const u8, value: []const u8) !bool {