Skip to content

Commit dff2616

Browse files
authored
Merge pull request #264 from gonnet/sme-for-mach
2 parents 1e83a2f + ff27821 commit dff2616

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/arm/mach/init.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,16 @@ void cpuinfo_arm_mach_init(void) {
399399
cpuinfo_isa.i8mm = true;
400400
}
401401

402+
const uint32_t has_feat_sme = get_sys_info_by_name("hw.optional.arm.FEAT_SME");
403+
if (has_feat_sme != 0) {
404+
cpuinfo_isa.sme = true;
405+
}
406+
407+
const uint32_t has_feat_sme2 = get_sys_info_by_name("hw.optional.arm.FEAT_SME2");
408+
if (has_feat_sme2 != 0) {
409+
cpuinfo_isa.sme2 = true;
410+
}
411+
402412
uint32_t num_clusters = 1;
403413
for (uint32_t i = 0; i < mach_topology.cores; i++) {
404414
cores[i] = (struct cpuinfo_core){

0 commit comments

Comments
 (0)