projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a532d
)
undefined
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 22 Jun 2022 14:58:26 +0000
(15:58 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 22 Jun 2022 14:58:34 +0000
(15:58 +0100)
openpower/sv/bmask.py
patch
|
blob
|
history
diff --git
a/openpower/sv/bmask.py
b/openpower/sv/bmask.py
index 9930d0a3735f22a10ee6ad2c8686301d3bb04fa9..c59fc5efaee93b24749d37e1d667f99c1fd12506 100644
(file)
--- a/
openpower/sv/bmask.py
+++ b/
openpower/sv/bmask.py
@@
-20,6
+20,8
@@
def bmask(mode, RA, RB=None, zero=False):
RT = a1 & a2
if mode3 == 2:
RT = a1 ^ a2
+ if mode3 == 3:
+ RT = 0 # UNDEFINED
RT &= mask
if not zero:
RT |= RA & ~mask