riscv: Use current pseudo-instructions to access the FCSR register

Use fscsr and frcsr to store and read the FCSR register instead of
fssr and frsr.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2020-01-20 22:46:34 -08:00 committed by Corinna Vinschen
parent 4261a8f5ca
commit 954504ea14
1 changed files with 2 additions and 2 deletions

View File

@ -15,14 +15,14 @@
static void
fssr(unsigned value)
{
asm volatile ("fssr %0" :: "r"(value));
asm volatile ("fscsr %0" :: "r"(value));
}
static unsigned
frsr()
{
unsigned value;
asm volatile ("frsr %0" : "=r" (value));
asm volatile ("frcsr %0" : "=r" (value));
return value;
}