This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Handle mtsprg and mfsprg properly for BookE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]