From: Luke Kenneth Casson Leighton Date: Mon, 27 Jun 2022 09:54:54 +0000 (+0100) Subject: clarify bmask.py X-Git-Tag: opf_rfc_ls005_v1~1500 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=174bfcf775aaf77be10614a7e7ed8a4c348d44cd;p=libreriscv.git clarify bmask.py --- diff --git a/openpower/sv/bmask.py b/openpower/sv/bmask.py index e30f8a29e..f64708bce 100644 --- a/openpower/sv/bmask.py +++ b/openpower/sv/bmask.py @@ -1,7 +1,8 @@ -def bmask(bm, RA, RB=None, zero=False): - mask = RB if RB is not None else 0xffffffffffffffff +def bmask(bm, RA, RB=None, zero=False, XLEN=64): + mask = RB if RB is not None else ((1<> 1) & 0b11 if mode2 == 0: a2 = -ra if mode2 == 1: a2 = ra-1