projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d47fc2
)
(no commit message)
author
lkcl
<lkcl@web>
Sat, 19 Dec 2020 15:37:31 +0000
(15:37 +0000)
committer
IkiWiki
<ikiwiki.info>
Sat, 19 Dec 2020 15:37:31 +0000
(15:37 +0000)
openpower/sv/setvl.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/setvl.mdwn
b/openpower/sv/setvl.mdwn
index 94df7128bd9f1a93815a14a7c67a8c846d6f6627..17aaf651841bfa9aab073da221a51460b8567c96 100644
(file)
--- a/
openpower/sv/setvl.mdwn
+++ b/
openpower/sv/setvl.mdwn
@@
-45,7
+45,8
@@
Note that setmvli is a pseudo-op, based on RA/RT=0, and setvli likewise
VL = vlimmed
}
} else {
- // VL not to change, source from SPR
+ // VL not to change (except if MVL is reduced)
+ // read from SPRs
VL = SPR[SV_VL]
}
@@
-54,6
+55,7
@@
Note that setmvli is a pseudo-op, based on RA/RT=0, and setvli likewise
if ms {
MVL = vlimmed
} else {
+ // MVL not to change, read from SPRs
MVL = SPR[SV_MVL]
}
@@
-72,7
+74,9
@@
Note that setmvli is a pseudo-op, based on RA/RT=0, and setvli likewise
// write CR?
if Rc {
// update CR from VL (not rt)
- CR0 = ....
+ CR0.eq = (VL == 0)
+ ...
+ ...
}
# Examples