forked from risc0/risc0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change jal to call in zkVM entrypoint (risc0#1257)
As described in risc0#1243, our use of the `jal` instruction in our entrypoint breaks when the jump distance becomes too far. This PR changes the instruction to the `call` psuedo-instruction to allow the assembler flexibility to solve this issue and implement a far jump. Co-authored-by: @weikengchen Resolves: risc0#1243 --------- Co-authored-by: Frank Laub <[email protected]> Co-authored-by: Frank Laub <[email protected]>
- Loading branch information
1 parent
2a6026f
commit b4b6ddf
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,7 +163,7 @@ _start: | |
.option pop; | ||
la sp, {0} | ||
lw sp, 0(sp) | ||
jal ra, __start; | ||
call __start; | ||
"#, | ||
sym STACK_TOP | ||
); | ||
|