whoops lsbshf=2 for CR5
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 11 Sep 2022 10:39:10 +0000 (11:39 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 11 Sep 2022 10:39:10 +0000 (11:39 +0100)
src/openpower/decoder/power_insn.py

index 17b0db8fe9fba3c175fae326ee69d5db0ff38eea..c6da389ae7df33c754011212620d2fb39e04b240 100644 (file)
@@ -730,7 +730,7 @@ class CR5Operand(RegisterOperand):
             sshift = 3 # len(value) aka value.bits
             vshift = 4 # 7-sshift
             spshft = 2 # 5-sshift
-            lsbshf = 0 # has to be set as a parameter
+            lsbshf = 2 # has to be set as a parameter
             lsbmsk = (1<<lsbshf)-1
             # record the 2 lsbs first
             lsbs = _SelectableInt(value=value.value&(lsbmsk), bits=lsbshf)