This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Full POWER7 binutils support
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>, Edmar Wienskoski-RA8797 <edmar at freescale dot com>
- Date: Thu, 26 Feb 2009 21:41:42 +1030
- Subject: Re: [PATCH] Full POWER7 binutils support
- References: <1235629310.6808.54.camel@otta>
On Thu, Feb 26, 2009 at 12:21:50AM -0600, Peter Bergner wrote:
> -typedef unsigned long ppc_cpu_t;
> +#include "bfd_stdint.h"
> +
> +typedef uint64_t ppc_cpu_t;
>
> /* The opcode table is an array of struct powerpc_opcode. */
>
> @@ -162,6 +164,9 @@ extern const int powerpc_num_opcodes;
> /* Opcode is supported by Vector-Scalar (VSX) Unit */
> #define PPC_OPCODE_VSX 0x80000000
>
> +/* Opcode is only supported by Power7 architecture. */
> +#define PPC_OPCODE_POWER7 0x100000000ULL
> +
0x8000 is available since your 2009-01-09 change, so no need for
uint64_t.
> +{"dcbtstt", X(31,246)|(0x10<<21), X_MASK|(0x1f<<21), POWER7, PPCNONE, {RA, RB}},
XRT(31,246,0x10), XRT_MASK
Similarly for dcbtt
OK with those changes.
--
Alan Modra
Australia Development Lab, IBM