authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-07-22 21:51:12+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-30 06:36:41+02:00
log5b80900a5d944c17f19f6e36be43076baf90a5f6
treef191771581c78395e3ed14c8da9a3f668522c93f
parent0b9f5e2549cf8a5df8fb67ebbd2dde02a6a3d0af
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.zig.system: update aarch64 and powerpc cpu detection for LLVM 21


2 files changed, 3 insertions(+), 0 deletions(-)

lib/std/zig/system/arm.zig+2
......@@ -89,6 +89,7 @@ pub const cpu_models = struct {
8989 E{ .part = 0xd88, .m64 = &A64.cortex_a520ae },
9090 E{ .part = 0xd89, .m64 = &A64.cortex_a720ae },
9191 E{ .part = 0xd8e, .m64 = &A64.neoverse_n3 },
92 E{ .part = 0xd8f, .m64 = &A64.cortex_a320 },
9293 };
9394 // implementer = 0x42
9495 const Broadcom = [_]E{
......@@ -113,6 +114,7 @@ pub const cpu_models = struct {
113114 // implementer = 0x4e
114115 const Nvidia = [_]E{
115116 E{ .part = 0x004, .m64 = &A64.carmel },
117 E{ .part = 0x010, .m64 = &A64.olympus },
116118 };
117119 // implementer = 0x50
118120 const Ampere = [_]E{
lib/std/zig/system/linux.zig+1
......@@ -143,6 +143,7 @@ const PowerpcCpuinfoImpl = struct {
143143 .{ "POWER8NVL", &Target.powerpc.cpu.pwr8 },
144144 .{ "POWER9", &Target.powerpc.cpu.pwr9 },
145145 .{ "POWER10", &Target.powerpc.cpu.pwr10 },
146 .{ "POWER11", &Target.powerpc.cpu.pwr11 },
146147 };
147148
148149 fn line_hook(self: *PowerpcCpuinfoImpl, key: []const u8, value: []const u8) !bool {