From 143767a05bae7247733b6f03b56d603080a83df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 5 Aug 2026 13:08:30 +0200 Subject: [PATCH] std.Target: bump baseline CPU for powerpc64-(freebsd,linux) to pwr8 Linux and FreeBSD usage on PowerPC broadly splits into two camps: * Old Apple/Amiga hardware * Modern IBM POWER hardware In the first camp, we're talking hardware like the PowerPC 970 (2002) or even older in some cases. In the second camp, most hardware still in use today is POWER8 (2014) or newer. I think it's safe to say that the first camp is in the minority, especially since the open hardware platform that Raptor Computing Systems sells is based on POWER9, and I expect that to be more interesting to PowerPC enthusiasts nowadays. Also, compiler support for the old hardware is poorly maintained. IBM themselves only seem to care to support the newer POWER processors in the Linux kernel as well as GCC and LLVM. We keep running into LLVM bugs when targeting those older CPUs. --- lib/std/Target.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 29440d64af025266aa10b860ffaeb69e9917c591..6ab6f2c81b1d8de3edee4c53bd7097a3cd3ae123 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -2081,6 +2081,7 @@ pub const Cpu = struct { else => generic(arch), }, .powerpc64 => switch (os.tag) { + .linux, .freebsd => &powerpc.cpu.pwr8, .openbsd => &powerpc.cpu.pwr9, else => generic(arch), }, -- 2.54.0