From 1deda3364b7cbd80096b7d91f33ecc0336b0f3a5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 18 Sep 2022 20:18:49 +0100 Subject: [PATCH] add new svstep mode setting up pack/unpack in simplev.mdwn pseudocode --- openpower/isa/simplev.mdwn | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index 8572d690..111212f8 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -10,8 +10,14 @@ SVL-Form Pseudo-code: - step <- SVSTATE_NEXT(SVi, vf) - RT <- [0]*57 || step + if SVi[3:4] = 0b11 then + # store subvl, pack and unpack in SVSTATE + SVSTATE[53] <- SVi[5] + SVSTATE[54] <- SVi[6] + RT <- [0]*62 || SVSTATE[53:54] + else + step <- SVSTATE_NEXT(SVi, vf) + RT <- [0]*57 || step Special Registers Altered: -- 2.30.2