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:
parent
4261a8f5ca
commit
954504ea14
|
@ -15,14 +15,14 @@
|
||||||
static void
|
static void
|
||||||
fssr(unsigned value)
|
fssr(unsigned value)
|
||||||
{
|
{
|
||||||
asm volatile ("fssr %0" :: "r"(value));
|
asm volatile ("fscsr %0" :: "r"(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned
|
static unsigned
|
||||||
frsr()
|
frsr()
|
||||||
{
|
{
|
||||||
unsigned value;
|
unsigned value;
|
||||||
asm volatile ("frsr %0" : "=r" (value));
|
asm volatile ("frcsr %0" : "=r" (value));
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue