Skip to content

Commit 32f3955

Browse files
fix ext_specific_vars bug (#517)
Co-authored-by: Umer Shahid <[email protected]>
1 parent 6225031 commit 32f3955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv-ctg/riscv_ctg/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ def eval_inst_coverage(coverpoints,instr):
888888
if (is_fp_instruction(insn)):
889889
insn = "fadd.s"
890890
instr_obj = instructionObject(None, insn, None)
891-
ext_specific_vars = instr_obj.evaluate_instr_var("ext_specific_vars", {**var_dict, 'flen': self.flen, 'iflen': self.iflen}, None, {'fcsr': hex(var_dict.get('fcsr', 0))})
891+
ext_specific_vars = instr_obj.evaluate_instr_var("ext_specific_vars", {**var_dict, 'flen': self.flen, 'iflen': self.iflen, 'inxFlag': self.inxFlag, 'xlen': self.xlen}, None, {'fcsr': hex(var_dict.get('fcsr', 0))})
892892

893893
if ext_specific_vars is not None:
894894
var_dict.update(ext_specific_vars)

0 commit comments

Comments
 (0)