Back out last change, which was a thinko.
This commit is contained in:
parent
73cb26cbd6
commit
5c7d3c3f2c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fpu_emulate.c,v 1.18 1997/11/02 22:02:46 is Exp $ */
|
||||
/* $NetBSD: fpu_emulate.c,v 1.19 1997/11/03 11:10:48 is Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Gordon W. Ross
|
||||
|
@ -212,11 +212,6 @@ fpu_emulate(frame, fpf)
|
|||
if (fpu_debug_level & DL_INSN)
|
||||
printf(" fpu_emulate: fscale\n");
|
||||
sig = fpu_emul_fscale(&fe, &insn);
|
||||
} else if ((word & 0xa07f) == 0x11) {
|
||||
/* ftwotox */
|
||||
if (fpu_debug_level & DL_INSN)
|
||||
printf(" fpu_emulate: ftwotox\n");
|
||||
sig = fpu_emul_fscale(&fe, &insn);
|
||||
} else {
|
||||
if (fpu_debug_level & DL_INSN)
|
||||
printf(" fpu_emulte: other type0\n");
|
||||
|
@ -806,11 +801,9 @@ fpu_emul_arith(fe, insn)
|
|||
res = fpu_etox(fe);
|
||||
break;
|
||||
|
||||
#if 0 /* handled by fscale now */
|
||||
case 0x11: /* ftwotox */
|
||||
res = fpu_twotox(fe);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case 0x12: /* ftentox */
|
||||
res = fpu_tentox(fe);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fpu_fscale.c,v 1.8 1997/11/02 22:02:47 is Exp $ */
|
||||
/* $NetBSD: fpu_fscale.c,v 1.9 1997/11/03 11:10:41 is Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Ken Nakata
|
||||
|
@ -181,15 +181,6 @@ fpu_emul_fscale(fe, insn)
|
|||
|
||||
/* it's barbaric but we're going to operate directly on
|
||||
* the dst operand's bit pattern */
|
||||
|
||||
if ((word1 & 0x7f) == 0x11) {
|
||||
/* ftwotox: preload reg with 1.0 */
|
||||
fpregs[regnum * 3 + 0] = 0x3fff0000;
|
||||
fpregs[regnum * 3 + 1] = 0x80000000;
|
||||
fpregs[regnum * 3 + 2] = 0x00000000;
|
||||
fe->fe_f2.fp_class = FPC_NUM;
|
||||
}
|
||||
|
||||
sign = fpregs[regnum * 3] & 0x80000000;
|
||||
exp = (fpregs[regnum * 3] & 0x7fff0000) >> 16;
|
||||
m0 = fpregs[regnum * 3 + 1];
|
||||
|
|
Loading…
Reference in New Issue