From fd4165fdd8b82b15c2bfc7fc46763ce92f9c958d Mon Sep 17 00:00:00 2001 From: lkcl Date: Wed, 2 Dec 2020 12:04:36 +0000 Subject: [PATCH] --- openpower/sv/setvl.mdwn | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openpower/sv/setvl.mdwn b/openpower/sv/setvl.mdwn index e52300063..5650694e7 100644 --- a/openpower/sv/setvl.mdwn +++ b/openpower/sv/setvl.mdwn @@ -31,13 +31,15 @@ Note that setmvli is a pseudo-op, based on RA/RT=0, and setvli likewise // set VL (or not). // 3 options: from SPR, from immed, from ra if vs { - if ra == 0 { - VL = SPR[SV_VL] + // VL to be sourced from fields/regs + if ra != 0 { + VL = GPR[ra] } else { VL = vlimmed } - } elif ra != 0 { - VL = GPR[ra] + } else { + // VL not to change, source from SPR + VL = SPR[SV_VL] } // set MVL (or not). -- 2.30.2