power_insn: fix Rc record property
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 13 Nov 2022 21:10:47 +0000 (00:10 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:16 +0000 (19:51 +0100)
src/openpower/decoder/power_insn.py

index 323969d3d9a6b4bf3673737c8409f078a3348592..c54c4141209af3b612332fb9ed8cca8d76fb6871 100644 (file)
@@ -866,7 +866,7 @@ class Record:
     def Rc(self):
         if "Rc" not in self:
             return False
-        return bool(self["Rc"])
+        return self["Rc"].value
 
 
 @_dataclasses.dataclass(eq=True, frozen=True)