From ba1da3dbc064b1e7cbb5b31012a956ca048db28b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 24 Jul 2021 08:30:45 +0100 Subject: [PATCH] make REMAP persistent (if persistence requested) even on svshape --- openpower/isa/simplev.mdwn | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index 77a8a679..404f7497 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -71,7 +71,17 @@ Pseudo-code: # for convenience, VL to be calculated and stored in SVSTATE vlen <- [0] * 7 - SVSTATE[0:63] <- [0] * 64 + SVSTATE[0:31] <- [0] * 32 + # only overwrite REMAP if "persistence" is zero + if (SVSTATE[62] = 0b0) then + SVSTATE[32:33] <- 0b00 + SVSTATE[34:35] <- 0b00 + SVSTATE[36:37] <- 0b00 + SVSTATE[38:39] <- 0b00 + SVSTATE[40:41] <- 0b00 + SVSTATE[42:46] <- 0b00000 + SVSTATE[62] <- 0b0 + SVSTATE[63] <- 0b0 # clear out all SVSHAPEs SVSHAPE0[0:31] <- [0] * 32 SVSHAPE1[0:31] <- [0] * 32 -- 2.30.2