Home | History | Annotate | Download | only in fpe
History log of /src/sys/arch/m68k/fpe/fpu_fscale.c
RevisionDateAuthorComments
 1.17  06-Jan-2025  isaki m68k/fpe: Avoid an illegal mod/reg before decoding it.
This also works for machines with FPU.
If the kernel defines FPU_EMULATE, even illegal FPU instructions in the real
6888x machines, the FPE will be executed by F line exception. So the FPE
must raise SIGILL appropriately for these.
 1.16  26-Mar-2013  isaki u_int -> uint32_t
 1.15  18-Jul-2011  isaki branches: 1.15.2; 1.15.12;
fix indent again.
- "Second level indents are four spaces." pointed out by tsutsui@
- fold long line.
 1.14  18-Jul-2011  isaki fix indent. no functional changes.
 1.13  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.12  11-Dec-2005  christos branches: 1.12.78; 1.12.86; 1.12.92;
merge ktrace-lwp.
 1.11  15-Jul-2003  lukem __KERNEL_RCSID()
 1.10  30-May-1999  briggs branches: 1.10.36;
PR 7220 from Ken Nakata:
I've fixed most (not all) m68k FPE bugs that give bogus
calculation results, esp. fsqrt instruction. Also, the internal FP
representation has been reduced from 115-bit mantissa to 67-bit
mantissa which reduced the required mantissa operation roughly by one
fourth. I've done an extensive (though not exhaustive - it's
impossible!) test on the internal routines by feeding them randomly
generated FP numbers, and found that the new code is more precise than
MC68040 FPU (it seems to have a rounding bug).

[ Only change was to keep fpu_calcea.c's name instead of renaming to
fpu_ea.c in Ken's patch. --akb ]
 1.9  03-Nov-1997  is branches: 1.9.8; 1.9.10; 1.9.12;
Back out last change, which was a thinko.
 1.8  02-Nov-1997  is Add ftwotox emulation, by using the fscale emulation routine (preload
destination register bit pattern with 1.0), which automatically provides
corner case handling.
Missing ftwotox emulation originally reported by Norman Mackenzie in PR 4237,
but he proposed a different implementation.
 1.7  09-Oct-1997  is Don't forget to set the scale variable even if we dont need to sign-extend it.
From PR 4236 by Norman Mackenzie.
 1.6  13-Oct-1996  christos branches: 1.6.10;
backout previous kprintf change
 1.5  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.4  15-May-1996  leo Fix "might be used uninitialized" warnings.
 1.3  30-Apr-1996  briggs Update for -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized.
 1.2  05-Nov-1995  briggs Fixes from Ken Nakata. Mainly renaming debug_level to fpu_debug_level.
 1.1  03-Nov-1995  briggs Still incomplete, but much more complete FPE from Ken Nakata
<kenn@remus.rutgers.edu>. This emulator does not yet emulate
the following functions:
FSINH, FETOXM1, FTANH, FATAN, FASIN, FATANH, FSIN, FTAN,
FETOX, FTWOTOX, FTENTOX, FCOSH, FACOS, FCOS, FSINCOS
It is sufficient, however, to allow programs like df, w, and newfs,
to run to completion with correct results.
Portions of this code were based on the sparc fpe and on initial
work by gwr.
 1.6.10.1  14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.9.12.1  30-Nov-1999  itojun bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code). Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.
 1.9.10.1  21-Jun-1999  thorpej Sync w/ -current.
 1.9.8.2  06-Feb-2000  he Apply patch (requested by is):
Revert floating point emulation software to the version released
as NetBSD 1.4. The upgrade done in 1.4.1 had problems.
 1.9.8.1  21-Jun-1999  perry pullup 1.9->1.10 (briggs): fix FPE
 1.10.36.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.36.2  18-Sep-2004  skrll Sync with HEAD.
 1.10.36.1  03-Aug-2004  skrll Sync with HEAD
 1.12.92.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.86.1  28-Apr-2009  skrll Sync with HEAD.
 1.12.78.1  04-May-2009  yamt sync with head.
 1.15.12.1  23-Jun-2013  tls resync from head
 1.15.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed