From 18274acbcd56c827e238bdfb43f7cf416229e48f Mon Sep 17 00:00:00 2001 From: ross Date: Thu, 26 Apr 2001 03:23:18 +0000 Subject: [PATCH] Delete the trapb ops bracketing mf_fpcr, they aren't needed. Change the trapb ops bracketing mt_fpcr to excb ops. --- lib/libc/arch/alpha/gen/fpsetround.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/libc/arch/alpha/gen/fpsetround.c b/lib/libc/arch/alpha/gen/fpsetround.c index 2970388399a0..067f8bdb968d 100644 --- a/lib/libc/arch/alpha/gen/fpsetround.c +++ b/lib/libc/arch/alpha/gen/fpsetround.c @@ -1,4 +1,4 @@ -/* $NetBSD: fpsetround.c,v 1.3 2000/06/14 17:24:58 cgd Exp $ */ +/* $NetBSD: fpsetround.c,v 1.4 2001/04/26 03:23:18 ross Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -44,18 +44,16 @@ fpsetround(rnd_dir) double fpcrval; u_int64_t old, new; - __asm__("trapb"); __asm__("mf_fpcr %0" : "=f" (fpcrval)); - __asm__("trapb"); old = *(u_int64_t *)&fpcrval; new = old & ~(long)0x0c00000000000000; new = (long)rnd_dir << 58; *(u_int64_t *)&fpcrval = new; - __asm__("trapb"); + __asm__("excb"); __asm__("mt_fpcr %0" : : "f" (fpcrval)); - __asm__("trapb"); + __asm__("excb"); return ((old >> 58) & 0x3); }