This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix power7 ppc64 binaries loading
On Tue, Mar 03, 2009 at 11:30:27PM +0000, Joseph S. Myers wrote:
> On Wed, 4 Mar 2009, Alan Modra wrote:
>
> > Google for E500 ABI. It should only be enabled when you are
> > assembling for e500. I've committed the following to mainline
> > and 2.19 branch.
> >
> > * config/tc-ppc.c (md_assemble): APUinfo only for e500.
>
> > - if (ppc_cpu & (PPC_OPCODE_SPE
> > - | PPC_OPCODE_ISEL | PPC_OPCODE_EFS
> > - | PPC_OPCODE_BRLOCK | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK
> > - | PPC_OPCODE_RFMCI))
> > + if ((ppc_cpu & PPC_OPCODE_E500MC) != 0)
>
> Most e500 are not e500mc (indeed, e500mc is mostly like classic PowerPC at
> the userspace level, not like e500).
The check is right - I had to go look in the assembler option parsing
to figure it out though, so might deserve a comment.
--
Daniel Jacobowitz
CodeSourcery