]> sourceware.org Git - newlib-cygwin.git/commitdiff
riscv: Use current pseudo-instructions to access the FCSR register
authorKeith Packard <keithp@keithp.com>
Tue, 21 Jan 2020 06:46:34 +0000 (22:46 -0800)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 21 Jan 2020 09:28:35 +0000 (10:28 +0100)
Use fscsr and frcsr to store and read the FCSR register instead of
fssr and frsr.

Signed-off-by: Keith Packard <keithp@keithp.com>
newlib/libc/machine/riscv/ieeefp.c

index 9094cc651bd7ffb53b31907686b037d7ad9b4e0e..68ace0b09664ff91d14016a044194df3ea76fc1f 100644 (file)
 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;
 }
 
This page took 0.029604 seconds and 5 git commands to generate.