Roger Chang has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/70600?usp=email )
Change subject: arch-riscv: merge rv32 and rv64 version of xperm4 and xperm8
......................................................................
arch-riscv: merge rv32 and rv64 version of xperm4 and xperm8
Change-Id: I83d47eeccd04fe61ac8ee0addd7221abbdcefbd1
---
M src/arch/riscv/isa/decoder.isa
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/src/arch/riscv/isa/decoder.isa b/src/arch/riscv/isa/decoder.isa
index 1f78b32..acd2122 100644
--- a/src/arch/riscv/isa/decoder.isa
+++ b/src/arch/riscv/isa/decoder.isa
@@ -1120,14 +1120,13 @@
0x10: sh1add({{
Rd = rvSext((Rs1 << 1) + Rs2);
}});
- 0x14: decode RVTYPE {
- 0x0: xperm4_32({{
- Rd_sw = _rvk_emu_xperm4_32(Rs1_sw, Rs2_sw);
- }});
- 0x1: xperm4_64({{
+ 0x14: xperm4({{
+ if (machInst.rv_type == RV32) {
+ Rd_sd = _rvk_emu_xperm4_32(Rs1_sd, Rs2_sd);
+ } else {
Rd_sd = _rvk_emu_xperm4_64(Rs1_sd, Rs2_sd);
- }});
- }
+ }
+ }});
}
0x3: decode FUNCT7 {
0x0: sltu({{
@@ -1177,14 +1176,13 @@
0x10: sh2add({{
Rd = rvSext((Rs1 << 2) + Rs2);
}});
- 0x14: decode RVTYPE {
- 0x0: xperm8_32({{
- Rd_sw = _rvk_emu_xperm8_32(Rs1_sw, Rs2_sw);
- }});
- 0x1: xperm8_64({{
+ 0x14: xperm8({{
+ if (machInst.rv_type == RV32) {
+ Rd_sd = _rvk_emu_xperm8_32(Rs1_sd, Rs2_sd);
+ } else {
Rd_sd = _rvk_emu_xperm8_64(Rs1_sd, Rs2_sd);
- }});
- }
+ }
+ }});
0x20: xnor({{
Rd = rvSext(~(Rs1 ^ Rs2));
}});
--
To view, visit
https://gem5-review.googlesource.com/c/public/gem5/+/70600?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I83d47eeccd04fe61ac8ee0addd7221abbdcefbd1
Gerrit-Change-Number: 70600
Gerrit-PatchSet: 1
Gerrit-Owner: Roger Chang <rogerycch...@google.com>
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org