Skip to content

Commit

Permalink
Merge pull request #258 from maajidkhann/fix_cpuinfo_sve_bug
Browse files Browse the repository at this point in the history
Fixes the cpuinfo_get_max_arm_sve_length API bug on NON-SVE supported hardware.
  • Loading branch information
digantdesai authored Sep 11, 2024
2 parents fa1c679 + f0d67c6 commit a5ff6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arm/linux/aarch64-isa.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void cpuinfo_arm64_linux_decode_isa_from_proc_cpuinfo(

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

0 comments on commit a5ff6df

Please sign in to comment.