From: Luke Kenneth Casson Leighton Date: Sat, 24 Sep 2022 10:25:04 +0000 (+0100) Subject: comment inv,CRbit swap in decode_bo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d2f3501ba18097e358938cd5b8967fb7f8da5c8;p=openpower-isa.git comment inv,CRbit swap in decode_bo --- diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index f242fe5c..61438284 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 - # barse-ackwards MSB0/LSB0. sigh + # barse-ackwards MSB0/LSB0. sigh. this would be nice to be the + # same as the decode_predicate() CRfield table above, but (inv,CRbit) + # is how it is in the spec [decode_predicate is (CRbit,inv)] mapped = pmap[encoding] si = SelectableInt(0, 3) si[0] = mapped & 1 # inv