From 92274475e009629a6ab61b12dd7bd1ad6a2dda78 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 27 Aug 2021 12:59:44 +0100 Subject: [PATCH] --- openpower/sv/branches.mdwn | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openpower/sv/branches.mdwn b/openpower/sv/branches.mdwn index 2312ec67e..2d2347a5e 100644 --- a/openpower/sv/branches.mdwn +++ b/openpower/sv/branches.mdwn @@ -287,14 +287,17 @@ if VLSET and cond_ok = VSb then SVSTATE.VL = new_srcstep ``` -v3.0B branch pseudocode including LRu +v3.0B branch pseudocode including LRu and CTR skipping ``` if (mode_is_64bit) then M <- 0 else M <- 32 -if ¬BO[2] then CTR <- CTR - 1 -ctr_ok <- BO[2] | ((CTR[M:63] != 0) ^ BO[3]) cond_ok <- BO[0] | ¬(CR[BI+32] ^ BO[1]) +ctrdec = ¬BO[2] +if CSk & (cond_ok ^ CTi) then + ctrdec = 0b0 +if ctrdec then CTR <- CTR - 1 +ctr_ok <- BO[2] | ((CTR[M:63] != 0) ^ BO[3]) lr_ok <- SVRMmode.LRu if ctr_ok & cond_ok then if AA then NIA <-iea EXTS(BD || 0b00) -- 2.30.2