From bcec0e66c9d6fd8bcb7b5d0ce6a9837a50e0fc96 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 30 May 2020 14:27:06 +0100 Subject: [PATCH] order of XER so/ca wrong way round from regspec --- src/soc/fu/compunits/test/test_alu_compunit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/fu/compunits/test/test_alu_compunit.py b/src/soc/fu/compunits/test/test_alu_compunit.py index c765af1d..22c0ee48 100644 --- a/src/soc/fu/compunits/test/test_alu_compunit.py +++ b/src/soc/fu/compunits/test/test_alu_compunit.py @@ -92,9 +92,9 @@ def set_operand(cu, dec2, sim): def set_extra_cu_inputs(cu, dec2, sim): carry = 1 if sim.spr['XER'][XER_bits['CA']] else 0 carry32 = 1 if sim.spr['XER'][XER_bits['CA32']] else 0 - yield from set_cu_input(cu, 2, carry | (carry32<<1)) + yield from set_cu_input(cu, 3, carry | (carry32<<1)) so = 1 if sim.spr['XER'][XER_bits['SO']] else 0 - yield from set_cu_input(cu, 3, so) + yield from set_cu_input(cu, 2, so) -- 2.30.2