Skip to content

Commit

Permalink
cpuinfo: Cover all execution paths
Browse files Browse the repository at this point in the history
Ensures this always returns valid return values.

Extremely unlikely to have ever been hit, but this makes it
well-defined.
  • Loading branch information
lioncash committed Dec 19, 2024
1 parent 48aa015 commit c598b98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpuinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ bool CPUInfo::Has(RISCVExtension extension) const {
case RISCVExtension::Zawrs:
return (features0 & RISCV_HWPROBE_EXT_ZAWRS) != 0;
}

return false;
}

uint32_t CPUInfo::GetVlenb() const {
Expand Down

0 comments on commit c598b98

Please sign in to comment.