projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1c8c3
)
(no commit message)
author
lkcl
<lkcl@web>
Wed, 23 Jun 2021 12:35:34 +0000
(13:35 +0100)
committer
IkiWiki
<ikiwiki.info>
Wed, 23 Jun 2021 12:35:34 +0000
(13:35 +0100)
openpower/sv/ldst.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/ldst.mdwn
b/openpower/sv/ldst.mdwn
index fd3fbed4193d0ef849edd12630dc8e08df35372f..4b106928e296a20e93a5ffbe8b02ef7d320345e0 100644
(file)
--- a/
openpower/sv/ldst.mdwn
+++ b/
openpower/sv/ldst.mdwn
@@
-88,7
+88,8
@@
with the pseudocode below, the immediate can be used to give unit stride or elem
if (RT.isvec) j++;
# reverses the bitorder up to "width" bits
- def bitrev(val, width):
+ def bitrev(val, VL):
+ width = log2(VL)
result = 0
for _ in range(width):
result = (result << 1) | (val & 1)