Skip to contentSkip to conversation

A second RISC-V Patch for 4.0.0-rc1

GIT PULL Applied Palmer Dabbelt 2 participants 3 messages Mar 26, 2019 RISC-V

lore
Share & tools
lore
#0 lore raw

merged tag 'riscv-for-master-4.0-rc1'
The following changes since commit 4aef51963924fd58ffe88daebbe8055a360d7c10:

Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-4.0-rc1' into staging (2019-03-26 08:51:35 +0000)

are available in the Git repository at:

git://github.com/palmer-dabbelt/qemu.git tags/riscv-for-master-4.0-rc1-v2

for you to fetch changes up to 620455350a8da7cc62ae82cb69dd5c556f744136:

target/riscv: Fix wrong expanding for c.fswsp (2019-03-26 03:17:30 -0700)

----------------------------------------------------------------
A second RISC-V Patch for 4.0.0-rc1

Sorry for sending two back-to-back pull requests. It looks like I misunderstood Kito and there were actually two patches necessary to fix the GCC test suite runs.

----------------------------------------------------------------
Kito Cheng (1):
target/riscv: Fix wrong expanding for c.fswsp

 target/riscv/insn_trans/trans_rvc.inc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#1 lore raw

[Qemu-riscv] [PULL] target/riscv: Fix wrong expanding for c.fswsp

From: Kito Cheng <[email protected]>

base register is no rs1 not rs2 for fsw.

---
 target/riscv/insn_trans/trans_rvc.inc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/insn_trans/trans_rvc.inc.c +1 -1
index 5819f53f900e..ebcd977b2f94 100644
@@ -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 */
Signature · 1 line
2.19.2
#2 lore raw
In reply to Palmer Dabbelt
Quoted 14 lines · Palmer Dabbelt

merged tag 'riscv-for-master-4.0-rc1'
The following changes since commit 4aef51963924fd58ffe88daebbe8055a360d7c10:

Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-4.0-rc1' into staging (2019-03-26 08:51:35 +0000)

are available in the Git repository at:

git://github.com/palmer-dabbelt/qemu.git tags/riscv-for-master-4.0-rc1-v2

for you to fetch changes up to 620455350a8da7cc62ae82cb69dd5c556f744136:

target/riscv: Fix wrong expanding for c.fswsp (2019-03-26 03:17:30 -0700)

Quoted 8 lines

----------------------------------------------------------------
A second RISC-V Patch for 4.0.0-rc1

Sorry for sending two back-to-back pull requests. It looks like I misunderstood Kito and there were actually two patches necessary to fix the GCC test suite runs.

----------------------------------------------------------------

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.0
for any user-visible changes.

-- PMM