We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc4088 commit 8b224b8Copy full SHA for 8b224b8
include/asm-sparc64/elf.h
@@ -70,6 +70,7 @@
70
#define HWCAP_SPARC_V9 16
71
#define HWCAP_SPARC_ULTRA3 32
72
#define HWCAP_SPARC_BLKINIT 64
73
+#define HWCAP_SPARC_N2 128
74
75
/*
76
* These are used to set parameters in the core dumps.
@@ -155,8 +156,13 @@ static inline unsigned int sparc64_elf_hwcap(void)
155
156
157
if (tlb_type == cheetah || tlb_type == cheetah_plus)
158
cap |= HWCAP_SPARC_ULTRA3;
- else if (tlb_type == hypervisor)
159
- cap |= HWCAP_SPARC_BLKINIT;
+ else if (tlb_type == hypervisor) {
160
+ if (sun4v_chip_type == SUN4V_CHIP_NIAGARA1 ||
161
+ sun4v_chip_type == SUN4V_CHIP_NIAGARA2)
162
+ cap |= HWCAP_SPARC_BLKINIT;
163
+ if (sun4v_chip_type == SUN4V_CHIP_NIAGARA2)
164
+ cap |= HWCAP_SPARC_N2;
165
+ }
166
167
return cap;
168
}
0 commit comments