Skip to content

Commit

Permalink
Update RISC-V instructions in mini-riscv.c and cpu-riscv64.mdesc
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinlong-Wu committed Jan 22, 2024
1 parent 5d25673 commit f52b1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/cpu-riscv64.mdesc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ call_membase: dest:a src1:b len:20 clob:c
voidcall: len:4 clob:c
voidcall_reg: src1:i len:4 clob:c
voidcall_membase: src1:b len:20 clob:c
vcall2: len:16 clob:c
vcall2: len:24 clob:c
vcall2_reg: src1:i len:16 clob:c
vcall2_membase: src1:b len:28 clob:c
fcall: dest:f len:8 clob:c
Expand Down
2 changes: 1 addition & 1 deletion src/mono/mono/mini/mini-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -4597,7 +4597,7 @@ mono_arch_output_basic_block (MonoCompile *cfg, MonoBasicBlock *bb)
riscv_addi (code, RISCV_T0, RISCV_SP, 0);
loop_start = code;
riscv_beq (code, RISCV_T0, RISCV_T1, 0);
riscv_ld (code, RISCV_ZERO, RISCV_T0, 0);
riscv_sd (code, RISCV_ZERO, RISCV_T0, 0);
riscv_sd (code, RISCV_ZERO, RISCV_T0, sizeof (host_mgreg_t));
#ifdef TARGET_RISCV32
NOT_IMPLEMENTED;
Expand Down

0 comments on commit f52b1cf

Please sign in to comment.