s390x/DYNAMIC_ARCH: define a HW_CAP flag to support slightly older glibc versions

Enable building DYNAMIC_ARCH support with older versions of glibc that
do not know about the hwcap flag HWCAP_S390_VXE yet.

Signed-off-by: Marius Hillenbrand <mhillen@linux.ibm.com>
This commit is contained in:
Marius Hillenbrand 2020-09-07 17:13:03 +02:00
parent 4f34bcfb5e
commit a55fe06f25
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ char* gotoblas_corename(void) {
return corename[0];
}
#ifndef HWCAP_S390_VXE
#define HWCAP_S390_VXE 8192
#endif
/**
* Detect the fitting set of kernels by retrieving the CPU features supported by
* OS from the auxiliary value AT_HWCAP and choosing the set of kernels