Skip to content

Commit

Permalink
fix cv32e40p target
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Nov 15, 2024
1 parent b132ee3 commit 1f9abf9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mlonmcu/target/riscv/cv32e40p.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def exec(self, program, *args, cwd=os.getcwd(), **kwargs):
cwd=cwd,
**kwargs,
)
return ret
return ret, []

def parse_exit(self, out):
exit_code = super().parse_exit(out)
Expand Down Expand Up @@ -214,11 +214,13 @@ def _handle_exit(code, out=None):
# TODO: re-enable sim MIPS
start_time = time.time()
if self.print_outputs:
out += self.exec(elf, *args, cwd=directory, live=True, handle_exit=_handle_exit)
out_, _ = self.exec(elf, *args, cwd=directory, live=True, handle_exit=_handle_exit)
out += out_
else:
out += self.exec(
out_, _ = self.exec(
elf, *args, cwd=directory, live=False, print_func=lambda *args, **kwargs: None, handle_exit=_handle_exit
)
out += out_
end_time = time.time()
diff = end_time - start_time
exit_code = 0
Expand Down

0 comments on commit 1f9abf9

Please sign in to comment.