diff --git a/riscv-isac/riscv_isac/data/rvopcodesdecoder.py b/riscv-isac/riscv_isac/data/rvopcodesdecoder.py index eb835920d..10fd50850 100644 --- a/riscv-isac/riscv_isac/data/rvopcodesdecoder.py +++ b/riscv-isac/riscv_isac/data/rvopcodesdecoder.py @@ -400,7 +400,7 @@ def decode(self, instrObj_temp): if any([instr_name.startswith(x) for x in [ 'fsh', 'fsw','fsd','fcvt.s','fcvt.d','fmv.w','fmv.l','fcvt.h','fmv.h','flh','fclass','fsqrt','fmax','fmin','fadd','fsub','feq','fle','flt','fmul','fdiv','fsgnj','fsgnjn','fsgnjx']]): treg = 'x' - temp_instrobj.rs2 = (int(get_arg_val(arg)(mcode), 2), treg + temp_instrobj.rs2 = (int(get_arg_val(arg)(mcode), 2), treg) if 'p' in arg: temp_instrobj.rd = (8+int(get_arg_val(arg)(mcode), 2), treg) else: