mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 08:02:56 +00:00
powerpc: Unify opcode definitions and support
Create a new header that becomes a single location for defining PowerPC opcodes used by code that is either generationg instructions at runtime (fixups, debug, etc.), emulating instructions, or just compiling instructions old assemblers don't know about. We currently don't handle the floating point emulation or alignment decode as both are better handled by the specific decode support they already have. Added support for the new dcbzl, dcbal, msgsnd, tlbilx, & wait instructions since older assemblers don't know about them. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
bb9b903527
commit
16c57b3620
10 changed files with 106 additions and 61 deletions
|
@ -11,9 +11,7 @@
|
|||
*/
|
||||
|
||||
#include <asm/types.h>
|
||||
|
||||
#define PPC_NOP_INSTR 0x60000000
|
||||
#define PPC_LWSYNC_INSTR 0x7c2004ac
|
||||
#include <asm/ppc-opcode.h>
|
||||
|
||||
/* Flags for create_branch:
|
||||
* "b" == create_branch(addr, target, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue