Skip to content

Commit

Permalink
Fix CSR test
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Nov 21, 2023
1 parent 06942d8 commit 141d425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/structs_common/test_csr.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def generate_instruction(self):
"exec_fn": {"op_type": OpType.CSR_IMM if imm_op else OpType.CSR_REG, "funct3": op, "funct7": 0},
"rp_s1": rs1,
"s1_val": exp["rs1"]["value"] if value_available and not imm_op else 0,
"s1_valid": value_available and not imm_op,
"s1_valid": value_available or not rs1,
"rp_dst": rd,
"imm": imm,
"csr": csr,
Expand Down

0 comments on commit 141d425

Please sign in to comment.