Skip to content

Commit

Permalink
asm: do not set SDR1 on POWER9
Browse files Browse the repository at this point in the history
This register does not exist in ISAv3.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
npiggin authored and stewartsmith committed Apr 7, 2017
1 parent 0adcaba commit 5e738d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion asm/head.S
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5e738d5

Please sign in to comment.