[PPC64] Allow emulation of mfpvr on ppc64 kernel

David Gibson david at gibson.dropbear.id.au
Fri Mar 11 11:11:20 EST 2005


On Thu, Mar 10, 2005 at 11:17:03PM +0100, Ingo Oeser wrote:
> David Gibson wrote:
> > Andrew, please apply.
> >
> > Allow userspace programs on ppc64 to use the (privileged) mfpvr
> > instruction to determine the processor type.  At the moment it
> > emulates the instruction to provide the real PVR value, though it
> > could be made to lie in future if for some reason we wish to restrict
> > what CPU features userspace uses.
> 
> Why not putting the required information into the AUX table
> when executing your ELF programs? I loved this feature in the
> ix86 arch.

Because this is easy and is the way we already do it on ppc32..?

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist.  NOT _the_ _other_ _way_
				| _around_!
http://www.ozlabs.org/people/dgibson



More information about the Linuxppc64-dev mailing list