Add an inline function wrapper for the mfpvf (Move From Processor Version

Register) instruction.
This commit is contained in:
Benno Rice 2003-02-05 11:59:27 +00:00
parent c31c26450b
commit 43e87179f8

View File

@ -101,6 +101,16 @@ mfdec(void)
return (value);
}
static __inline register_t
mfpvr(void)
{
register_t value;
__asm __volatile ("mfpvr %0" : "=r"(value));
return (value);
}
static __inline void
eieio(void)
{