projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4479d54
)
(no commit message)
author
lkcl
<lkcl@web>
Wed, 2 Dec 2020 12:04:36 +0000
(12:04 +0000)
committer
IkiWiki
<ikiwiki.info>
Wed, 2 Dec 2020 12:04:36 +0000
(12:04 +0000)
openpower/sv/setvl.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/setvl.mdwn
b/openpower/sv/setvl.mdwn
index e52300063544eab0e31935d6afb9469deca81ad6..5650694e7b224ef14299885aa3537762a9831306 100644
(file)
--- a/
openpower/sv/setvl.mdwn
+++ b/
openpower/sv/setvl.mdwn
@@
-31,13
+31,15
@@
Note that setmvli is a pseudo-op, based on RA/RT=0, and setvli likewise
// set VL (or not).
// 3 options: from SPR, from immed, from ra
if vs {
- if ra == 0 {
- VL = SPR[SV_VL]
+ // VL to be sourced from fields/regs
+ if ra != 0 {
+ VL = GPR[ra]
} else {
VL = vlimmed
}
- } elif ra != 0 {
- VL = GPR[ra]
+ } else {
+ // VL not to change, source from SPR
+ VL = SPR[SV_VL]
}
// set MVL (or not).