From: Luke Kenneth Casson Leighton Date: Mon, 27 Mar 2023 11:07:08 +0000 (+0100) Subject: add svshape2 pseudo-code X-Git-Tag: opf_rfc_ls001_v3~29 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00e6c538c508a52da5d4b4b0fc9cc6e81599192d;p=libreriscv.git add svshape2 pseudo-code --- diff --git a/openpower/sv/rfc/ls009.mdwn b/openpower/sv/rfc/ls009.mdwn index 1c5625f2b..b3bea0d17 100644 --- a/openpower/sv/rfc/ls009.mdwn +++ b/openpower/sv/rfc/ls009.mdwn @@ -1251,7 +1251,80 @@ the SVSTATE SPRs manually. \newpage{} -# svshape2 (offset) +# svshape2 (offset-priority) + +SVM2-Form + +| 0-5|6-9 |10|11-15 |16-20 | 21-24 | 25 | 26-31 | Form | +| -- |----|--| --- | ----- | ------ | -- | ------| -------- | +| PO |offs|yx| rmm | SVd | 100/mm | sk | XO | SVM2-Form | + +* svshape2 offs,yx,rmm,SVd,sk,mm + +Pseudo-code: + +``` + # based on nearest MAXVL compute other dimension + MVL <- SVSTATE[0:6] + d <- [0] * 6 + dim <- SVd+1 + do while d*dim