Add ia64_set_fpsr().

This commit is contained in:
dfr 2001-10-21 14:00:59 +00:00
parent 3a9c8cf20b
commit 0e3e05fd5d

View File

@ -246,6 +246,15 @@ ia64_get_psr(void)
return result;
}
/*
* Set the value of ar.fpsr
*/
static __inline void
ia64_set_fpsr(u_int64_t v)
{
__asm __volatile("mov ar.fpsr=%0" :: "r" (v));
}
/*
* Read the value of ar.k0.
*/