put back overflow in setvl, TODO actually set an overflow variable
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 26 Aug 2022 14:18:32 +0000 (15:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 26 Aug 2022 14:18:32 +0000 (15:18 +0100)
openpower/isa/simplev.mdwn

index b78063ddde5298b04e77081a3a32f83d1690ca02..6169c2e313da36cbf08447d62a8f20f9da681e97 100644 (file)
@@ -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