From 00e6c538c508a52da5d4b4b0fc9cc6e81599192d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 27 Mar 2023 12:07:08 +0100 Subject: [PATCH] add svshape2 pseudo-code --- openpower/sv/rfc/ls009.mdwn | 88 +++++++++++++++++++++++++++++++++---- 1 file changed, 80 insertions(+), 8 deletions(-) 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