Austin Harris has submitted this change and it was merged. (
https://gem5-review.googlesource.com/11669 )
Change subject: arch-riscv: Fix the srlw and srliw instructions.
......................................................................
arch-riscv: Fix the srlw and srliw instructions.
Change-Id: I14ccb0655819887db2306fee1188e1c83a991743
Signed-off-by: Austin Harris <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/11669
Reviewed-by: Alec Roelke <[email protected]>
Maintainer: Alec Roelke <[email protected]>
---
M src/arch/riscv/isa/decoder.isa
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Alec Roelke: Looks good to me, approved; Looks good to me, approved
diff --git a/src/arch/riscv/isa/decoder.isa b/src/arch/riscv/isa/decoder.isa
index d8f3395..b4bf385 100644
--- a/src/arch/riscv/isa/decoder.isa
+++ b/src/arch/riscv/isa/decoder.isa
@@ -447,7 +447,7 @@
}});
0x5: decode SRTYPE {
0x0: srliw({{
- Rd = Rs1_uw >> SHAMT5;
+ Rd_sd = (int32_t)(Rs1_uw >> SHAMT5);
}});
0x1: sraiw({{
Rd_sd = Rs1_sw >> SHAMT5;
@@ -759,7 +759,7 @@
}}, IntDivOp);
0x5: decode FUNCT7 {
0x0: srlw({{
- Rd_uw = Rs1_uw >> Rs2<4:0>;
+ Rd_sd = (int32_t)(Rs1_uw >> Rs2<4:0>);
}});
0x1: divuw({{
if (Rs2_uw == 0) {
--
To view, visit https://gem5-review.googlesource.com/11669
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I14ccb0655819887db2306fee1188e1c83a991743
Gerrit-Change-Number: 11669
Gerrit-PatchSet: 5
Gerrit-Owner: Austin Harris <[email protected]>
Gerrit-Reviewer: Alec Roelke <[email protected]>
Gerrit-Reviewer: Austin Harris <[email protected]>
Gerrit-Reviewer: Robert Scheffel <[email protected]>
Gerrit-Reviewer: Tuan Ta <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev