From 1bd746b1696ca561caad73d85e46d9ee58e3ea77 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 13:45:01 +0100 Subject: [PATCH] corrections to sof and sif out of mask mode --- openpower/sv/sbf.py | 8 +++++--- openpower/sv/sif.py | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/openpower/sv/sbf.py b/openpower/sv/sbf.py index 1885a3929..c2eee4c88 100644 --- a/openpower/sv/sbf.py +++ b/openpower/sv/sbf.py @@ -1,5 +1,5 @@ -def sbf(RA, mask=None): - RT = RA if mask is not None else 0 +def sbf(RA, mask=None, zero=False): + RT = RA if mask is not None and not zero else 0 i = 0 # start setting if no predicate or if 1st predicate bit set setting_mode = mask is None @@ -7,6 +7,8 @@ def sbf(RA, mask=None): bit = 1<