power_insn: call sv_spec_leave unconditionally
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 12 Sep 2022 18:04:43 +0000 (21:04 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 12 Sep 2022 20:41:44 +0000 (21:41 +0100)
src/openpower/decoder/power_insn.py

index 6d9cf1eed58ed5b4da43d7540363e4c9fcc55597..58c759e71e28c069e20941ad11c211a97e9151d9 100644 (file)
@@ -644,8 +644,8 @@ class RegisterOperand(DynamicOperand):
                     value = ((spec << scalar_shift) | value)
                     span = ((spec_shift * ('{0}',)) + spec_span + span)
 
-                (value, span) = self.sv_spec_leave(value=value, span=span,
-                    origin_value=origin_value, origin_span=origin_span)
+            (value, span) = self.sv_spec_leave(value=value, span=span,
+                origin_value=origin_value, origin_span=origin_span)
 
         return (vector, value, span)