]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36fff112ada2955fb5bf8a926a47b84e700d765f
tree782ce4a44ad68bd1d372f0c77dd8542298b1deeb
parent2899e9eb88c8df546ee156bce26542fb5b985fe8
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