From 848da6409a7c48792d4f97e9b1b5eb9b78efeaf5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 26 Mar 2020 16:54:54 +0000 Subject: [PATCH] brackets to be safe --- src/soc/simulator/internalop_sim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/simulator/internalop_sim.py b/src/soc/simulator/internalop_sim.py index b9724be9..c794e591 100644 --- a/src/soc/simulator/internalop_sim.py +++ b/src/soc/simulator/internalop_sim.py @@ -125,7 +125,7 @@ class InternalOpSimulator: inv_a = yield pdecode2.dec.op.inv_a if inv_a: - operand1 = ~operand1 & ((1<<64)-1) + operand1 = (~operand1) & ((1<<64)-1) cry_in = yield pdecode2.dec.op.cry_in if cry_in == CryIn.ONE.value: -- 2.30.2