[Skiboot] [PATCH] asm: do not set SDR1 on POWER9
Nicholas Piggin
npiggin at gmail.com
Thu Apr 6 01:33:20 AEST 2017
This register does not exist in ISAv3.
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
asm/head.S | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/asm/head.S b/asm/head.S
index beb53550..8dabffd1 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -655,7 +655,6 @@ cleanup_tlb:
.global init_shared_sprs
init_shared_sprs:
li %r0,0
- mtspr SPR_SDR1, %r0
mtspr SPR_AMOR, %r0
mfspr %r3,SPR_PVR
@@ -676,18 +675,21 @@ init_shared_sprs:
b 9f
1: /* P7 */
+ mtspr SPR_SDR1, %r0
/* TSCR: Value from pHyp */
LOAD_IMM32(%r3,0x880DE880)
mtspr SPR_TSCR, %r3
b 9f
2: /* P7+ */
+ mtspr SPR_SDR1, %r0
/* TSCR: Recommended value by HW folks */
LOAD_IMM32(%r3,0x88CDE880)
mtspr SPR_TSCR, %r3
b 9f
3: /* P8E/P8 */
+ mtspr SPR_SDR1, %r0
/* TSCR: Recommended value by HW folks */
LOAD_IMM32(%r3,0x8ACC6880)
mtspr SPR_TSCR, %r3
--
2.11.0
More information about the Skiboot
mailing list