Commit graph

28 commits

Author SHA1 Message Date
he
5db6a62873 Add patches to implement the SCSI commands READ_DISCINFO and
READ_TRACKINFO, sufficient to get a NetBSD/cats kernel mount a
cd-rom image.  I still get ""cd_setblksize: trying to change bsize,
but no blk_desc" but it seems to be a benign warning.

Pkgrevision bumped to 1.
2006-09-17 19:53:05 +00:00
he
015eb6cf0a Add a patch which implements free-running timers on footbridge, as
found on cats and netwinder.  This gets a NetBSD/cats -current
install kernel booting again after the move to timecounters.  Before
this change, the emulated kernel would loop during the tlp0
attachment, inside delay().

Note, I'm guessing that a free-running timer should not generate
an interrupt on wrap (I don't have the hardware documentation).

Patch sent upstream.
2006-09-17 16:38:12 +00:00
xtraeme
947f838a7c Update to 0.4.2.
Changes between release 0.4.1 and 0.4.2 include, among other things:

    o)	The NetWinder emulation mode now works well enough to let
	NetBSD/netwinder run from a disk image.

	(NetBSD/netwinder has to be installed manually, though, because
	there is no installation ramdisk kernel. The GXemul documentation
	has an example of how to install NetBSD/netwinder using an emulated
	NetBSD/pmax machine.)

    o)	Algorithmics P5064 emulation works well enough to let NetBSD/algor
	run from a disk image. (Similar to NetBSD/netwinder, it has to
	be installed manually, using another emulated machine.)

    o)	PCI configuration register writes can now be handled, which allows
	NetBSD/Malta (evbmips) 3.0.1 and NetBSD/cobalt 3.0.1 to run from
	PCI IDE harddisk images. (Previously, only NetBSD 2.1 worked for
	the Malta and Cobalt emulation modes.)

    o)	Some performance increases:

	The virtual translation table update routine has been simplified
	to work the same way for 32-bit and 64-bit emulation, and this
	apparently results in a speedup for all 64-bit modes.

	For 32-bit MIPS, some more instruction combinations have been added.
2006-08-20 16:27:44 +00:00
wiz
b65df549a1 Only include x11.bl3.mk if the x11 option is turned on.
From pancake in PR 34088.
2006-07-27 18:14:44 +00:00
xtraeme
5d0cd3f070 Update to 0.4.1:
Changes between release 0.4.0.1 and 0.4.1 include, among other things:

    o)  Some bugs in the dynamic translation core have been fixed, making
        all emulation modes (especially the MIPS mode) more stable.

    o)  In the refactoring effort between 0.4.0 and 0.4.0.1, single-stepping
        (and instruction tracing) of 64-bit programs was accidentally broken.
        Single-stepping in 64-bit mode could result in strange exceptions.
        This has been fixed in 0.4.1.

    o)  MIPS emulation performance has been improved somewhat:

        R3000: After removing some buggy code (hints for physical page
        translations), it was possible to remove the workaround for R3000
        caches which was needed in 0.4.0.1 to make Linux and Ultrix run.
        This gives an overall speedup for R2000/R3000.

        For non-R3000, there have been some speedups as well. After fixing
        reference count bugs for 64-bit addressing in the dyntrans system,
        workarounds/hacks in the tlbwr/tlbwi instructions and in the ASID
        change helper function could be removed.

    o)  A new -s command line option is now available, for dumping
        raw runtime data/statistics on every instruction to a file.

        Currently, the following kinds of data can be dumped:

        1. the program counter (virtual address)
        2. the physical address representation of the program counter
        3. the internal dyntrans instruction call pointer, useful when
           developing/optimizing the emulator

        This data can then be analyzed by external tools.

        (There was a -s command line option in previous releases of
        the emulator, but it did not work as intended, and was not
        usable from dyntrans emulation modes.)
2006-07-25 17:46:05 +00:00
xtraeme
f1e5430021 Fixed pkglint warnings. 2006-07-05 21:45:05 +00:00
xtraeme
3786b0a9bf Update to 0.4.0.1:
The most important change between release 0.3.8 and 0.4.0.1 is:

    o)  The emulation of MIPS processors has been completely rewritten;
        it now uses the same portable dynamic translation system as the
        ARM and PowerPC emulation modes.

        On Alpha and i386 hosts (and AMD64 hosts running in 32-bit mode),
        GXemul previously used translation into native code. This release
        will perform worse than 0.3.8 on those host architectures.

        On all other hosts (including AMD64 running in native 64-bit mode),
        0.4.0 is likely to be faster than 0.3.8, when emulating MIPS.

        I think that in the long term, moving towards full portability like
        this is a good idea.

(0.4.0 was a bit buggy and unstable; 0.4.0.1 is a quick-fix release.)

There have also been many other changes, including, but not limited to:

    o)  The "test machine" functionality is more well-defined than before,
        and some tutorial-like demos have been added. These could be useful
        e.g. in operating system construction courses.

    o)  NetBSD/sgimips 3.0 works now. This is most likely due to the rewrite
        of the MIPS emulation mode. Previous releases of GXemul only worked
        with NetBSD/sgimips 2.1.

    o)  I have begun implementing rudimentary support for GDB remote serial
        protocol connections. This means that you can run e.g. the Data
        Display Debugger, and connect it to a GXemul instance.

        No advanced GDB functionality is working yet, but starting and
        stopping the emulated machine and single-stepping should work.
2006-07-02 11:35:23 +00:00
xtraeme
89f1cb708d pkglint'ify 2006-03-06 22:03:46 +00:00
xtraeme
9eb56a7235 Update to 0.3.8:
The user-visible changes between release 0.3.7 and 0.3.8 include:

    o)  The IQ80321 (Xscale) machine mode is now working well enough to
        run NetBSD/evbarm 2.1.
    o)  Faster framebuffer output in some situations.
2006-02-19 19:31:41 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +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
rillig
97cf41db6f Added a patch for ISO C90 compatibility. 2005-11-30 19:11:01 +00:00
xtraeme
d3144949b6 :s/${LOWER_OPSYS}/netbsd/g 2005-11-27 08:55:32 +00:00
xtraeme
985a722045 Install all files in the doc directory. Suggested by the author.
Bump PKGREVISION.
2005-11-26 19:03:14 +00:00
xtraeme
a584a3ee1f Update to 0.3.7
User-visible change between release 0.3.6.2 and 0.3.7 include:

    o)  The experimental PowerPC emulation mode is now working well enough
        to allow NetBSD/prep 2.1 to be installed and run inside the emulator.
        It is not 100% stable, and it is not optimized for performance yet,
        but hopefully enough for simple experiments.

    o)  I finally took the time to implement a DEC 21143 NIC; this brings
        network connectivity to NetBSD/cats. (The userland "NAT"-like
        networking layer is still a bit buggy, and does not work with
        everything. However, NetBSD/cats can now be installed via ftp.)

    o)  CD-ROM images can now in some cases be detected as ATAPI CD-ROMs
        instead of IDE harddisks. It works for at least NetBSD, OpenBSD,
        and Linux on CATS, and NetBSD on hpcmips.

Internal (code related) changes include:

    o)  Cleanup of the PCI and ISA bus frameworks; in practice this means
        that more code can be shared between different emulated machine
        models than before, and that adding new machine types will become
        easier.

    o)  Dyntrans updates; 32-bit PowerPC mostly, but also many performance
        related updates for ARM.
2005-11-26 06:00:00 +00:00
xtraeme
29fe211ab7 Update to 0.3.6.2:
* Many improvements to the ARM emulation were made, and now it works
  3x faster than 0.3.6.1.
2005-10-29 10:05:47 +00:00
xtraeme
5af3510d8a Update to 0.3.6.1:
The 0.3.6.1 release fixes some issues related to ARM emulation:

    x)  The emulator can now be compiled inside NetBSD/cats or OpenBSD/cats,
        inside the emulator itself. (In 0.3.6, some bugs prevented this.)

    x)  Performance increase:  A non-scientific but realistic test, measuring
        the real-world time it takes to do a full NetBSD/cats installation,
        seems to indicate that 0.3.6.1 can be twice as fast as 0.3.6 was.
2005-10-23 06:01:04 +00:00
xtraeme
7be4d08b92 Update to 0.3.6:
The most imporant user-visible change between release 0.3.5 and 0.3.6 is:

   (X)  The experimental ARM emulation mode is now working well enough
        to install NetBSD/cats and OpenBSD/cats onto harddisk images.
2005-10-08 22:27:03 +00:00
minskim
49869712f6 Remove an entry that is not installed, and add a missing one. 2005-09-17 20:07:38 +00:00
xtraeme
b70bb9a81a Update to 0.3.5.
The user-visible changes between release 0.3.4 and 0.3.5 are minor, and
can be summarized as follows:

        o)  Updates to the (old) binary translation subsystem, resulting
            in minor speed improvements.

        o)  64-bit MIPS dmult/dmultu has been fixed.

        o)  slt* instructions for 64-bit MIPS were incorrectly implemented
            in the i386 backend. This has been fixed.
2005-08-25 11:03:30 +00:00
xtraeme
1d5a3ac713 Update to 0.3.4.
Changes:

        x)  When emulating a network of multiple machines, the emulated
            machines can now be placed on different hosts.

        x)  NetBSD/evbmips can now be installed and run from a disk image.
            (There is no INSTALL kernel for NetBSD/evbmips, so you need to
            install using another OS, for example emulated NetBSD/pmax.)

        x)  NetBSD/sgimips can now be installed. Not onto a SCSI disk,
            but the files can be exported via nfs from another emulated
            machine. The sgimips machine can then netboot. (Read the
            documentation for details.)
2005-06-28 11:49:58 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
dillo
6e68b06993 Make use of PKG_OPTIONS_LEGACY_OPTS. 2005-05-31 11:21:41 +00:00
dillo
f81ae835ad Packages have no business modifying PKG_DEFAULT_OPTIONS -- it's a
user settable variable.  Set PKG_SUGGESTED_OPTIONS instead.  Also,
make use of PKG_OPTIONS_LEGACY_VARS.

Reviewed by wiz.
2005-05-31 10:01:36 +00:00
xtraeme
14ec60ee7e Update to 0.3.2
The most important/visible changes from 0.3.1 to 0.3.2 are:

	x)  NetBSD/cobalt can run from a harddisk image. (Installation
            must be done using another OS though, for example NetBSD/pmax.)

        x)  Some minor fixes to make the binary translation system a bit
            more stable.
2005-04-29 00:59:00 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
xtraeme
781bc9a0a2 Update to 0.3.1.
The two most visible changes from version 0.3 to 0.3.1 are:

	x)  Name change (from mips64emul to GXemul).

	x)  NetBSD/hpcmips can now be installed and run from a harddisk
	    image on an emulated NEC MobilePro 770, 780, 800, or 880.
2005-04-07 17:29:19 +00:00
xtraeme
0c25188643 Initial import of gxemul-20050329.
GXemul is a machine emulator. The initial goal was to write a simple
64-bit MIPS emulator for running multiprocessor experiments with a
microkernel, but the emulator can be used for many other things. While
some simulators only simulate a CPU, GXemul also simulates other
hardware components, making it possible to use the emulator to run
unmodified operating systems, such as NetBSD, OpenBSD, or Linux.

[previously known as mips64emul, it was renamed because now
supports more cpu archs than MIPS, as sparc, ppc...]
2005-03-30 00:30:44 +00:00