Skip to content

Commit

Permalink
Fix for issue chipsalliance#826, illegal rs1 in C_JALR
Browse files Browse the repository at this point in the history
Signed-off-by: Henrik Fegran <[email protected]>
  • Loading branch information
silabs-hfegran committed Jul 25, 2022
1 parent 4860da2 commit 88dae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isa/riscv_compressed_instr.sv
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class riscv_compressed_instr extends riscv_instr;
C_EBREAK:
binary = $sformatf("%4h", {get_func3(), 1'b1, 10'b0, get_c_opcode()});
C_JALR:
binary = $sformatf("%4h", {get_func3(), 1'b1, 10'b0, get_c_opcode()});
binary = $sformatf("%4h", {get_func3(), 1'b1, rs1, 5'b0, get_c_opcode()});
C_ADD:
binary = $sformatf("%4h", {get_func3(), 1'b1, rd, rs2, get_c_opcode()});
C_SDSP:
Expand Down

0 comments on commit 88dae63

Please sign in to comment.