From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72208 invoked by alias); 21 Jan 2020 09:28:45 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 72163 invoked by uid 9078); 21 Jan 2020 09:28:45 -0000 Date: Tue, 21 Jan 2020 09:28:00 -0000 Message-ID: <20200121092845.72161.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] riscv: Use current pseudo-instructions to access the FCSR register X-Act-Checkin: newlib-cygwin X-Git-Author: Keith Packard X-Git-Refname: refs/heads/master X-Git-Oldrev: 4261a8f5cac478ee299f0feb3ae478dbf287427e X-Git-Newrev: 954504ea1424069c7c8d34fe771a505df8b8e3e1 X-SW-Source: 2020-q1/txt/msg00004.txt https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=954504ea1424069c7c8d34fe771a505df8b8e3e1 commit 954504ea1424069c7c8d34fe771a505df8b8e3e1 Author: Keith Packard 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 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; }