diff options
Diffstat (limited to 'arch/powerpc/include/asm/ppc-opcode.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 42b1f43b943b..51fb00a20d7e 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2009 Freescale Semicondutor, Inc. | 2 | * Copyright 2009 Freescale Semiconductor, Inc. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License |
@@ -86,6 +86,7 @@ | |||
86 | #define PPC_INST_DCBA_MASK 0xfc0007fe | 86 | #define PPC_INST_DCBA_MASK 0xfc0007fe |
87 | #define PPC_INST_DCBAL 0x7c2005ec | 87 | #define PPC_INST_DCBAL 0x7c2005ec |
88 | #define PPC_INST_DCBZL 0x7c2007ec | 88 | #define PPC_INST_DCBZL 0x7c2007ec |
89 | #define PPC_INST_ICBT 0x7c00002c | ||
89 | #define PPC_INST_ISEL 0x7c00001e | 90 | #define PPC_INST_ISEL 0x7c00001e |
90 | #define PPC_INST_ISEL_MASK 0xfc00003e | 91 | #define PPC_INST_ISEL_MASK 0xfc00003e |
91 | #define PPC_INST_LDARX 0x7c0000a8 | 92 | #define PPC_INST_LDARX 0x7c0000a8 |
@@ -201,6 +202,7 @@ | |||
201 | #define __PPC_MB(s) (((s) & 0x1f) << 6) | 202 | #define __PPC_MB(s) (((s) & 0x1f) << 6) |
202 | #define __PPC_ME(s) (((s) & 0x1f) << 1) | 203 | #define __PPC_ME(s) (((s) & 0x1f) << 1) |
203 | #define __PPC_BI(s) (((s) & 0x1f) << 16) | 204 | #define __PPC_BI(s) (((s) & 0x1f) << 16) |
205 | #define __PPC_CT(t) (((t) & 0x0f) << 21) | ||
204 | 206 | ||
205 | /* | 207 | /* |
206 | * Only use the larx hint bit on 64bit CPUs. e500v1/v2 based CPUs will treat a | 208 | * Only use the larx hint bit on 64bit CPUs. e500v1/v2 based CPUs will treat a |
@@ -263,6 +265,8 @@ | |||
263 | __PPC_RS(t) | __PPC_RA0(a) | __PPC_RB(b)) | 265 | __PPC_RS(t) | __PPC_RA0(a) | __PPC_RB(b)) |
264 | #define PPC_SLBFEE_DOT(t, b) stringify_in_c(.long PPC_INST_SLBFEE | \ | 266 | #define PPC_SLBFEE_DOT(t, b) stringify_in_c(.long PPC_INST_SLBFEE | \ |
265 | __PPC_RT(t) | __PPC_RB(b)) | 267 | __PPC_RT(t) | __PPC_RB(b)) |
268 | #define PPC_ICBT(c,a,b) stringify_in_c(.long PPC_INST_ICBT | \ | ||
269 | __PPC_CT(c) | __PPC_RA0(a) | __PPC_RB(b)) | ||
266 | /* PASemi instructions */ | 270 | /* PASemi instructions */ |
267 | #define LBZCIX(t,a,b) stringify_in_c(.long PPC_INST_LBZCIX | \ | 271 | #define LBZCIX(t,a,b) stringify_in_c(.long PPC_INST_LBZCIX | \ |
268 | __PPC_RT(t) | __PPC_RA(a) | __PPC_RB(b)) | 272 | __PPC_RT(t) | __PPC_RA(a) | __PPC_RB(b)) |