From: Luke Kenneth Casson Leighton Date: Fri, 26 Aug 2022 14:18:32 +0000 (+0100) Subject: put back overflow in setvl, TODO actually set an overflow variable X-Git-Tag: sv_maxu_works-initial~82 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52f2a056e7a0a92b88876268bcfb14795fafeeed;p=openpower-isa.git put back overflow in setvl, TODO actually set an overflow variable --- diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index b78063dd..6169c2e3 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -37,6 +37,9 @@ Pseudo-code: else MVL <- SVSTATE[0:6] # set or get VL if vs = 0 then VL <- SVSTATE[7:13] + else if _RA != 0 then + if (RA) >u 0b1111111 then VL <- 0b1111111 + else VL <- (RA)[57:63] else if _RA != 0 then VL <- (RA)[57:63] else if _RT = 0 then VL <- VLimm[0:6] else if CTR >u 0b1111111 then VL <- 0b1111111