From d2fcbc812dd99c0f5c30bba97a3075d5f51e2473 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 12 Dec 2023 16:51:33 -0800 Subject: [PATCH] caller.py: use yield from on is_ffirst_mode since it's a generator --- src/openpower/decoder/isa/caller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index b0b09f06..8bbd7bb1 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -2441,7 +2441,8 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): log(" vli", vli_) log(" cr_bit", cr_bit) log(" rc_en", rc_en) - if not rc_en or not is_ffirst_mode(self.dec2): + ffirst = yield from is_ffirst_mode(self.dec2) + if not rc_en or not ffirst: return False, False # get the CR vevtor, do BO-test crf = "CR0" @@ -2983,7 +2984,8 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): # allowing *scalar destinations* to be used as an accumulator. # effectively this implies /mr (mapreduce mode) is 100% on with ddffirst # see https://bugs.libre-soc.org/show_bug.cgi?id=1183#c16 - if is_ffirst_mode(self.dec2): + ffirst = yield from is_ffirst_mode(self.dec2) + if ffirst: svp64_is_vector = in_vec # loops end at the first "hit" (source or dest) -- 2.30.2