From: <aot...@us...> - 2005-07-17 00:15:03
|
Update of /cvsroot/gc-linux/binutils/include/opcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4543/include/opcode Modified Files: ppc.h Log Message: From: Anders M Montonen <amm...@cc...> To: gc-...@li... Subject: [Gc-linux-devel] Gekko binutils patch Date: Sun, 2 May 2004 19:11:02 +0300 (EET DST) Hi, this is a in-progress patch for adding support for the Gekko instructions to binutils (as and objdump). It's not well-tested at all, and it's incomplete because the load and store instructions are still missing because I don't really understand their encoding (eg. what do the W and I fields represent?) The patch is against current CVS, and any help testing/fixing/whatever is appreciated. To assemble Gekko instructions, pass "-mgekko" to as, and to disassemble them pass "-Mgekko" to objdump. -Anders Index: ppc.h =================================================================== RCS file: /cvsroot/gc-linux/binutils/include/opcode/ppc.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- ppc.h 16 Jul 2005 22:54:04 -0000 1.1.1.1 +++ ppc.h 17 Jul 2005 00:14:51 -0000 1.2 @@ -134,6 +134,9 @@ /* Opcode is supported by machine check APU. */ #define PPC_OPCODE_RFMCI 0x800000 +/* Opcode is only supported by PowerPC Gekko processor */ +#define PPC_OPCODE_GEKKO 0x1000000 + /* A macro to extract the major opcode from an instruction. */ #define PPC_OP(i) (((i) >> 26) & 0x3f) |