Commit graph

21 commits

Author SHA1 Message Date
dholland
be19bc95b1 add stdint.h per PR 50279 2015-11-04 03:33:39 +00:00
joerg
71682366c1 Explicitly pull in limits.h, it sometimes hasn't been included yet. 2015-10-07 23:16:58 +00:00
joerg
16af57e146 Avoid left-shifting negative values, which is undefined behavior.
Bump revision just in case.
2015-09-13 15:08:09 +00:00
martin
0f6052be02 Add patches from Matt Fredette to (a) avoid a diagnostic assertion when
emulating m68k read-modify-write cycles in debug versions and (b) fix
emulation of fmovl to the fpcr register with an immediate source value.
2013-12-28 19:16:47 +00:00
christos
61b3c4066c If the device for the serial console is given as "pty" allocate one
automatically, and tell the user what got allocated.
2013-11-02 22:43:29 +00:00
martin
9601431905 Make the emulator not crash on EOF in the tmesh.
Also, since pkgsrc knows very well where we install the needed libraries,
use that as a default path if the user does not supply an LTDL_LIBRARY_PATH.
2013-11-02 21:53:36 +00:00
dholland
e0510f3086 Try to work around a fatal compiler diagnostic in the Solaris build. 2013-04-14 02:00:15 +00:00
joerg
44e1ef21b3 Don't use string variables as format strings, especially if they are
from the outside world. Make two clang warnings non-fatal that seem to
be harmless.
2013-02-26 23:39:18 +00:00
shattered
3c10097f8f PR/45921 -- handle the new (post-2007) way SIOCGIFCONF works.
XXX rewrite this to use getifaddrs()
2012-08-29 18:11:28 +00:00
tsutsui
33c93d3ad0 Suppress undefined macro warnings (treated as error by -Werror)
by cpp in newer gcc 4.5.3 on NetBSD/arm -current.
2012-01-21 04:41:44 +00:00
christos
e628df0b7b Avoid a compiler bug (phantom integer oveflow) in gcc 4.5.3
It appears that the conditional expression with the 0x0100 constant triggers
it no matter what casts we put around the expression.
2011-10-07 01:12:51 +00:00
tsutsui
31ed1baf24 Fix typoes which cause build failure on !x86 machines. 2010-08-14 06:32:34 +00:00
tsutsui
c50bc53704 Update tme to 0.8.
The new version of tme, 0.8, can also emulate an Ultra 1, and
on x86 hosts with a supported host OS, the SPARCstation 2 and Ultra 1
emulations will now do dynamic binary translation.  NetBSD 5.x seems
to run pretty well on the different emulations.
2010-06-07 13:34:00 +00:00
tsutsui
01822829fc Update tme to 0.6. Ok'ed by skrll@.
See fredette's annoucement for details:
http://mail-index.netbsd.org/port-sparc/2007/09/07/0000.html

>> The new version of tme, 0.6, fixes many bugs in the Sun 3 emulation,
>> and can also emulate a SPARCstation 2.  NetBSD 3.x seems to run pretty
>> well on the different emulations.
2007-09-07 14:11:51 +00:00
tsutsui
82f2407ae2 Tweak a diff not to include RCS Id strings in the original source. 2007-03-17 14:36:42 +00:00
tsutsui
8b9f3e13ab Apply various fixes. Most of them are contributed by Arthur Townsend
(see his ILVSUN3 page http://www.ilvsun3.com/ for more details),
and some others are from skrll and me.

patch-ab: (from skrll)
 fix an invalid pointer cast for -fstrict-aliasing

patch-a[cijklmn]: PR pkg/34113 (by me)
 - specify -fno-strict-aliasing in Makefiles (for workaround)
 - add several casts to appease -Wpointer-sign
 - remove a static decl from a global function
 - add a cast and remove unused variable

patch-ap: (from Arthur, tweaked by me)
 disable "cannot generate keysym" warnings on tmesh startup

patch-aq: PR pkg/33969 (from Arthur)
 TME sun3 emulator incorrectly emulates cmp2 and chk2 M68K instructions

patch-ar: PR pkg/34538 (from Arthur)
 TME sun3 emulator incorrectly calculates EA with immediate mode
 instructions with PC indirect 16-bit displacement addressing

patch-aw: PR pkg/35010 (from Arthur)
 sun3 emulator asserts when using stdin/stdout for emulated serial console

patch-ax: PR pkg/35009 (from Arthur)
 TME sun3 emulator asserts when running two emulators with ethernet

patch-az: PR pkg/35305 (from Arthur, with some minor tweaks by me)
 TME sun3 emulator incorrectly emulates ethernet obie & i825x6 hardware

patch-ba: PR pkg/35309 (from Arthur)
 TME sun3 emulator, running without a window manager,
 overwrites tmesh prompt

patch-bb: PR pkg/34690 (from Arthur, modified by me)
 TME sun3 emulator incorrectly performs: movel sp,-(sp)
 (also modify m68k-insns-auto.sh to mark cas instructions CANFAULT)

patch-bc: PR pkg/34571 (from Arthur, modified by me)
 TME sun3 emulator doesn't consider floating point infinities to be equal

patch-bd: (by me)
 - avoid invalid 32 bit shifts in fb-xlat-auto.sh,
   which may cause broken screen fonts when tme is compiled with gcc4

patch-be: (by me)
  fix decoding cas instructions

Makefile: (by me)
 - add some CONFIGURE_ARGS to avoid invalid shifts more than
  (or equal to) variable sizes, which could be problematic on gcc4
 - bump PKGREVISION
2007-03-17 13:44:17 +00:00
joerg
7799096820 Fix libtool fragment on DragonFly, so that LTDL_SHLIBPATH_VAR gets
correctly defined. Use isnan and isinf on DragonFly and not the
non-standard isinff/isnanf.
2006-09-24 15:20:28 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
skrll
336dccb73f Update to 0.4.
A huge number of changes have been made. This most visible being support
for emulating a SUN3/160.
2005-07-27 07:29:26 +00:00
skrll
a2b77d1f0f Fixes to ctype macro usage so that this builds on -current. 2004-12-05 07:32:17 +00:00
skrll
2526dad9fe Import of tme 0.2
The Machine Emulator, or tme, is a program that provides a general-
purpose framework for computer emulation. The first machine that tme
could emulate was the Sun 2/120, one of the first widely available Sun
workstations.
2004-01-23 08:21:54 +00:00