mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-31 22:10:34 +03:00 
			
		
		
		
	The HWCAP_S390_VX flag in hwcap field of auxiliary vector indicates if the vector facility is available and the kernel is aware of it. This can be tested with LD_SHOW_AUXV=1 <prog>. Currently it does not show te, because it was not incremented by commit "S/390: Add hwcap value for transactional execution.". Thus _DL_HWCAP_COUNT is incremented by two. ChangeLog: * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag. * sysdeps/s390/dl-procinfo.h: Add vector capability. * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* Defines for bits in AT_HWCAP.
 | |
|    Copyright (C) 2012-2015 Free Software Foundation, Inc.
 | |
|    This file is part of the GNU C Library.
 | |
| 
 | |
|    The GNU C Library is free software; you can redistribute it and/or
 | |
|    modify it under the terms of the GNU Lesser General Public
 | |
|    License as published by the Free Software Foundation; either
 | |
|    version 2.1 of the License, or (at your option) any later version.
 | |
| 
 | |
|    The GNU C Library is distributed in the hope that it will be useful,
 | |
|    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | |
|    Lesser General Public License for more details.
 | |
| 
 | |
|    You should have received a copy of the GNU Lesser General Public
 | |
|    License along with the GNU C Library; if not, see
 | |
|    <http://www.gnu.org/licenses/>.  */
 | |
| 
 | |
| #ifndef _SYS_AUXV_H
 | |
| # error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
 | |
| #endif
 | |
| 
 | |
| /*
 | |
|  * The following must match the kernels asm/elf.h.
 | |
|  * Note that these are *not* the same as the STORE FACILITY LIST bits.
 | |
|  */
 | |
| #define HWCAP_S390_ESAN3        1
 | |
| #define HWCAP_S390_ZARCH        2
 | |
| #define HWCAP_S390_STFLE        4
 | |
| #define HWCAP_S390_MSA          8
 | |
| #define HWCAP_S390_LDISP        16
 | |
| #define HWCAP_S390_EIMM         32
 | |
| #define HWCAP_S390_DFP          64
 | |
| #define HWCAP_S390_HPAGE        128
 | |
| #define HWCAP_S390_ETF3EH       256
 | |
| #define HWCAP_S390_HIGH_GPRS    512
 | |
| #define HWCAP_S390_TE           1024
 | |
| #define HWCAP_S390_VX           2048
 |