public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] riscv: Use current pseudo-instructions to access the FCSR register Date: Tue, 21 Jan 2020 09:28:00 -0000 [thread overview] Message-ID: <20200121092845.72161.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=954504ea1424069c7c8d34fe771a505df8b8e3e1 commit 954504ea1424069c7c8d34fe771a505df8b8e3e1 Author: Keith Packard <keithp@keithp.com> Date: Mon Jan 20 22:46:34 2020 -0800 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> Diff: --- newlib/libc/machine/riscv/ieeefp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newlib/libc/machine/riscv/ieeefp.c b/newlib/libc/machine/riscv/ieeefp.c index 9094cc6..68ace0b 100644 --- a/newlib/libc/machine/riscv/ieeefp.c +++ b/newlib/libc/machine/riscv/ieeefp.c @@ -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; }
reply other threads:[~2020-01-21 9:28 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200121092845.72161.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).