linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/15] powerpc/a2: Add some #defines for A2 specific instructions
@ 2011-04-15  8:31 Michael Ellerman
  2011-04-15  8:31 ` [PATCH 02/15] of: Export of_irq_find_parent() Michael Ellerman
                   ` (13 more replies)
  0 siblings, 14 replies; 27+ messages in thread
From: Michael Ellerman @ 2011-04-15  8:31 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Jimi Xenidis, jack, imunsie, David Gibson

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
 arch/powerpc/include/asm/ppc-opcode.h |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h
index 384a96d..3e25b25 100644
--- a/arch/powerpc/include/asm/ppc-opcode.h
+++ b/arch/powerpc/include/asm/ppc-opcode.h
@@ -59,6 +59,14 @@
 #define PPC_INST_NAP			0x4c000364
 #define PPC_INST_SLEEP			0x4c0003a4
 
+/* A2 specific instructions */
+#define PPC_INST_ERATWE			0x7c0001a6
+#define PPC_INST_ERATRE			0x7c000166
+#define PPC_INST_ERATILX		0x7c000066
+#define PPC_INST_ERATIVAX		0x7c000666
+#define PPC_INST_ERATSX			0x7c000126
+#define PPC_INST_ERATSX_DOT		0x7c000127
+
 /* macros to insert fields into opcodes */
 #define __PPC_RA(a)	(((a) & 0x1f) << 16)
 #define __PPC_RB(b)	(((b) & 0x1f) << 11)
@@ -70,6 +78,8 @@
 #define __PPC_XT(s)	__PPC_XS(s)
 #define __PPC_T_TLB(t)	(((t) & 0x3) << 21)
 #define __PPC_WC(w)	(((w) & 0x3) << 21)
+#define __PPC_WS(w)	(((w) & 0x1f) << 11)
+
 /*
  * Only use the larx hint bit on 64bit CPUs. e500v1/v2 based CPUs will treat a
  * larx with EH set as an illegal instruction.
@@ -116,6 +126,21 @@
 #define PPC_TLBIVAX(a,b)	stringify_in_c(.long PPC_INST_TLBIVAX | \
 					__PPC_RA(a) | __PPC_RB(b))
 
+#define PPC_ERATWE(s, a, w)	stringify_in_c(.long PPC_INST_ERATWE | \
+					__PPC_RS(s) | __PPC_RA(a) | __PPC_WS(w))
+#define PPC_ERATRE(s, a, w)	stringify_in_c(.long PPC_INST_ERATRE | \
+					__PPC_RS(s) | __PPC_RA(a) | __PPC_WS(w))
+#define PPC_ERATILX(t, a, b)	stringify_in_c(.long PPC_INST_ERATILX | \
+					__PPC_T_TLB(t) | __PPC_RA(a) | \
+					__PPC_RB(b))
+#define PPC_ERATIVAX(s, a, b)	stringify_in_c(.long PPC_INST_ERATIVAX | \
+					__PPC_RS(s) | __PPC_RA(a) | __PPC_RB(b))
+#define PPC_ERATSX(t, a, w)	stringify_in_c(.long PPC_INST_ERATSX | \
+					__PPC_RS(t) | __PPC_RA(a) | __PPC_RB(b))
+#define PPC_ERATSX_DOT(t, a, w)	stringify_in_c(.long PPC_INST_ERATSX_DOT | \
+					__PPC_RS(t) | __PPC_RA(a) | __PPC_RB(b))
+
+
 /*
  * Define what the VSX XX1 form instructions will look like, then add
  * the 128 bit load store instructions based on that.
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2011-04-18 22:50 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15  8:31 [PATCH 01/15] powerpc/a2: Add some #defines for A2 specific instructions Michael Ellerman
2011-04-15  8:31 ` [PATCH 02/15] of: Export of_irq_find_parent() Michael Ellerman
2011-04-15  8:31 ` [PATCH 03/15] powerpc: Add SCOM infrastructure Michael Ellerman
2011-04-15  8:31 ` [PATCH 04/15] powerpc/xics: xics.h relies on linux/interrupt.h Michael Ellerman
2011-04-15  8:31 ` [PATCH 05/15] powerpc/xics: Move irq_host matching into the ics backend Michael Ellerman
2011-04-15  8:32 ` [PATCH 06/15] powerpc/nvram: Search for nvram using compatible Michael Ellerman
2011-04-15  8:32 ` [PATCH 07/15] powerpc: Move CPU_FTRS_BASE_BOOK3E into cputable.h & update FTR masks Michael Ellerman
2011-04-18 12:37   ` Kumar Gala
2011-04-15  8:32 ` [PATCH 08/15] powerpc: Add A2 cpu support Michael Ellerman
2011-04-15  8:32 ` [PATCH 09/15] powerpc: Add TLB size detection for TYPE_3E MMUs Michael Ellerman
2011-04-15  8:32 ` [PATCH 10/15] powerpc: Define slb0_limit() for BOOK3E Michael Ellerman
2011-04-17  5:58   ` Olof Johansson
2011-04-18 12:42   ` Kumar Gala
2011-04-18 21:41     ` Benjamin Herrenschmidt
2011-04-18 22:30       ` Kumar Gala
2011-04-18 22:50         ` Benjamin Herrenschmidt
2011-04-15  8:32 ` [PATCH 12/15] powerpc/book3e: Use way 3 for linear mapping bolted entry Michael Ellerman
2011-04-18 12:43   ` Kumar Gala
2011-04-18 21:40     ` Benjamin Herrenschmidt
2011-04-18 22:27       ` Kumar Gala
2011-04-18 22:44         ` Benjamin Herrenschmidt
2011-04-15  8:32 ` [PATCH 11/15] powerpc: Index crit/dbg/mcheck stacks using cpu number on 64bit Michael Ellerman
2011-04-15  8:32 ` [PATCH 13/15] powerpc/book3e: Flush IPROT protected TLB entries leftover by firmware Michael Ellerman
2011-04-15  8:32 ` [PATCH 14/15] powerpc: Add WSP platform Michael Ellerman
2011-04-18 12:46   ` Kumar Gala
2011-04-18 21:39     ` Benjamin Herrenschmidt
2011-04-15  8:32 ` [PATCH 15/15] powerpc: Add early debug for WSP platforms Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).