| ... | @@ -1670,9 +1670,15 @@ pub const Cpu = struct { | ... | @@ -1670,9 +1670,15 @@ pub const Cpu = struct { |
| 1670 | } | 1670 | } |
| 1671 | | 1671 | |
| 1672 | pub fn baseline(arch: Arch, os: Os) *const Model { | 1672 | pub fn baseline(arch: Arch, os: Os) *const Model { |
| 1673 | _ = os; | | |
| 1674 | return switch (arch) { | 1673 | return switch (arch) { |
| 1675 | .arm, .armeb, .thumb, .thumbeb => &arm.cpu.baseline, | 1674 | .arm, .armeb, .thumb, .thumbeb => &arm.cpu.baseline, |
| | 1675 | .aarch64 => switch (os.tag) { |
| | 1676 | .bridgeos, .driverkit, .macos => &aarch64.cpu.apple_m1, |
| | 1677 | .ios, .tvos => &aarch64.cpu.apple_a7, |
| | 1678 | .visionos => &aarch64.cpu.apple_m2, |
| | 1679 | .watchos => &aarch64.cpu.apple_s4, |
| | 1680 | else => generic(arch), |
| | 1681 | }, |
| 1676 | .hexagon => &hexagon.cpu.hexagonv60, // gcc/clang do not have a generic hexagon model. | 1682 | .hexagon => &hexagon.cpu.hexagonv60, // gcc/clang do not have a generic hexagon model. |
| 1677 | .riscv32 => &riscv.cpu.baseline_rv32, | 1683 | .riscv32 => &riscv.cpu.baseline_rv32, |
| 1678 | .riscv64 => &riscv.cpu.baseline_rv64, | 1684 | .riscv64 => &riscv.cpu.baseline_rv64, |