power_insn: fix sat checks
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 17 Sep 2022 20:48:34 +0000 (23:48 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 17 Sep 2022 20:48:45 +0000 (23:48 +0300)
src/openpower/decoder/power_insn.py

index 2062d07a5f894ed085d47eedd005689d093fbcf0..a86e281f8a3a434f91b1506c8baa05fdf68523f2 100644 (file)
@@ -1356,7 +1356,7 @@ class NormalSaturationRM(NormalBaseRM):
             yield f"dz"
         if self.sz:
             yield f"sz"
-        if self.sat:
+        if self.N:
             yield "sats"
         else:
             yield "satu"
@@ -1374,7 +1374,7 @@ class NormalSaturationExtRM(NormalBaseRM):
     def specifiers(self):
         if self.zz:
             yield f"zz"
-        if self.sat:
+        if self.N:
             yield "sats"
         else:
             yield "satu"
@@ -1458,7 +1458,7 @@ class LDSTImmSaturationRM(LDSTImmBaseRM):
     def specifiers(self):
         if self.zz:
             yield f"zz"
-        if self.sat:
+        if self.N:
             yield "sats"
         else:
             yield "satu"
@@ -1533,7 +1533,7 @@ class LDSTIdxSaturationRM(LDSTIdxBaseRM):
             yield f"dz"
         if self.sz:
             yield f"sz"
-        if self.sat:
+        if self.N:
             yield "sats"
         else:
             yield "satu"