From: Dmitry Selyutin Date: Sun, 18 Sep 2022 19:17:33 +0000 (+0300) Subject: pysvp64asm: restore original BO X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11ac6df2554d7eb935891458129228de7657c7b6;p=openpower-isa.git pysvp64asm: restore original BO --- diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index 36bd3bfe..40fdc0ef 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -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