[PATCH] Handle mtsprg and mfsprg properly for BookE
Alan Modra
amodra@bigpond.net.au
Thu Mar 17 15:36:00 GMT 2005
On Wed, Mar 16, 2005 at 10:29:20AM -0500, Jeff Baker wrote:
> The IBM PPC440 doesn't support reading from the supervisory SPR's (you
> get garbage values back) - the mfsprg's won't be too useful. E.g.:
>
> running the following code (MSR.PR=0) (PVR=0x41020481):
>
> li %r7,-1
> li %r8,-1
> li %r6,1
> mtspr 276,%r6
> mfspr %r7,260
> mfspr %r8,276
>
> leaves R7 with a 1 and R8 with a 0.
That's good enough for me. We'll leave things as they are.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list