The NetBSD Project

CVS log for src/sys/arch/m68k/fpe/fpu_emulate.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / m68k / fpe

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Sep 17 13:14:08 2023 UTC (14 months, 3 weeks ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
word was changed to sval at rev 1.39, but DPRINTF values were not updated.

Fixes DEBUG_FPE enabled build for 68k FPE code.

Revision 1.38.30.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:43 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.38.30.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.30.1: +3 -3 lines
Merge changes from current as of 20200406

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Dec 27 07:41:23 2019 UTC (4 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
s/opration/operation/

Revision 1.38.30.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:26 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +25 -23 lines
Sync with HEAD

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Apr 6 03:06:26 2019 UTC (5 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +25 -23 lines
Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.

Revision 1.36.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:10 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.36.12.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.12.1: +2 -2 lines
Rebase to HEAD as of a few days ago.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:39:55 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +10 -10 lines
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")

Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:15 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +4 -4 lines
sync with head

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Oct 25 21:32:45 2013 UTC (11 years, 1 month ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base-20171202, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -4 lines
Comment unused stuff (for documentation purposes)

Revision 1.36.12.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:08 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +8 -8 lines
resync from head

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Mar 26 11:30:20 2013 UTC (11 years, 8 months ago) by isaki
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +8 -8 lines
u_int -> uint32_t

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Oct 15 15:14:29 2011 UTC (13 years, 2 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -4 lines
Add hyperboric and trigonometric functions to m68k FPE, written by isaki@.
With these emulations (~4KB text) xeyes on XM6i works better.
Discussed with isaki@ at OSC 2011 Hiroshima.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Jul 18 14:11:27 2011 UTC (13 years, 4 months ago) by isaki
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +64 -64 lines
fix indent again.
- "Second level indents are four spaces." pointed out by tsutsui@
- fold long line.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Jul 18 07:44:30 2011 UTC (13 years, 4 months ago) by isaki
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +67 -67 lines
fix indent.  no functional changes.

Revision 1.27.54.1.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:27:16 2011 UTC (13 years, 5 months ago) by bouyer
Branches: netbsd-5-0
Diff to: previous 1.27.54.1: preferred, colored; next MAIN 1.27.54.2: preferred, colored
Changes since revision 1.27.54.1: +24 -17 lines
Pull up following revision(s) (requested by tsutsui in ticket #1626):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.31
Fix botch in rev 1.28 that causes wrong results of fcmp and ftst in FPE.
fpu_upd_fpsr() should be called even in discard_result case if an emulated
instruction gets proper result without signal.
Fixes weird behavior of awk(1) seen on /etc/rc.d/postfix on XM6i and
TME emulating sun3 without 68881.
Should be pulled up to all netbsd-4 and netbsd-5 branches.

Revision 1.27.54.1.6.1: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:27:11 2011 UTC (13 years, 5 months ago) by bouyer
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE
Diff to: previous 1.27.54.1: preferred, colored; next MAIN 1.27.54.2: preferred, colored
Changes since revision 1.27.54.1: +24 -17 lines
Pull up following revision(s) (requested by tsutsui in ticket #1626):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.31
Fix botch in rev 1.28 that causes wrong results of fcmp and ftst in FPE.
fpu_upd_fpsr() should be called even in discard_result case if an emulated
instruction gets proper result without signal.
Fixes weird behavior of awk(1) seen on /etc/rc.d/postfix on XM6i and
TME emulating sun3 without 68881.
Should be pulled up to all netbsd-4 and netbsd-5 branches.

Revision 1.27.54.2: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:26:58 2011 UTC (13 years, 5 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Diff to: previous 1.27.54.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.54.1: +24 -17 lines
Pull up following revision(s) (requested by tsutsui in ticket #1626):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.31
Fix botch in rev 1.28 that causes wrong results of fcmp and ftst in FPE.
fpu_upd_fpsr() should be called even in discard_result case if an emulated
instruction gets proper result without signal.
Fixes weird behavior of awk(1) seen on /etc/rc.d/postfix on XM6i and
TME emulating sun3 without 68881.
Should be pulled up to all netbsd-4 and netbsd-5 branches.

Revision 1.30.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:05:56 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +936 -997 lines
Sync with HEAD.

Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:07 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +936 -997 lines
sync with head

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon May 23 15:40:34 2011 UTC (13 years, 6 months ago) by tsutsui
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +96 -202 lines
- use DPRINTF() style debug printfs
- use __func__ to print function names
- consistently use #ifdef DEBUG_FPE
- add some missing debug messages including \n in error paths

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon May 23 14:52:31 2011 UTC (13 years, 6 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +941 -903 lines
KNF, mostly indent. No binary change.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat May 14 16:17:55 2011 UTC (13 years, 7 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +24 -17 lines
Fix botch in rev 1.28 that causes wrong results of fcmp and ftst in FPE.
fpu_upd_fpsr() should be called even in discard_result case if an emulated
instruction gets proper result without signal.

Fixes weird behavior of awk(1) seen on /etc/rc.d/postfix on XM6i and
TME emulating sun3 without 68881.

Should be pulled up to all netbsd-4 and netbsd-5 branches.

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:17:59 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +19 -38 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.27.44.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:25 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +29 -44 lines
sync with head.

Revision 1.27.52.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:18 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.27.52.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.52.1: +19 -38 lines
Sync with HEAD.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Mar 14 15:36:09 2009 UTC (15 years, 9 months ago) by dsl
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -31 lines
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.)

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Mar 14 14:46:01 2009 UTC (15 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +9 -9 lines
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.

Revision 1.27.52.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:29:01 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +12 -8 lines
Sync with HEAD.

Revision 1.26.24.1.6.1: download - view: text, markup, annotated - select for diffs
Sat Jan 31 21:51:50 2009 UTC (15 years, 10 months ago) by bouyer
Branches: netbsd-4-0
Diff to: previous 1.26.24.1: preferred, colored; next MAIN 1.26.24.2: preferred, colored
Changes since revision 1.26.24.1: +10 -6 lines
Pull up following revision(s) (requested by tsutsui in ticket #1268):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.28
In fpu_emul_arith(), check lower 7 bits in word1 rather than only 6 bits
to check 040/060 FP instructions, and don't call fpu_implode() and
fpu_upd_fpsr() if no vaild emulated result is set otherwise these
functions cause NULL pointer dereference.
Fixes panics triggered by 040/060's FDADD instruction
(which has the same lower 6 bits with fscale instruction)
on 020/030 machines (even with 68881/68882) running kernels
with options FPU_EMULATE.
Problem reported by John Carr on port-sun3.
Should be pulled up to netbsd-4-0, netbsd-4 and netbsd-5.
XXX: m68k 4.0 packages binaries on ftp have this FDADD instruction.

Revision 1.26.24.2: download - view: text, markup, annotated - select for diffs
Sat Jan 31 21:51:20 2009 UTC (15 years, 10 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.26.24.1: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.24.1: +10 -6 lines
Pull up following revision(s) (requested by tsutsui in ticket #1268):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.28
In fpu_emul_arith(), check lower 7 bits in word1 rather than only 6 bits
to check 040/060 FP instructions, and don't call fpu_implode() and
fpu_upd_fpsr() if no vaild emulated result is set otherwise these
functions cause NULL pointer dereference.
Fixes panics triggered by 040/060's FDADD instruction
(which has the same lower 6 bits with fscale instruction)
on 020/030 machines (even with 68881/68882) running kernels
with options FPU_EMULATE.
Problem reported by John Carr on port-sun3.
Should be pulled up to netbsd-4-0, netbsd-4 and netbsd-5.
XXX: m68k 4.0 packages binaries on ftp have this FDADD instruction.

Revision 1.27.54.1: download - view: text, markup, annotated - select for diffs
Mon Jan 26 00:24:55 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-1, netbsd-5-0
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +12 -8 lines
Pull up following revision(s) (requested by tsutsui in ticket #308):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.28
In fpu_emul_arith(), check lower 7 bits in word1 rather than only 6 bits
to check 040/060 FP instructions, and don't call fpu_implode() and
fpu_upd_fpsr() if no vaild emulated result is set otherwise these
functions cause NULL pointer dereference.
Fixes panics triggered by 040/060's FDADD instruction
(which has the same lower 6 bits with fscale instruction)
on 020/030 machines (even with 68881/68882) running kernels
with options FPU_EMULATE.
Problem reported by John Carr on port-sun3.
Should be pulled up to netbsd-4-0, netbsd-4 and netbsd-5.
XXX: m68k 4.0 packages binaries on ftp have this FDADD instruction.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jan 20 14:57:21 2009 UTC (15 years, 10 months ago) by tsutsui
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +12 -8 lines
In fpu_emul_arith(), check lower 7 bits in word1 rather than only 6 bits
to check 040/060 FP instructions, and don't call fpu_implode() and
fpu_upd_fpsr() if no vaild emulated result is set otherwise these
functions cause NULL pointer dereference.

Fixes panics triggered by 040/060's FDADD instruction
(which has the same lower 6 bits with fscale instruction)
on 020/030 machines (even with 68881/68882) running kernels
with options FPU_EMULATE.
Problem reported by John Carr on port-sun3.

Should be pulled up to netbsd-4-0, netbsd-4 and netbsd-5.

XXX: m68k 4.0 packages binaries on ftp have this FDADD instruction.

Revision 1.25.16.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:27:09 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +5 -3 lines
sync with head.

Revision 1.26.24.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 15:40:39 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, matt-nb4-arm-base, matt-nb4-arm
Branch point for: netbsd-4-0
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -3 lines
Pull up following revision(s) (requested by tsutsui in ticket #526):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.27
	sys/arch/m68k/fpe/fpu_calcea.c: revision 1.18
	sys/arch/m68k/fpe/fpu_fstore.c: revision 1.10
Make these compile with options DEBUG_FPE.
Don't disable EA_DIRECT in fpu_load_ea(), which seems disabled
accidentally in rev 1.11 about six years ago, otherwise
fmovel %dN,%fpN instructions cause unexpected memory access.

Revision 1.25.14.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 14:11:23 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +5 -3 lines
Pull up following revision(s) (requested by tsutsui in ticket #1703):
	sys/arch/m68k/fpe/fpu_emulate.c: revision 1.27
	sys/arch/m68k/fpe/fpu_calcea.c: revision 1.18
	sys/arch/m68k/fpe/fpu_fstore.c: revision 1.10
Make these compile with options DEBUG_FPE.
Don't disable EA_DIRECT in fpu_load_ea(), which seems disabled
accidentally in rev 1.11 about six years ago, otherwise
fmovel %dN,%fpN instructions cause unexpected memory access.

Revision 1.26.26.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:48:45 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +5 -3 lines
Sync with HEAD.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Mar 9 16:23:01 2007 UTC (17 years, 9 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, netbsd-5-base, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, netbsd-5
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -3 lines
Make these compile with options DEBUG_FPE.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:17:52 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, post-newlock2-merge, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp, netbsd-4
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
merge ktrace-lwp.

Revision 1.23.24.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:17:35 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.23.24.2: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.24.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.23.24.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:36:16 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.23.24.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.24.1: +0 -0 lines
Sync with HEAD.

Revision 1.23.24.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:36:40 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +20 -6 lines
Sync with HEAD

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Sep 22 14:18:34 2003 UTC (21 years, 2 months ago) by cl
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf, netbsd-3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +18 -7 lines
SA_SIGINFO support for m68k

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Jul 15 02:43:09 2003 UTC (21 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -1 lines
__KERNEL_RCSID()

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:10:58 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.1: +2 -2 lines
Sync with HEAD.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Feb 5 12:35:13 2001 UTC (23 years, 10 months ago) by chs
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, nathanw_sa, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: ktrace-lwp
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
conditionalize the ddb hook on DDB && DEBUG_FPE rather than DDB && DEBUG,
since that's the condition under which we include the header file that
allows it to compile.

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:22:39 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +14 -10 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Jan 5 19:54:30 2001 UTC (23 years, 11 months ago) by is
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +14 -10 lines
Make this actually sort-of-work for 68060 w. disabled FPU (tested), 68LC060,
and I suspect, 68LC040 and 68040V machines. Method used:

1. do NOT use the frames effective address at all
2. do NOT use the frames next instruction address, but
3. restore the "this instruction" pc into the pc field of the frame at the
   beginning of the emulation, if we got a frame format 4.

TODO:
A. find the bug in the usage of the frame EA, and revert to using it.
B. find the bug in the usage of the frames next instruction address, and
   consider whether it's worthwhile to use it.
C. make the emulation complete.... FEXP FETOM1, and the trigonometric functions
   are missing.

Revision 1.20.8.2: download - view: text, markup, annotated - select for diffs
Sun Feb 6 17:12:31 2000 UTC (24 years, 10 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.20.8.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.8.1: +266 -256 lines
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.

Revision 1.20.12.1: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:32:17 1999 UTC (25 years ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +256 -266 lines
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.

Revision 1.20.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 15:18:31 1999 UTC (25 years, 5 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH001
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +256 -266 lines
pullup 1.20->1.21 (briggs): fix FPE

Revision 1.20.10.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 00:50:28 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +256 -266 lines
Sync w/ -current.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun May 30 20:17:48 1999 UTC (25 years, 6 months ago) by briggs
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +255 -265 lines
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 ]

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jul 4 22:18:27 1998 UTC (26 years, 5 months ago) by jonathan
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Branch point for: netbsd-1-4, kame, chs-ubc2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -1 lines
defopt DDB.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Nov 3 11:10:48 1997 UTC (27 years, 1 month ago) by is
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +0 -7 lines
Back out last change, which was a thinko.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Nov 2 22:02:46 1997 UTC (27 years, 1 month ago) by is
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -1 lines
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.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jul 20 12:39:17 1997 UTC (27 years, 4 months ago) by is
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -2 lines
Make us pass the full ieeefp except regression test.
XXX This is probably a horrible hack, and wrong. FPU signal handling needs
to be further evaluated.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jul 19 22:28:48 1997 UTC (27 years, 5 months ago) by is
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -1 lines
Fix my own PR port-m68k/3871, nee port-amiga/3871:
- don't erase FPSR exception bits _after_ doing most of the operations in
fpu_implode(), erase them before doing arith and store operations. This fixes
losing the DZ bit.
- create FPSR_OVFL and FPSR_UNFL bits in fpu_implode(). This showed up when
the first error was fixed.
XXX some more work needs to be done. E.g., creating OPERR together with
OVFL looks bogus, but I'm too tired know to re-check docs; and at least we
pass our own regression tests know.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jul 17 06:27:08 1997 UTC (27 years, 5 months ago) by veego
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -2 lines
include <m68k/db_machdep.h> to get the prototype for kdb_trap if DDB and
DEBUG are defined and add a cast for the second argument to the
kdb_trap call.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Dec 18 05:44:31 1996 UTC (28 years ago) by scottr
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Work around another uninitialized variable warning

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Dec 17 19:27:51 1996 UTC (28 years ago) by gwr
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -2 lines
Fix warnings.

Revision 1.6.4.1: download - view: text, markup, annotated - select for diffs
Thu Dec 5 07:05:20 1996 UTC (28 years ago) by rat
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +2 -1 lines
Pullup request 1.11 to 1.12 from Ignatios Souvatzis <ignatios@cs.uni-bonn.de>

>This fixes an oversight/editing error, which would prevent us from emulating
>the FSINCOS opcode, where FPcos == FP1.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Oct 30 14:44:47 1996 UTC (28 years, 1 month ago) by is
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -1 lines
Bug fix for FSINCOS: wouldn't handle FPc == FP1 earlier.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Oct 16 06:27:06 1996 UTC (28 years, 2 months ago) by scottr
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -3 lines
Eliminate fusword() prototype, as it's now in <sys/systm.h>

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Oct 13 03:19:12 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +72 -72 lines
backout previous kprintf change

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Oct 11 00:11:03 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +72 -72 lines
printf -> kprintf, sprintf -> ksprintf

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Oct 7 03:16:47 1996 UTC (28 years, 2 months ago) by scottr
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +21 -3 lines
The 68LC040 generates a format 4 stack frame for floating point
exceptions, which puts the address of the instruction we faulted
on in a different location.  Copy it and handle as we normally would,
restoring the saved PC before returning.

The FPE should probably be reworked to take advantage of the 68LC040's
precalculated effective address, at some point.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Oct 4 18:07:24 1996 UTC (28 years, 2 months ago) by scottr
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -3 lines
Fix FMOVEM emulation; postincrement modes use different ordering than
predecrement modes, per 68K Programmer's Manual p. 5-88.  Pointed out
by Takeshi Nakayama <takeshi@sakabe.nuie.nagoya-u.ac.jp>, verified by me.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed May 15 07:31:55 1996 UTC (28 years, 7 months ago) by leo
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1 lines
Fix "might be used uninitialized" warnings.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Apr 30 11:52:13 1996 UTC (28 years, 7 months ago) by briggs
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +13 -12 lines
Update for -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Nov 5 00:35:17 1995 UTC (29 years, 1 month ago) by briggs
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +57 -56 lines
Fixes from Ken Nakata.  Mainly renaming debug_level to fpu_debug_level.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Nov 3 04:47:03 1995 UTC (29 years, 1 month ago) by briggs
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1048 -519 lines
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.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Mar 10 01:43:05 1995 UTC (29 years, 9 months ago) by gwr
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Add missing break in switch (not that it mattered 8^)

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Wed Mar 1 04:56:27 1995 UTC (29 years, 9 months ago) by gwr
Branches: GWR
CVS tags: gwr1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
First cut at an mc68881 emulator.  Works only for fmovem right now.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Mar 1 04:56:27 1995 UTC (29 years, 9 months ago) by gwr
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>