diff options
author | gallatin <gallatin@FreeBSD.org> | 1999-04-08 20:32:51 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 1999-04-08 20:32:51 +0000 |
commit | 30a88222214ec345ee4e6a1e90809dbbc334a196 (patch) | |
tree | 854465a7aab7dfd1319b50d776c19b2b323b2df7 /sys/alpha | |
parent | dbf9f08c56b2396ca30e53bddc5ed25b05b79690 (diff) | |
download | FreeBSD-src-30a88222214ec345ee4e6a1e90809dbbc334a196.zip FreeBSD-src-30a88222214ec345ee4e6a1e90809dbbc334a196.tar.gz |
A quick fix to get kernels building again under EGCS
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/fp_emulate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/alpha/alpha/fp_emulate.c b/sys/alpha/alpha/fp_emulate.c index d6dc165..49759e9 100644 --- a/sys/alpha/alpha/fp_emulate.c +++ b/sys/alpha/alpha/fp_emulate.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: fp_emulate.c,v 1.1 1998/12/04 10:52:47 dfr Exp $ + * $Id: fp_emulate.c,v 1.2 1998/12/30 10:38:58 dfr Exp $ */ #include <sys/param.h> @@ -215,8 +215,10 @@ static fp_register_t fp_cvtql(union alpha_instruction ins, { fp_register_t fb = GETREG(fpregs, ins.f_format.fb); + fp_register_t ret; *status |= FPCR_INV; - return ((fb.q & 0xc0000000) << 32 | (fb.q & 0x3fffffff) << 29); + ret.q = ((fb.q & 0xc0000000) << 32 | (fb.q & 0x3fffffff) << 29); + return ret; } static int fp_emulate(union alpha_instruction ins, struct proc *p) |