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

std.os.linux: add HWCAP constants for s390x


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

lib/std/os/linux.zig+25
......@@ -828,6 +828,31 @@ pub const HWCAP = switch (native_arch) {
828828 pub const LOONGSON_EXT2 = 1 << 13;
829829 pub const LOONGSON_CPUCFG = 1 << 14;
830830 },
831 .s390x => struct {
832 pub const ESAN3 = 1 << 0;
833 pub const ZARCH = 1 << 1;
834 pub const STFLE = 1 << 2;
835 pub const MSA = 1 << 3;
836 pub const LDISP = 1 << 4;
837 pub const EIMM = 1 << 5;
838 pub const DFP = 1 << 6;
839 pub const HPAGE = 1 << 7;
840 pub const ETF3EH = 1 << 8;
841 pub const HIGH_GPRS = 1 << 9;
842 pub const TE = 1 << 10;
843 pub const VXRS = 1 << 11;
844 pub const VXRS_BCD = 1 << 12;
845 pub const VXRS_EXT = 1 << 13;
846 pub const GS = 1 << 14;
847 pub const VXRS_EXT2 = 1 << 15;
848 pub const VXRS_PDE = 1 << 16;
849 pub const SORT = 1 << 17;
850 pub const DFLT = 1 << 18;
851 pub const VXRS_PDE2 = 1 << 19;
852 pub const NNPA = 1 << 20;
853 pub const PCI_MIO = 1 << 21;
854 pub const SIE = 1 << 22;
855 },
831856 else => struct {},
832857};
833858