]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Fix hash fault to use TRAP accessor
authorNicholas Piggin <npiggin@gmail.com>
Tue, 16 Mar 2021 10:52:05 +0000 (20:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Mar 2021 02:22:15 +0000 (13:22 +1100)
commitab3c181c41a64f67ee54dbee8f93e92ddef4abbe
treea4bd7df0f5f4d06f29828185f8c0aca5e7f9e2cf
parentbeb5fadff39d7c1d8aca461a62b1096ab89ef939
powerpc/64s: Fix hash fault to use TRAP accessor

Hash faults use the trap vector to decide whether this is an
instruction or data fault. This should use the TRAP accessor
rather than open access regs->trap.

This won't cause a problem at the moment because 64s only uses
trap flags for system call interrupts (the norestart flag), but
that could change if any other trap flags get used in future.

Fixes: f815772a4b3a9 ("powerpc/64s: move the hash fault handling logic to C")
Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210316105205.407767-1-npiggin@gmail.com
arch/powerpc/mm/book3s64/hash_utils.c