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

This commit is contained in:
Alex Rønne Petersen 2025-07-22 21:51:12 +02:00
parent 0b9f5e2549
commit 5b80900a5d
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View File

@ -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{

View File

@ -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 {