From 9d2f3501ba18097e358938cd5b8967fb7f8da5c8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 24 Sep 2022 11:25:04 +0100 Subject: [PATCH] comment inv,CRbit swap in decode_bo --- 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 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 -- 2.30.2