pysvp64asm: restore original BO
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Sep 2022 19:17:33 +0000 (22:17 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Sep 2022 19:17:55 +0000 (22:17 +0300)
src/openpower/sv/trans/svp64.py

index 36bd3bfebded0597b3f6171653e5f6e7cc04c031..40fdc0effdd09b540f97d54e3372eff475a62bad 100644 (file)
@@ -645,9 +645,7 @@ def decode_bo(encoding):
     }
     assert encoding in pmap, \
         "encoding %s for BO Mode not recognised" % encoding
-    # barse-ackwards MSB0/LSB0. sigh
-    mapped = pmap[encoding]
-    return int(bin(mapped)[:1:-1], 2) # to 0bNNN, reverse-and-strip b0, base2
+    return pmap[encoding]
 
 
 # partial-decode fail-first mode