From: Luke Kenneth Casson Leighton Date: Sat, 24 Jul 2021 07:30:45 +0000 (+0100) Subject: make REMAP persistent (if persistence requested) even on svshape X-Git-Tag: xlen-bcd~218 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba1da3dbc064b1e7cbb5b31012a956ca048db28b;p=openpower-isa.git make REMAP persistent (if persistence requested) even on svshape --- 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