authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-06 23:44:12+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-07 01:29:52+02:00
loge5f752f84c66a32122dcf514851852c75afe8235
treeb48cabf25c639c59b3cda5253efcf15f1a4fd608
parent4e311163dbe3a56f1cc5519a59f8434b75599b86
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: add HWCAP constants for mips


1 files changed, 17 insertions(+), 0 deletions(-)

lib/std/os/linux.zig+17
...@@ -811,6 +811,23 @@ pub const HWCAP = switch (native_arch) {...@@ -811,6 +811,23 @@ pub const HWCAP = switch (native_arch) {
811 pub const SCQ = 1 << 15;811 pub const SCQ = 1 << 15;
812 pub const LAM_BH = 1 << 16;812 pub const LAM_BH = 1 << 16;
813 },813 },
814 .mips, .mipsel, .mips64, .mips64el => struct {
815 pub const R6 = 1 << 0;
816 pub const MSA = 1 << 1;
817 pub const CRC32 = 1 << 2;
818 pub const MIPS16 = 1 << 3;
819 pub const MDMX = 1 << 4;
820 pub const MIPS3D = 1 << 5;
821 pub const SMARTMIPS = 1 << 6;
822 pub const DSP = 1 << 7;
823 pub const DSP2 = 1 << 8;
824 pub const DSP3 = 1 << 9;
825 pub const MIPS16E2 = 1 << 10;
826 pub const LOONGSON_MMI = 1 << 11;
827 pub const LOONGSON_EXT = 1 << 12;
828 pub const LOONGSON_EXT2 = 1 << 13;
829 pub const LOONGSON_CPUCFG = 1 << 14;
830 },
814 else => struct {},831 else => struct {},
815};832};
816833