summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/sstep.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2017-08-30 14:12:36 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-09-01 16:39:54 +1000
commitb2543f7b20bb2a551ed340447d7303f0ce4644f1 (patch)
tree782ce4a44ad68bd1d372f0c77dd8542298b1deeb /arch/powerpc/include/asm/sstep.h
parent1f41fb790460acf432f826f4aeeff6f7da891ff7 (diff)
downloadtalos-obmc-linux-b2543f7b20bb2a551ed340447d7303f0ce4644f1.tar.gz
talos-obmc-linux-b2543f7b20bb2a551ed340447d7303f0ce4644f1.zip
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>
Diffstat (limited to 'arch/powerpc/include/asm/sstep.h')
-rw-r--r--arch/powerpc/include/asm/sstep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/sstep.h b/arch/powerpc/include/asm/sstep.h
index 474a99255689..793639a5aa5e 100644
--- a/arch/powerpc/include/asm/sstep.h
+++ b/arch/powerpc/include/asm/sstep.h
@@ -84,6 +84,7 @@ enum instruction_type {
#define DCBTST 0x200
#define DCBT 0x300
#define ICBI 0x400
+#define DCBZ 0x500
/* VSX flags values */
#define VSX_FPCONV 1 /* do floating point SP/DP conversion */
@@ -155,3 +156,4 @@ extern void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg,
const void *mem);
extern void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg,
void *mem);
+extern int emulate_dcbz(unsigned long ea, struct pt_regs *regs);
OpenPOWER on IntegriCloud