Re: [PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-10 Thread Paul Mackerras
Ingo Oeser writes: > Why not putting the required information into the AUX table > when executing your ELF programs? I loved this feature in the > ix86 arch. We do put an AT_HWCAP entry in the aux table, which is a bitmap of features supported by the cpu. But for some applications, such as

Re: [PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-10 Thread David Gibson
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

Re: [PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-10 Thread Ingo Oeser
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

Re: [PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-10 Thread Ingo Oeser
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

Re: [PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-10 Thread David Gibson
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,

Re: [PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-10 Thread Paul Mackerras
Ingo Oeser writes: Why not putting the required information into the AUX table when executing your ELF programs? I loved this feature in the ix86 arch. We do put an AT_HWCAP entry in the aux table, which is a bitmap of features supported by the cpu. But for some applications, such as

[PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-09 Thread David Gibson
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

[PPC64] Allow emulation of mfpvr on ppc64 kernel

2005-03-09 Thread David Gibson
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