From 923961d3c598d9eeeaae184e50a448404f4b1d8f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 13 Mar 2021 16:08:39 +0000 Subject: [PATCH] corrections to setvl from debugging --- openpower/isa/simplev.mdwn | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index d283db966..350a2e89f 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -9,22 +9,21 @@ Pseudo-code: VLimm <- SVi + 1 if vs = 1 then - if RA = 0 then - VL <- (RA)[57:63] + if _RA != 0 then + VL <- (RA|0)[57:63] else - VL <- VLimm[2:8] + VL <- VLimm[1:7] else VL <- SVSTATE[7:13] if ms = 1 then - MVL <- VLimm[2:8] + MVL <- VLimm[1:7] else MVL <- SVSTATE[0:6] if VL > MVL then VL = MVL - SVSTATE[0:6] = MVL - SVSTATE[7:13] = VL - if RT != 0 then - RT <- VL || [0] * 58 + SVSTATE[0:6] <- MVL + SVSTATE[7:13] <- VL + RT <- [0]*57 || VL Special Registers Altered: -- 2.30.2