Skip to contentSkip to conversation

powerpc: Add lq/stq emulation

PATCH New Anton Blanchard 1 participant 1 message Mar 28, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

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.

---

arch/powerpc/include/asm/emulated_ops.h +1 -0
Index: b/arch/powerpc/include/asm/emulated_ops.h
===================================================================
@@ -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
Index: b/arch/powerpc/kernel/traps.c
===================================================================
@@ -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
 };