Skip to content

Commit

Permalink
Initialize link register with a code address in TEST_JAL_OP. (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
cr1901 authored Jan 20, 2025
1 parent 2243dd4 commit a5a20fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions riscv-test-suite/env/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ Mend_PMP: ;\
#define TEST_JAL_OP(tempreg, rd, imm, label, swreg, offset, adj) ;\
5: ;\
LA(tempreg, 2f) ;\
mv rd, tempreg ;\
jalr x0,0(tempreg) ;\
6: LA(tempreg, 4f) ;\
jalr x0,0(tempreg) ;\
Expand Down

0 comments on commit a5a20fe

Please sign in to comment.