pysvp64dis: fix prefix/suffix properties
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Aug 2022 18:29:57 +0000 (21:29 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 29 Aug 2022 19:38:10 +0000 (20:38 +0100)
src/openpower/sv/trans/pysvp64dis.py

index ddb24a158959afc2b0886da72446bf2698c5a66e..44adf3329bf7d58ecf13389c0f666ef93af675ba 100644 (file)
@@ -45,11 +45,11 @@ class PrefixedInstruction(Instruction):
 
     @property
     def prefix(self):
-        return self[32:64]
+        return self[0:32]
 
     @property
     def suffix(self):
-        return self[0:32]
+        return self[32:64]
 
 
 def load(ifile, byteorder, **_):