projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d36ea3
)
whoops wrong example value
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 25 Jun 2022 20:08:06 +0000
(21:08 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 25 Jun 2022 20:08:06 +0000
(21:08 +0100)
openpower/sv/sof.py
patch
|
blob
|
history
diff --git
a/openpower/sv/sof.py
b/openpower/sv/sof.py
index 66f4b86afbe3a8ae4c94a947389a2cc9c5b222fb..6ad0fb5d594e5455c5fb16bb7934b061d3c5afe2 100644
(file)
--- a/
openpower/sv/sof.py
+++ b/
openpower/sv/sof.py
@@
-20,7
+20,7
@@
def sof(RA, mask=None, zero=False):
if __name__ == '__main__':
m = 0b11000011
- v3 = 0b1
0
010100 # vmsof.m v2, v3
+ v3 = 0b1
1
010100 # vmsof.m v2, v3
v2 = 0b01000000 # v2
RT = sof(v3, m, True)
print(bin(v3), bin(v2), bin(RT))