Subject: Re: spr register
To: Emmanuel Dreyfus <email@example.com>
From: David Edelsohn <firstname.lastname@example.org>
Date: 11/16/2002 15:16:31
>>>>> Emmanuel Dreyfus writes:
Emmanuel> In one special purpose register, there is the type of the CPU stored. I
Emmanuel> need it for COMPAT_MACH. Is there a place accessible in C where we store
Emmanuel> it? If not, what assembly would I need to get the value?
Do you mean the Processor Version Register (PVR)? You can get the
value from that register with the
assembly language, where "rD" is the destination register you choose.
The assembler converts this to a mfspr instruction with the appropriate
SPR number for the PVR.