From 11ac6df2554d7eb935891458129228de7657c7b6 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 18 Sep 2022 22:17:33 +0300 Subject: [PATCH] pysvp64asm: restore original BO --- src/openpower/sv/trans/svp64.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.30.2