From f70fa8f6cc1f3c1baf487e4ae80b9789f586ff4d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 27 Jul 2020 12:40:43 +0100 Subject: [PATCH] mtmsrd pseudocode accidentally from v3.1B - returning to v3.0B --- openpower/isa/sprset.mdwn | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/openpower/isa/sprset.mdwn b/openpower/isa/sprset.mdwn index f8b361a9c..445bb3644 100644 --- a/openpower/isa/sprset.mdwn +++ b/openpower/isa/sprset.mdwn @@ -158,8 +158,8 @@ Pseudo-code: if L = 0 then MSR[48] <- (RS)[48] | (RS)[49] - MSR[58] <- ((RS)[58] | (RS)[49]) & ¬(MSR[41] & MSR[3] & (¬(RS)[49])) - MSR[59] <- ((RS)[59] | (RS)[49]) & ¬(MSR[41] & MSR[3] & (¬(RS)[49])) + MSR[58] <- (RS)[58] | (RS)[49] + MSR[59] <- (RS)[59] | (RS)[49] MSR[32:40] <- (RS)[32:40] MSR[42:47] <- (RS)[42:47] MSR[49:50] <- (RS)[49:50] @@ -182,11 +182,13 @@ X-Form Pseudo-code: if L = 0 then + if (MSR[29:31] != 0b010) | ((RS)[29:31] != 0b000) then + MSR[29:31] <- (RS)[29:31] MSR[48] <- (RS)[48] | (RS)[49] - MSR[58] <- ((RS)[58] | (RS)[49]) & ¬(MSR[41] & MSR[3] & (¬(RS)[49])) - MSR[59] <- ((RS)[59] | (RS)[49]) & ¬(MSR[41] & MSR[3] & (¬(RS)[49])) + MSR[58] <- (RS)[58] | (RS)[49] + MSR[59] <- (RS)[59] | (RS)[49] MSR[0:2] <- (RS)[0:2] - MSR[3:28] <- (RS)[3:28] + MSR[4:28] <- (RS)[4:28] MSR[32:40] <- (RS)[32:40] MSR[42:47] <- (RS)[42:47] MSR[49:50] <- (RS)[49:50] -- 2.30.2