Commit Graph

59 Commits

Author SHA1 Message Date
Volker Ruppert
075ee17ac9 - geometry autodetection for 'sparse' mode hard disk images added
- store size of virtual disk in sparse header to simplify geometry detection/check
- enabling geometry autodetection causes a panic if not supported by image
2006-06-16 07:29:33 +00:00
Stanislav Shwartsman
d477191800 Fixed WinPcap URL 2006-06-02 13:42:37 +00:00
Volker Ruppert
a664b2008b - added "reserved" floppy types 160k, 180k and 320k
- now using the "image" parameter in the bochsrc line example
2005-11-20 20:26:35 +00:00
Volker Ruppert
c92fd65c65 - enabled support for harddisks with up to 127 GB in Bochs and bximage
- BIOS harddisk detection message is now okay if size is < 64 GB
2005-11-06 16:50:30 +00:00
Volker Ruppert
3c4b32f9a4 - splitted image headers from hard drive header (TODO: split emulation and image
code for non-IDE interfaces)
- fixed bximage error messages
2005-11-06 11:07:01 +00:00
Volker Ruppert
8380541a8f - replacing uint* types by Bit*u types since they are identical (BeOS code untouched) 2005-06-26 10:54:49 +00:00
Volker Ruppert
4715b838d8 - bx_fdsize_idx must be initialized if bximage was started without command line arguments 2005-06-10 12:15:29 +00:00
Volker Ruppert
e98c100f74 - a bunch of warnings in MSVC fixed
- name of source file in wxworkspace.zip fixed
2005-06-04 17:44:59 +00:00
Stanislav Shwartsman
54e23418f5 Feature request
[ 1107409 ] Add clipboard message for bximage
implemented
2005-01-28 10:25:06 +00:00
Stanislav Shwartsman
acd1d8f14f Merged patch
[1104695] msvc6 compatibility update (Royce Mitchell III)
2005-01-19 18:21:40 +00:00
Stanislav Shwartsman
5d5f28369c dos2unix 2005-01-19 17:53:09 +00:00
Volker Ruppert
88efb988ac - looks like <sys/io.h> isn't standardised. Now check for glibc-based systems
(info from Robert Millan)
2004-09-07 18:31:38 +00:00
Volker Ruppert
defdbda939 - applied patch #690400 (GZIP variable in Makefile renamed)
- applied patch 1021767 (sb16ctrl.c now compiles on all unix platforms)
2004-09-04 08:24:40 +00:00
Volker Ruppert
b82f00e1f2 - command line options for bximage added. Non-interactive mode can be enabled
now if all required parameters are present in the command line.
2004-08-29 19:31:09 +00:00
Volker Ruppert
157df28775 - fixed win32 version of bximage (was able to create flat hd's only)
- fixed summary information for compilation on msys/mingw and cygwin
2004-08-24 11:42:18 +00:00
Volker Ruppert
4130dae772 - Redhat 5.0 installation files are no longer necessary since booting from
cdrom works fine in the meantime
2004-08-20 16:55:04 +00:00
Volker Ruppert
99a42a8dbc - applied SF patch #838601: support for > 2 GB disk size with MSVC++
- support for non-standard disk sizes 1.68 MB and 1.72 MB in bximage
- large disk support also works now if compiled in msys/mingw
2004-08-19 19:42:22 +00:00
Volker Ruppert
f9a7c1b6c2 - bximage on win32 now can create compressed flat hard drive image files up to
32GiB (NTFS only) - based on a patch from Hartmut Birr
2004-08-19 16:03:03 +00:00
Christophe Bothamy
12f4f45d9b - apply patch [ 903332 ] copy the bximage result to clipboard, etc by lukewarm 2004-04-30 17:26:38 +00:00
Christophe Bothamy
9d74ea2d63 - remove unnecessary code 2004-04-28 17:56:47 +00:00
Christophe Bothamy
15ed3de506 - apply David Leinbach's unicode patch to niclist. From David :
I looked into the problem with running NICLIST.EXE with WinPCap 3.1beta
and deteremined that the problem resulted from the fact that in 3.1 the
PacketGetAdapterNames function returns the values in ASCII on Win
9x/NT/2K/XP while in previous version the values were returned in UNICODE
on NT/2K/XP.  I have attached a patch to check the version when deciding
whether to read the values as UNICODE or ASCII.
2004-03-20 21:26:08 +00:00
Bryce Denney
c43234e813 - exclude unistd when compiling in MSVC++ 2003-10-02 10:22:46 +00:00
Stanislav Shwartsman
789db2603e Added P4 support to CPUID instruction
Extracted CPUIS instructions to separate file
2003-09-26 15:32:41 +00:00
Christophe Bothamy
974d3538a1 - change disk image mode name "growable" to the more accurate "growing" 2003-08-01 01:20:00 +00:00
Christophe Bothamy
4278963da9 - fix compile problem on win32 2003-06-12 13:33:16 +00:00
Volker Ruppert
d1652093ac - applied some parts of the patch from Andrew Zabolotny <zap@cobra.ru>
* changed all %ll format descriptions to FMT_LL macro so that
    Microsoft Visual C works correctly (it uses %I64)
  * missing type conversions added
  * cdrom.cc: variable types for win32 fixed
  * removed some unused variables in eth_win32.cc and harddrv.cc
  * added missing includes in make_cmos_image.c and niclist.c
2003-06-07 19:16:55 +00:00
Christophe Bothamy
f43d2fe3e9 - backport of the BRANCH_HARDDISK_MODES to the main branch.
You can now choose for each disk on the ata interfaces the
  disk mode, between :
    - flat : one file flat layout
    - concat : multiple files layout
    - external : developer's specific, through a C++ class
    - dll : developer's specific, through a DLL
    - sparse : stackable, commitable, rollbackable
    - vmware3 : vmware3 disk support
    - undoable : flat file with commitable redolog
    - growable : growing file
    - volatile : flat file with volatile redolog
    - z-undoable : gziped flat file with commitable redolog
    - z-volatile : gziped flat file with volatile redolog
  A new "bxcommit" utility can merge commitable redologs to
  flat images.
2003-05-03 16:37:18 +00:00
Christophe Bothamy
70f0df85c7 - fix compile warning (patch from HJ) 2002-11-26 11:21:31 +00:00
Bryce Denney
6409027423 - on WIN32 wait for a key, whether we exit with an error or not.
Before it would only wait if there was an error.
2002-11-21 06:36:22 +00:00
Bryce Denney
a188b157de - change Bit64u sectors to a Bit64s, to avoid VC++ compile error.
It says it can't convert a 64 bit unsigned to a double.  Hmm.
2002-11-15 18:14:08 +00:00
Bryce Denney
5e520261db Add plugin support to Bochs by merging all the changes from the
BRANCH_PLUGINS branch!

Authors:
  Bryce Denney
  Christophe Bothamy
  Kevin Lawton (we grabbed a lot of plugin code from plex86)
Testing help from:
  Volker Ruppert
  Don Becker (Psyon)
  Jeremy Parsons (Br'fin)

The change log is too long to paste in here.  To read the change log, do
  cvs log patches/patch.final-from-BRANCH_PLUGINS.gz

All the changes and a detailed description are contained in a patch
called patch.final-from-BRANCH_PLUGINS.gz.  To look at the complete
patch, do
  cvs upd -r1.1 patches/patch.final-from-BRANCH_PLUGINS.gz

Then you will have a local copy of the patch, which you can gunzip and
play with however you want.

Modified Files:
    .bochsrc Makefile.in aclocal.m4 bochs.h config.h.in configure
    configure.in gdbstub.cc logio.cc main.cc pc_system.cc
    pc_system.h state_file.h bios/Makefile.in bios/rombios.c
    cpu/Makefile.in cpu/access.cc cpu/apic.cc cpu/arith16.cc
    cpu/arith32.cc cpu/arith8.cc cpu/cpu.cc cpu/cpu.h
    cpu/ctrl_xfer32.cc cpu/exception.cc cpu/fetchdecode.cc
    cpu/fetchdecode64.cc cpu/flag_ctrl.cc cpu/flag_ctrl_pro.cc
    cpu/init.cc cpu/io.cc cpu/logical16.cc cpu/logical32.cc
    cpu/logical8.cc cpu/paging.cc cpu/proc_ctrl.cc
    cpu/protect_ctrl.cc cpu/segment_ctrl_pro.cc cpu/shift16.cc
    cpu/shift32.cc cpu/stack64.cc cpu/string.cc cpu/tasking.cc
    debug/Makefile.in debug/dbg_main.cc disasm/Makefile.in
    doc/docbook/user/user.dbk dynamic/Makefile.in fpu/Makefile.in
    gui/Makefile.in gui/amigaos.cc gui/beos.cc gui/carbon.cc
    gui/control.cc gui/control.h gui/gui.cc gui/gui.h
    gui/keymap.cc gui/keymap.h gui/macintosh.cc gui/nogui.cc
    gui/rfb.cc gui/sdl.cc gui/sdlkeys.h gui/siminterface.cc
    gui/siminterface.h gui/term.cc gui/win32.cc gui/wx.cc
    gui/wxdialog.cc gui/wxdialog.h gui/wxmain.cc gui/wxmain.h
    gui/x.cc gui/keymaps/sdl-pc-de.map gui/keymaps/sdl-pc-us.map
    gui/keymaps/x11-pc-de.map instrument/example0/instrument.h
    instrument/example1/instrument.h
    instrument/stubs/instrument.cc instrument/stubs/instrument.h
    iodev/Makefile.in iodev/biosdev.cc iodev/biosdev.h
    iodev/cdrom.cc iodev/cmos.cc iodev/cmos.h iodev/devices.cc
    iodev/dma.cc iodev/dma.h iodev/eth_fbsd.cc iodev/eth_linux.cc
    iodev/eth_null.cc iodev/eth_tap.cc iodev/floppy.cc
    iodev/floppy.h iodev/guest2host.cc iodev/guest2host.h
    iodev/harddrv.cc iodev/harddrv.h iodev/iodebug.cc
    iodev/iodebug.h iodev/iodev.h iodev/keyboard.cc
    iodev/keyboard.h iodev/ne2k.cc iodev/ne2k.h iodev/parallel.cc
    iodev/parallel.h iodev/pci.cc iodev/pci.h iodev/pci2isa.cc
    iodev/pci2isa.h iodev/pic.cc iodev/pic.h iodev/pit.cc
    iodev/pit.h iodev/pit_wrap.cc iodev/pit_wrap.h iodev/sb16.cc
    iodev/sb16.h iodev/scancodes.cc iodev/scancodes.h
    iodev/serial.cc iodev/serial.h iodev/slowdown_timer.cc
    iodev/slowdown_timer.h iodev/unmapped.cc iodev/unmapped.h
    iodev/vga.cc iodev/vga.h memory/Makefile.in memory/memory.cc
    memory/memory.h memory/misc_mem.cc misc/bximage.c
    misc/niclist.c
Added Files:
    README-plugins extplugin.h ltdl.c ltdl.h ltdlconf.h.in
    ltmain.sh plugin.cc plugin.h
2002-10-24 21:07:56 +00:00
Bryce Denney
f05b2649f4 - on WIN32 platforms, ask user to press a key before it exits. Otherwise,
if you run it by double-clicking, the window will disappear before
  you have a chance to read it.
2002-10-15 20:47:43 +00:00
Bryce Denney
4c9776fb96 - add -lwinmm to the link lines anytime you use --enable-sb16=win. Now
instead of winmm being a part of GUI_LINK_OPTS_WIN32 only, it is
  placed in @DEVICE_LINE_OPTS@ so that it will be used for sdl, rfb, wx,
  etc.
- solve compile problems when building bximage, niclist, and any other
  console based program.  The compile flags returned by wx-config and
  sdl-config did strange things to these console programs, for example
  redefining main to SDL_main.  Because I wanted to use the
  configure-generated CFLAGS to compile the programs, but I wanted to
  avoid including GUI specific compile options, I split up the configure's
  @CFLAGS@ variable into @CFLAGS@ and @GUI_CFLAGS@, and split
  @CXXFLAGS@ into @CXXFLAGS@ and @GUI_CXXFLAGS@.  All programs in the
  Bochs binary will use both, but the console programs will just use
  @CFLAGS@ or @CXXFLAGS@.
- gui/Makefile.in, I no longer use the gui specific CFLAGS variables,
  SDL_CFLAGS and WX_CXXFLAGS.  These values are included in CFLAGS and
  CXXFLAGS now.
- modified: configure.in, configure, all Makefile.in's
2002-10-01 23:37:50 +00:00
Bryce Denney
3fa708ea7a - fix all printfs so that they can handle 64bit integers
- use "long" for the second arg to fseek.
2002-09-30 22:33:52 +00:00
Bryce Denney
91402bb98a - add spoolpipe utility from Carl Sopchak
see [ 558422 ] Spool parallel output
  http://sourceforge.net/tracker/index.php?func=detail&aid=558422&group_id=12580&atid=312580
2002-09-23 19:25:06 +00:00
Christophe Bothamy
440dffc803 - applied patch.4ata-channels and patch.4ata-channels.bbd
- Features :
 . number of active channels defined at boot-time config
 . new options in bochsrc
 . up to 8 devices support (disks or cdroms)
 . up to 4 cdrom devices can be changed at runtime config
 . wxwindows config interface
2002-09-22 20:56:12 +00:00
Bryce Denney
27b57724a6 - fix unused variable warning 2002-09-05 16:50:03 +00:00
Bryce Denney
2fbf3206c1 - spelling fix 2002-08-29 14:07:17 +00:00
Volker Ruppert
a6d07ad166 - added support for 360k floppy images
* new floppy type 360k can be used in .bochsrc and the config interface
  * media type and geometry can be set for the floppy type
  * BIOS changes to make 360k floppy drives work
  * bximage can create 360k images now
2002-08-01 07:37:56 +00:00
Christophe Bothamy
d1fbbd6f5c - include patch from Tal Benavidor :
this little patch brings a significant speed improvement to
  the bximage utility. when bximage creates a disk image, it writes
  a lot of zeros. actually as much zeros as the size of the image file.
  this takes quite a while for large images (at least in my win98/cygwin box).
  a faster way to create the image file is to seek to its end and write a
  single byte.
  to see the speed improvement, create a 100mb image with the old bximge.
  then apply this patch and do the same.
2002-05-21 07:23:09 +00:00
Bryce Denney
cb1db03fe9 - Dean Payne sent these modifications to niclist. He said it works under
win2k and win95 now.
2002-02-03 06:22:21 +00:00
Bryce Denney
6ddc8128ff - use DOS/Win format returns. not sure why it wasn't like this before. 2002-02-03 06:19:42 +00:00
Bryce Denney
b61df36c8a - use floating point when computing # of cylinders. The expression
hdsize*1024*1024/16/63/512 was prone to overflowing in 32-bit integer math.
  Thanks to Henry Mohn III <animatorhmiii@netscape.net> for sending a patch.
2001-12-08 17:46:02 +00:00
Bryce Denney
4dee72195f - if winpcap library not found, print the url where you can get it. 2001-10-31 16:54:10 +00:00
Bryce Denney
44c3419cb7 - from Psyon, later on October 18, 2001:
Ok, This one gives a descriptin of the adapters now also.  Like this:

  Description
    \Device\Packet_BLAH

  and you would put \Device\Packet_BLAH in .bochsrc

  It only works with Visual C++ in debug mode for some reason... Ill get it
  figured out I guess.
2001-10-31 16:03:23 +00:00
Bryce Denney
b81bb2b696 - from Psyon on October 18:
Here, this compiles and works for me in CygWin... but Im still having
  troubles making it work when compiled with cl.exe
2001-10-31 16:01:29 +00:00
Bryce Denney
f1a5e26f7d - program for win32 by Don Becker that lists the NIC id's that WinPCap
recognizes.  This tells you what to type into the ethdev field in your
  bochsrc.
2001-10-03 13:36:14 +00:00
Bryce Denney
daf2a9fb55 - add RCS Id to header of every file. This makes it easier to know what's
going on when someone sends in a modified file.
2001-10-03 13:10:38 +00:00
Bryce Denney
3974d588de - add note about limit_scaled including the 12-bit shift etc. 2001-10-03 02:23:01 +00:00
Bryce Denney
80b31020e9 - regression test for "access checks" in cpu/access.cc 2001-10-03 00:52:30 +00:00