From a8d36e83162d65f6c89d64ac212b81b655ff648d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Sep 2022 20:12:05 +0100 Subject: [PATCH] put back the barse-ackward decode_bo inversion of {inv||CR_bit} --- src/openpower/sv/trans/svp64.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index edd4f2b7..8a6d271a 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -666,7 +666,9 @@ def decode_bo(encoding): } assert encoding in pmap, \ "encoding %s for BO Mode not recognised" % encoding - return pmap[encoding] + # barse-ackwards MSB0/LSB0. sigh + mapped = pmap[encoding] + return int(bin(mapped)[:1:-1], 2) # to 0bNNN, reverse-and-strip b0, base2 # partial-decode fail-first mode -- 2.30.2