From 52f2a056e7a0a92b88876268bcfb14795fafeeed Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 26 Aug 2022 15:18:32 +0100 Subject: [PATCH] put back overflow in setvl, TODO actually set an overflow variable --- openpower/isa/simplev.mdwn | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2