Skip to content

Commit

Permalink
[SPIKE] Fix decoder cvxif (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASintzoff authored Sep 27, 2023
1 parent 1f8a67a commit 7d7b2c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/vendor/riscv/riscv-isa-sim/customext/cvxif.cc b/vendor/riscv/riscv-isa-sim/customext/cvxif.cc
index b1bef8e6..20aea89c 100644
--- a/vendor/riscv/riscv-isa-sim/customext/cvxif.cc
+++ b/vendor/riscv/riscv-isa-sim/customext/cvxif.cc
@@ -101,7 +101,7 @@ class cvxif_t : public cvxif_extn_t
case FUNC3_0:
switch (r_insn.funct7 & 0x1) {
case NO_RS3:
- switch (r_insn.funct7 & 0xe) {
+ switch (r_insn.funct7 & 0x7e) {
case CUS_NOP:
break;
case CUS_U_ADD:
2 changes: 1 addition & 1 deletion vendor/riscv/riscv-isa-sim/customext/cvxif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class cvxif_t : public cvxif_extn_t
case FUNC3_0:
switch (r_insn.funct7 & 0x1) {
case NO_RS3:
switch (r_insn.funct7 & 0xe) {
switch (r_insn.funct7 & 0x7e) {
case CUS_NOP:
break;
case CUS_U_ADD:
Expand Down

0 comments on commit 7d7b2c6

Please sign in to comment.