Skip to content

Commit

Permalink
C-ext branch rewrite should fallback to regular handler
Browse files Browse the repository at this point in the history
Fixes issue where high-memory executables would fail jumps.
  • Loading branch information
fwsGonzo committed Nov 27, 2023
1 parent f4460b4 commit 8c0221d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libriscv/threaded_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ namespace riscv

if (!this->is_within(addr, 4) || (addr % PCAL) != 0)
{
return RV32I_BC_INVALID;
return RV32C_BC_JUMPFUNC;
}

FasterItype rewritten;
Expand Down

0 comments on commit 8c0221d

Please sign in to comment.