Remove s390 part of all HWCAP defines, just to make them shorter and easier to handle. The namespace is anyway per architecture. This is similar to what arm64 has.
···888888 * Bit 22: extended-translation facility 3 is installed889889 * Bit 30: extended-translation facility 3 enhancement facility890890 * These get translated to:891891- * HWCAP_S390_ESAN3 bit 0, HWCAP_S390_ZARCH bit 1,892892- * HWCAP_S390_STFLE bit 2, HWCAP_S390_MSA bit 3,893893- * HWCAP_S390_LDISP bit 4, HWCAP_S390_EIMM bit 5 and894894- * HWCAP_S390_ETF3EH bit 8 (22 && 30).891891+ * HWCAP_ESAN3 bit 0, HWCAP_ZARCH bit 1,892892+ * HWCAP_STFLE bit 2, HWCAP_MSA bit 3,893893+ * HWCAP_LDISP bit 4, HWCAP_EIMM bit 5 and894894+ * HWCAP_ETF3EH bit 8 (22 && 30).895895 */896896 for (i = 0; i < 6; i++)897897 if (test_facility(stfl_bits[i]))898898 elf_hwcap |= 1UL << i;899899900900 if (test_facility(22) && test_facility(30))901901- elf_hwcap |= HWCAP_S390_ETF3EH;901901+ elf_hwcap |= HWCAP_ETF3EH;902902903903 /*904904 * Check for additional facilities with store-facility-list-extended.···911911 * Bit 42: decimal floating point facility is installed912912 * Bit 44: perform floating point operation facility is installed913913 * translated to:914914- * HWCAP_S390_DFP bit 6 (42 && 44).914914+ * HWCAP_DFP bit 6 (42 && 44).915915 */916916 if ((elf_hwcap & (1UL << 2)) && test_facility(42) && test_facility(44))917917- elf_hwcap |= HWCAP_S390_DFP;917917+ elf_hwcap |= HWCAP_DFP;918918919919 /*920920- * Huge page support HWCAP_S390_HPAGE is bit 7.920920+ * Huge page support HWCAP_HPAGE is bit 7.921921 */922922 if (MACHINE_HAS_EDAT1)923923- elf_hwcap |= HWCAP_S390_HPAGE;923923+ elf_hwcap |= HWCAP_HPAGE;924924925925 /*926926 * 64-bit register support for 31-bit processes927927- * HWCAP_S390_HIGH_GPRS is bit 9.927927+ * HWCAP_HIGH_GPRS is bit 9.928928 */929929- elf_hwcap |= HWCAP_S390_HIGH_GPRS;929929+ elf_hwcap |= HWCAP_HIGH_GPRS;930930931931 /*932932- * Transactional execution support HWCAP_S390_TE is bit 10.932932+ * Transactional execution support HWCAP_TE is bit 10.933933 */934934 if (MACHINE_HAS_TE)935935- elf_hwcap |= HWCAP_S390_TE;935935+ elf_hwcap |= HWCAP_TE;936936937937 /*938938- * Vector extension HWCAP_S390_VXRS is bit 11. The Vector extension938938+ * Vector extension HWCAP_VXRS is bit 11. The Vector extension939939 * can be disabled with the "novx" parameter. Use MACHINE_HAS_VX940940 * instead of facility bit 129.941941 */942942 if (MACHINE_HAS_VX) {943943- elf_hwcap |= HWCAP_S390_VXRS;943943+ elf_hwcap |= HWCAP_VXRS;944944 if (test_facility(134))945945- elf_hwcap |= HWCAP_S390_VXRS_BCD;945945+ elf_hwcap |= HWCAP_VXRS_BCD;946946 if (test_facility(135))947947- elf_hwcap |= HWCAP_S390_VXRS_EXT;947947+ elf_hwcap |= HWCAP_VXRS_EXT;948948 if (test_facility(148))949949- elf_hwcap |= HWCAP_S390_VXRS_EXT2;949949+ elf_hwcap |= HWCAP_VXRS_EXT2;950950 if (test_facility(152))951951- elf_hwcap |= HWCAP_S390_VXRS_PDE;951951+ elf_hwcap |= HWCAP_VXRS_PDE;952952 if (test_facility(192))953953- elf_hwcap |= HWCAP_S390_VXRS_PDE2;953953+ elf_hwcap |= HWCAP_VXRS_PDE2;954954 }955955 if (test_facility(150))956956- elf_hwcap |= HWCAP_S390_SORT;956956+ elf_hwcap |= HWCAP_SORT;957957 if (test_facility(151))958958- elf_hwcap |= HWCAP_S390_DFLT;958958+ elf_hwcap |= HWCAP_DFLT;959959 if (test_facility(165))960960- elf_hwcap |= HWCAP_S390_NNPA;960960+ elf_hwcap |= HWCAP_NNPA;961961962962 /*963963- * Guarded storage support HWCAP_S390_GS is bit 12.963963+ * Guarded storage support HWCAP_GS is bit 12.964964 */965965 if (MACHINE_HAS_GS)966966- elf_hwcap |= HWCAP_S390_GS;966966+ elf_hwcap |= HWCAP_GS;967967 if (MACHINE_HAS_PCI_MIO)968968- elf_hwcap |= HWCAP_S390_PCI_MIO;968968+ elf_hwcap |= HWCAP_PCI_MIO;969969970970 get_cpu_id(&cpu_id);971971 add_device_randomness(&cpu_id, sizeof(cpu_id));