]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix handling of alignment interrupt on dcbz instruction
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 13 Sep 2017 04:51:24 +0000 (14:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Sep 2017 22:41:18 +0000 (08:41 +1000)
commit9247100ea7e5a2926652d1f0b4005a131581cccd
treeae728c691c85dbe244a163f02dc318e3871811c5
parentd94caf58e9dd8a65f4bcc36d11d9b90136c5126a
powerpc: Fix handling of alignment interrupt on dcbz instruction

This fixes the emulation of the dcbz instruction in the alignment
interrupt handler.  The error was that we were comparing just the
instruction type field of op.type rather than the whole thing,
and therefore the comparison "type != CACHEOP + DCBZ" was always
true.

Fixes: 052da8f5d238 ("powerpc: Use instruction emulation infrastructure to handle alignment faults")
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Tested-by: Michal Sojka <sojkam1@fel.cvut.cz>
Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/align.c