From: Luke Kenneth Casson Leighton Date: Fri, 2 Sep 2022 17:44:22 +0000 (+0100) Subject: add first svshape2 pseudocode, based on svindex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a448d0bb54913f1f894fb1032a32d159b80804e9;p=openpower-isa.git add first svshape2 pseudocode, based on svindex it is near-identical but is actually back to svshape in terms of the SHAPE bits set. bits 18-20 of SVSHAPEn are set in "Matrix" mode not "Indexed" mode though. --- diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index 22cb28ee..9ef43a2e 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -278,7 +278,7 @@ Special Registers Altered: SVI-Form -* svindex SVG,rmm,SVd,ew,yx,mr,sk +* svindex SVG,rmm,SVd,ew,yx,mm,sk Pseudo-code: @@ -350,11 +350,60 @@ SVM2-Form Pseudo-code: - # TODO. (placeholder: clear out all SVSHAPEs) - SVSHAPE0[0:31] <- [0] * 32 - SVSHAPE1[0:31] <- [0] * 32 - SVSHAPE2[0:31] <- [0] * 32 - SVSHAPE3[0:31] <- [0] * 32 + # based on nearest MAXVL compute other dimension + MVL <- SVSTATE[0:6] + d <- [0] * 6 + dim <- SVd+1 + do while d*dim