This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: mtsprg on BOOKE
- From: James E Wilson <wilson at specifixinc dot com>
- To: jbaker at qnx dot com
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 29 Oct 2004 15:16:19 -0700
- Subject: Re: mtsprg on BOOKE
- References: <41826D12.90502@qnx.com>
On Fri, 2004-10-29 at 09:17, Jeff Baker wrote:
> Why does the following assembly produce errors on BOOKE?
> mtsprg 7, %r3
Looking at the sources, opcode/ppc-opc.c, I see that the mtsprg macro
only takes 2-bit sprg register numbers, which is apparently correct for
the basic ppc architecture, but not for e500. This should probably be
conditional on the architecture choice. I haven't looked at any
architecture or processor manuals to double check.
Meanwhile, "mtsprg7 %r3" will work. Likewise for mfsprg.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com