From: lkcl Date: Sat, 25 Mar 2023 19:33:49 +0000 (+0000) Subject: (no commit message) X-Git-Tag: opf_rfc_ls001_v3~69 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=988e876dff5fb08350b2c1c75e34b9081e6026fd;p=libreriscv.git --- diff --git a/openpower/sv/rfc/ls008.mdwn b/openpower/sv/rfc/ls008.mdwn index f7f11ddb8..a5cda55ea 100644 --- a/openpower/sv/rfc/ls008.mdwn +++ b/openpower/sv/rfc/ls008.mdwn @@ -171,6 +171,41 @@ Special Registers Altered: \newpage{} +# SVSTATE SPR + +The format of the SVSTATE SPR is as follows: + +| Field | Name | Description | +| ----- | -------- | --------------------- | +| 0:6 | maxvl | Max Vector Length | +| 7:13 | vl | Vector Length | +| 14:20 | srcstep | for srcstep = 0..VL-1 | +| 21:27 | dststep | for dststep = 0..VL-1 | +| 28:29 | dsubstep | for substep = 0..SUBVL-1 | +| 30:31 | ssubstep | for substep = 0..SUBVL-1 | +| 32:33 | mi0 | REMAP RA SVSHAPE0-3 | +| 34:35 | mi1 | REMAP RB SVSHAPE0-3 | +| 36:37 | mi2 | REMAP RC SVSHAPE0-3 | +| 38:39 | mo0 | REMAP RT SVSHAPE0-3 | +| 40:41 | mo1 | REMAP EA SVSHAPE0-3 | +| 42:46 | SVme | REMAP enable (RA-RT) | +| 47:52 | rsvd | reserved | +| 53 | pack | PACK (srcstrp reorder) | +| 54 | unpack | UNPACK (dststep order) | +| 55:61 | hphint | Horizontal Hint | +| 62 | RMpst | REMAP persistence | +| 63 | vfirst | Vertical First mode | + +Notes: + +* The entries are truncated to be within range. Attempts to set VL to + greater than MAXVL will truncate VL. +* Setting srcstep, dststep to 64 or greater, or VL or MVL to greater + than 64 is reserved and will cause an illegal instruction trap. + +------------- + +\newpage{} # SVL-Form @@ -191,18 +226,18 @@ Add the following to Book I, 1.6.2 ``` ms (23) - Field used in Simple-V to specify whether MVL (MAXVL in the SVSTATE SPR) + Field used in Simple-V to specify whether MVL (maxvl in the SVSTATE SPR) is to be set Formats: SVL vf (25) Field used in Simple-V to specify whether "Vertical" Mode is set - (VF in the SVSTATE SPR) + (vfirst in the SVSTATE SPR) Formats: SVL vs (24) - Field used in Simple-V to specify whether VL (in the SVSTATE SPR) is to be set + Field used in Simple-V to specify whether VL (vl in the SVSTATE SPR) is to be set Formats: SVL SVi (16:22) - Simple-V immediate field for setting VL or MVL (VL, MAXVL in the SVSTATE SPR) + Simple-V immediate field for setting VL or MVL (vl, maxvl in the SVSTATE SPR) Formats: SVL ```