From a448d0bb54913f1f894fb1032a32d159b80804e9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 2 Sep 2022 18:44:22 +0100 Subject: [PATCH] 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. --- openpower/isa/simplev.mdwn | 61 ++++++++++++++++++++++++++++++++++---- 1 file changed, 55 insertions(+), 6 deletions(-) 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