From 174bfcf775aaf77be10614a7e7ed8a4c348d44cd Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 27 Jun 2022 10:54:54 +0100 Subject: [PATCH] clarify bmask.py --- openpower/sv/bmask.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.30.2