Skip to content

Commit

Permalink
vext feature: fix handling of undefined vlen
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed May 15, 2024
1 parent 50c3294 commit ce93048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlonmcu/feature/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ def embedded(self):

def get_target_config(self, target):
# TODO: enforce llvm toolchain using add_compile_config and CompileFeature?
assert is_power_of_two(self.vlen)
assert self.vlen >= VEXT_MIN_ALLOWED_VLEN
assert self.vlen is None or is_power_of_two(self.vlen)
assert self.vlen is None or self.vlen >= VEXT_MIN_ALLOWED_VLEN
return filter_none(
{
f"{target}.enable_vext": True,
Expand Down

0 comments on commit ce93048

Please sign in to comment.