Commit 0bb9db3998

Alex Rønne Petersen <alex@alexrp.com>
2024-08-08 23:14:00
std.Target: Add comments explaining the baseline CPUs for hexagon/s390x.
1 parent 7f7008b
Changed files (1)
lib
lib/std/Target.zig
@@ -1548,12 +1548,12 @@ pub const Cpu = struct {
         pub fn baseline(arch: Arch) *const Model {
             return switch (arch) {
                 .arm, .armeb, .thumb, .thumbeb => &arm.cpu.baseline,
-                .hexagon => &hexagon.cpu.hexagonv60,
+                .hexagon => &hexagon.cpu.hexagonv60, // gcc/clang do not have a generic hexagon model.
                 .riscv32 => &riscv.cpu.baseline_rv32,
                 .riscv64 => &riscv.cpu.baseline_rv64,
                 .x86 => &x86.cpu.pentium4,
                 .nvptx, .nvptx64 => &nvptx.cpu.sm_20,
-                .s390x => &s390x.cpu.arch8,
+                .s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
                 .sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
                 .loongarch64 => &loongarch.cpu.loongarch64,