diff options
author | Michael Neuling <mikey@neuling.org> | 2012-06-25 09:33:13 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-10 05:18:00 -0400 |
commit | 4404a9f98f0d426907a926c094a2dfbaa17b796d (patch) | |
tree | f833ddf77a01abd9128d82731550d7433a239db3 /arch/powerpc/include/asm/ppc-opcode.h | |
parent | 9a13a524ba37b6634a9b2bb08f3021f161b83513 (diff) |
powerpc/pasemi: Move lbz/stbciz to ppc-opcode.h
move lbz/stbciz to ppc-opcode.h.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/ppc-opcode.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 015a3289e222..73eecd1fd5cc 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -140,6 +140,8 @@ | |||
140 | #define PPC_INST_NEG 0x7c0000d0 | 140 | #define PPC_INST_NEG 0x7c0000d0 |
141 | #define PPC_INST_BRANCH 0x48000000 | 141 | #define PPC_INST_BRANCH 0x48000000 |
142 | #define PPC_INST_BRANCH_COND 0x40800000 | 142 | #define PPC_INST_BRANCH_COND 0x40800000 |
143 | #define PPC_INST_LBZCIX 0x7c0006aa | ||
144 | #define PPC_INST_STBCIX 0x7c0007aa | ||
143 | 145 | ||
144 | /* macros to insert fields into opcodes */ | 146 | /* macros to insert fields into opcodes */ |
145 | #define __PPC_RA(a) (((a) & 0x1f) << 16) | 147 | #define __PPC_RA(a) (((a) & 0x1f) << 16) |
@@ -219,6 +221,11 @@ | |||
219 | __PPC_RS(t) | __PPC_RA(a) | __PPC_RB(b)) | 221 | __PPC_RS(t) | __PPC_RA(a) | __PPC_RB(b)) |
220 | #define PPC_SLBFEE_DOT(t, b) stringify_in_c(.long PPC_INST_SLBFEE | \ | 222 | #define PPC_SLBFEE_DOT(t, b) stringify_in_c(.long PPC_INST_SLBFEE | \ |
221 | __PPC_RT(t) | __PPC_RB(b)) | 223 | __PPC_RT(t) | __PPC_RB(b)) |
224 | /* PASemi instructions */ | ||
225 | #define LBZCIX(t,a,b) stringify_in_c(.long PPC_INST_LBZCIX | \ | ||
226 | __PPC_RT(t) | __PPC_RA(a) | __PPC_RB(b)) | ||
227 | #define STBCIX(s,a,b) stringify_in_c(.long PPC_INST_STBCIX | \ | ||
228 | __PPC_RS(s) | __PPC_RA(a) | __PPC_RB(b)) | ||
222 | 229 | ||
223 | /* | 230 | /* |
224 | * Define what the VSX XX1 form instructions will look like, then add | 231 | * Define what the VSX XX1 form instructions will look like, then add |