powerpc/8xx: Use SPRN_SPRG_SCRATCH2 in DTLB miss exception
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 24 Nov 2020 15:24:58 +0000 (15:24 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Dec 2020 12:48:13 +0000 (23:48 +1100)
commit89eecd938cab80f0da18abbd2ed997a521f83f01
treed073ccf6ef54e78b793d7fd29a4880264d9675ee
parenta314ea5abf6dbaf35f14c9bd1d93105260fb9336
powerpc/8xx: Use SPRN_SPRG_SCRATCH2 in DTLB miss exception

Use SPRN_SPRG_SCRATCH2 in DTLB miss exception instead of DAR
in order to be similar to ITLB miss exception.

This also simplifies mpc8xx_pmu_del()

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e3cc8f023ef40e1e8ae144e4dd1330a5ff022528.1606231483.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_8xx.S
arch/powerpc/perf/8xx-pmu.c