Skip to content

Commit 604932a

Browse files
committed
[ISAC] Fix undefined rs1_val, rs2_val
Signed-off-by: MingZhu Yan <[email protected]>
1 parent 5581088 commit 604932a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

riscv-isac/riscv_isac/coverage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,10 +1133,10 @@ def get_pte_prop(prop_name,pa, pte_addr, pgtb_addr):
11331133
lcls={}
11341134
if instr.is_rvp and "rs1" in value:
11351135
op_width = 64 if instr.rs1_nregs == 2 else xlen
1136-
simd_val_unpack(value['val_comb'], op_width, "rs1", rs1_val, lcls)
1136+
simd_val_unpack(value['val_comb'], op_width, "rs1", instr_vars['rs1_val'], lcls)
11371137
if instr.is_rvp and "rs2" in value:
11381138
op_width = 64 if instr.rs2_nregs == 2 else xlen
1139-
simd_val_unpack(value['val_comb'], op_width, "rs2", rs2_val, lcls)
1139+
simd_val_unpack(value['val_comb'], op_width, "rs2", instr_vars['rs2_val'], lcls)
11401140
instr_vars.update(lcls)
11411141
for coverpoints in value['val_comb']:
11421142
if eval(coverpoints, globals(), instr_vars):

0 commit comments

Comments
 (0)