caller.py: XLEN must be accessed as self.XLEN
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 13 Dec 2023 00:49:24 +0000 (16:49 -0800)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 13 Dec 2023 00:49:24 +0000 (16:49 -0800)
src/openpower/decoder/isa/caller.py

index 2bb4b6086eab4ed48b70180c677cd77237065243..da73f98b718c5087f0204ae5363954f4bc0beda9 100644 (file)
@@ -2607,7 +2607,7 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
             if name in fregs:
                 fval = self.fpr(base, is_vec, offs, ew_src)
                 reg_val = SelectableInt(fval)
-                assert ew_src == XLEN, "TODO fix elwidth conversion"
+                assert ew_src == self.XLEN, "TODO fix elwidth conversion"
                 self.trace("r:FPR:%d:%d:%d " % (base, offs, ew_src))
                 log("read fp reg %d/%d: 0x%x" % (base, offs, reg_val.value),
                     kind=LogType.InstrInOuts)