| ... | @@ -1099,8 +1099,19 @@ pub const Cpu = struct { | ... | @@ -1099,8 +1099,19 @@ pub const Cpu = struct { |
| 1099 | } | 1099 | } |
| 1100 | | 1100 | |
| 1101 | pub inline fn isMIPS(arch: Arch) bool { | 1101 | pub inline fn isMIPS(arch: Arch) bool { |
| | 1102 | return arch.isMIPS32() or arch.isMIPS64(); |
| | 1103 | } |
| | 1104 | |
| | 1105 | pub inline fn isMIPS32(arch: Arch) bool { |
| | 1106 | return switch (arch) { |
| | 1107 | .mips, .mipsel => true, |
| | 1108 | else => false, |
| | 1109 | }; |
| | 1110 | } |
| | 1111 | |
| | 1112 | pub inline fn isMIPS64(arch: Arch) bool { |
| 1102 | return switch (arch) { | 1113 | return switch (arch) { |
| 1103 | .mips, .mipsel, .mips64, .mips64el => true, | 1114 | .mips64, .mips64el => true, |
| 1104 | else => false, | 1115 | else => false, |
| 1105 | }; | 1116 | }; |
| 1106 | } | 1117 | } |