mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 05:38:19 +00:00
target/riscv: Fix wrong expanding for c.fswsp
base register is no rs1 not rs2 for fsw. Backports commit 620455350a8da7cc62ae82cb69dd5c556f744136 from qemu
This commit is contained in:
parent
fc662c281a
commit
5a7ad783e9
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ static bool trans_c_fswsp_sdsp(DisasContext *ctx, arg_c_fswsp_sdsp *a)
|
|||
{
|
||||
#ifdef TARGET_RISCV32
|
||||
/* C.FSWSP */
|
||||
arg_fsw a_fsw = { .rs1 = a->rs2, .rs2 = 2, .imm = a->uimm_fswsp };
|
||||
arg_fsw a_fsw = { .rs1 = 2, .rs2 = a->rs2, .imm = a->uimm_fswsp };
|
||||
return trans_fsw(ctx, &a_fsw);
|
||||
#else
|
||||
/* C.SDSP */
|
||||
|
|
Loading…
Reference in a new issue