Skip to content

Commit a5ff6df

Browse files
authored
Merge pull request #258 from maajidkhann/fix_cpuinfo_sve_bug
Fixes the cpuinfo_get_max_arm_sve_length API bug on NON-SVE supported hardware.
2 parents fa1c679 + f0d67c6 commit a5ff6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arm/linux/aarch64-isa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void cpuinfo_arm64_linux_decode_isa_from_proc_cpuinfo(
167167

168168
int ret = prctl(PR_SVE_GET_VL);
169169
if (ret < 0) {
170-
cpuinfo_log_error("prctl(PR_SVE_GET_VL) failed");
170+
cpuinfo_log_warning("No SVE support on this machine");
171171
isa->svelen = 0; // Assume no SVE support if the call fails
172172
} else {
173173
// Mask out the SVE vector length bits

0 commit comments

Comments
 (0)