powerpc: Add lq/stq emulation
PATCH 1/1 powerpc: Add lq/stq emulation
Recent CPUs support quad word load and store instructions. Add support to the alignment handler for them.
Signed-off-by Anton Blanchard <[email protected]>
---
arch/powerpc/include/asm/emulated_ops.h +1 -0
@@ -54,6 +54,7 @@ extern struct ppc_emulated {#ifdef CONFIG_PPC64 struct ppc_emulated_entry mfdscr;struct ppc_emulated_entry mtdscr; +struct ppc_emulated_entry lq_stq;#endif } ppc_emulated;
arch/powerpc/kernel/align.c +42 -8
80 lines not on this page · raw message
arch/powerpc/kernel/traps.c +1 -0
@@ -1868,6 +1868,7 @@ struct ppc_emulated ppc_emulated = {#ifdef CONFIG_PPC64 WARN_EMULATED_SETUP (mfdscr),WARN_EMULATED_SETUP (mtdscr), + WARN_EMULATED_SETUP(lq_stq), #endif };