powerpc: Emulate the dcbz instruction
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 30 Aug 2017 04:12:36 +0000 (14:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:39:54 +0000 (16:39 +1000)
commitb2543f7b20bb2a551ed340447d7303f0ce4644f1
tree782ce4a44ad68bd1d372f0c77dd8542298b1deeb
parent1f41fb790460acf432f826f4aeeff6f7da891ff7
powerpc: Emulate the dcbz instruction

This adds code to analyse_instr() and emulate_step() to understand the
dcbz (data cache block zero) instruction.  The emulate_dcbz() function
is made public so it can be used by the alignment handler in future.
(The apparently unnecessary cropping of the address to 32 bits is
there because it will be needed in that situation.)

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/sstep.h
arch/powerpc/lib/sstep.c