power_insn: remap RM immediately
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 2 Sep 2022 16:34:21 +0000 (19:34 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 3 Sep 2022 18:41:28 +0000 (21:41 +0300)
src/openpower/decoder/power_insn.py

index 3aabf1116ffe8ce4337540a021108a739c591668..25a9edeee6b3a6b972ff089cc54b44364d55fa8b 100644 (file)
@@ -745,8 +745,11 @@ class SVP64Instruction(PrefixedInstruction):
                 range(16, 19),
             )
 
+        class RM(RM.remap((6, 8) + tuple(range(10, 32)))):
+            pass
+
         id: _Field = (7, 9)
-        rm: RM = ((6, 8) + tuple(range(10, 32)))
+        rm: RM
 
     prefix: Prefix