From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 13:09:39 +0000 (+0100) Subject: stop setting not carry on X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8433fcfdb722dad3090feaa2d53c60ea1c93d12;p=libreriscv.git stop setting not carry on --- diff --git a/openpower/sv/sif.py b/openpower/sv/sif.py index 1f68cc122..adaf0b17d 100644 --- a/openpower/sv/sif.py +++ b/openpower/sv/sif.py @@ -8,7 +8,7 @@ def sif(RA, mask=None, zero=False): if not setting_mode and mask is not None and (mask & bit): setting_mode = True # back into "setting" mode if setting_mode and mask is not None and not (mask & bit): - setting_mode = True # masked out, stop setting + setting_mode = False # masked out, stop setting if setting_mode: if RA & bit: # found a bit in rs1: stop setting RT setting_mode = False