Commit Graph

2837 Commits

Author SHA1 Message Date
Bryce Denney
24f58227a5 - use </usr/include/vga.h> instead of "/usr/include/vga.h" so that it
doesn't get put in the dependency list.  It's not clear what is the best way
  to handle this header conflict anyway, other than to rename vga.h to bxvga.h
  or something.
2002-11-25 15:05:02 +00:00
Bryce Denney
15ca2d4298 - update 2002-11-25 14:24:13 +00:00
Bryce Denney
a900dc40fe - fix mismatched parens in BX_INFO calls 2002-11-25 13:49:56 +00:00
Bryce Denney
c7d3a2c6bd - move information from win32.txt and macintosh.txt into doc/docbook/misc.txt.
This information was quite obsolete.  Anything useful in here should be
  merged into the documentation some day.  It certainly should not be
  sitting in the main directory where it might confuse people.

Modified Files:
  doc/docbook/misc.txt
Removed Files:
  macintosh.txt win32.txt
2002-11-25 13:30:09 +00:00
Bryce Denney
44a003c3ad - use perl script "makesym.perl" to produce a symbol table that the
Bochs debugger can read
2002-11-24 22:45:40 +00:00
Christophe Bothamy
5dc0a6ab61 - fix [ 639873 ] get_first_cd_handle called before init
We set the cdrom to ejected first (no call to get_first_cd_handle),
  the status will be updated after init
2002-11-24 14:57:43 +00:00
Christophe Bothamy
2252507276 - add "-n" option to NOT load any configuration file 2002-11-24 13:41:07 +00:00
Christophe Bothamy
2dad04034c - rename rombios.txt for 2, 4, 8 processors 2002-11-23 21:02:03 +00:00
Bryce Denney
87baf09bb9 - call new function ensure_text_console_exists before going into the
text config interface.  This function does not have any contents yet...
  the contents need to be filled in for those platforms which sometimes
  have no stdin/stdout.  The default case, in which stdin/stdout is
  usable, is to just return.  But if stdin/stdout is NOT usable, this
  function should display a warning dialog and quit.
2002-11-23 13:26:21 +00:00
Bryce Denney
714924eadc - check in Br'fin's solution to CFURLGetFileSystemRepresentation
compile error on MacOSX.  This patch was attached to an email today.
2002-11-23 12:35:42 +00:00
Bryce Denney
55d148aca5 - check in compiled version from
Patch [ 642397 ] Applescript:Fix to handle spaces in path
2002-11-23 12:22:26 +00:00
Bryce Denney
752fc2ce77 - from Br'fin, patch #642397: Applescript:Fix to handle spaces in path
This patch fixes bochs.applescript to handle a case where there are
  spaces in the current path.
2002-11-23 12:21:38 +00:00
Bryce Denney
f7d1c288af - convert to unix newlines to that I can edit it and valid patches can be made
against it.  It was appearing as one gigantic line.  I hope this doesn't
  break anything.
2002-11-23 12:19:29 +00:00
Christophe Bothamy
9fa58247c1 - update with latest released LGPL VGABios (v0.3b) 2002-11-23 10:05:07 +00:00
Bryce Denney
ca6fdcc47a - change REL_STRING so that it explains that this isn't 2.0.pre2, it's
the CVS version.
2002-11-23 06:37:56 +00:00
Bryce Denney
7b3e7482e3 - already applied, deleting now 2002-11-23 01:12:51 +00:00
Bryce Denney
d9c5433cd4 - get sparc conf file in sync with others 2002-11-23 00:52:05 +00:00
Bryce Denney
c6674c7b67 - add -lm to LIBS, but only when it's needed to link math functions.
Some platforms don't need anything, and others add -lm automatically.
2002-11-23 00:29:43 +00:00
Bryce Denney
eb8bb017a4 - fix make install_macosx in VPATH build. It has to use "test -e" to
look for things in its install list, which may be files or directories
  (like bochs.app)
2002-11-23 00:25:50 +00:00
Stanislav Shwartsman
a4806d3fce Fixed the MXCSR mask value 2002-11-22 21:42:46 +00:00
Stanislav Shwartsman
9bf3b44665 Fixed a little logic problem with FPU TWD save/restore 2002-11-22 21:33:12 +00:00
Stanislav Shwartsman
2b2e773dde Fixed a problem in LDMXCSR instruction
Beta version of FXSAVE/FXRSTOR instructions implementation
(still imcomplete, doesn't fully restore FPU state)
2002-11-22 21:21:31 +00:00
Bryce Denney
6f798350f1 - previous rev was quite incomplete. Add the missing file lists. 2002-11-22 21:04:10 +00:00
Bryce Denney
b079f4ace2 - move includes of standard headers stdlib, stdio, etc. before the include of
bochs.h.  Bernd Korz reported redefinition of Bit32u in the system header
  files, which I never saw before I moved bochs.h up above the other includes.
- The exact errors:
    /boot/develop/headers/posix/be_prim.h:23: error: conflicting types for
    `typedef long unsigned int Bit32u'
    /boot/home/Entwicklung/Sourcecodes/bochs/config.h:474: error: previous
    declaration as `typedef unsigned int Bit32u'
2002-11-22 15:14:39 +00:00
Christophe Bothamy
1a10b8f87b - compile BIOSes from rombios.c r1.81 2002-11-22 14:41:06 +00:00
Christophe Bothamy
f0c3eb675a - fix [ 642031 ] FATAL: Keyboard RESET error:993
Clear the incoming keys before reseting the keyboard.
2002-11-22 14:40:09 +00:00
Christophe Bothamy
da726de04f - this document has been included in the docbook user document 2002-11-22 11:49:09 +00:00
Christophe Bothamy
a7f428d1c4 - the document has been included in the docbook user document 2002-11-22 11:47:55 +00:00
Stanislav Shwartsman
b4f060e698 Initialize SSE environment at reset 2002-11-22 09:36:28 +00:00
Bryce Denney
eaedb25694 - set INSTALL_TARGET to use install_macosx target, when carbon --with-carbon
is used
2002-11-22 06:44:44 +00:00
Bryce Denney
bb3774e7e4 - add install_macosx target 2002-11-22 06:33:46 +00:00
Bryce Denney
41fd9fc624 - this is a place to put MacOSX specific release notes. It gets pasted
in at the top of README
2002-11-22 06:18:10 +00:00
Bryce Denney
67479020ae - check in MacOSX disk image creation utility 2002-11-22 06:07:39 +00:00
Bryce Denney
9acf9f4198 - just to make it easier to read, move definition of some makefile
variables so that they are defined above the first time they are
  used.  "make" works ok either way.
2002-11-22 03:36:08 +00:00
Bryce Denney
5d05917565 - fix my stupid typo in macosx section. It should copy the resource fork
to a file called $(SCRIPT_COMPILED_RSRC).
2002-11-22 03:30:18 +00:00
Bryce Denney
c1e5640af4 - add warning about this config enabling lots of experimental stuff 2002-11-21 20:57:34 +00:00
Bryce Denney
7382b84f8c - A new GUI is born!
add SVGALIB display library by Igor Popik <igipop@wsfiz.edu.pl>
  While it's running, you can press F12 to escape into the runtime config
  menu, and then you can change disks or quit or whatever.

  Better not try it with the bochs debugger...you could get stuck.

Modified Files:
  Makefile.in config.h.in configure configure.in main.cc
  plugin.h gui/Makefile.in
Added Files:
  gui/svga.cc
Removed Files:
  patches/patch.svgalib-gui patches/patch.svgalib-gui-f12
2002-11-21 19:26:07 +00:00
Bryce Denney
6868c681e9 - fix broken range checks in shadow params when you use x86-64 and wxWindows.
The problem is that bx_param_num_c values are signed 64 bit, but it's
  shadowing a 64 bit unsigned variable.
2002-11-21 19:12:31 +00:00
Bryce Denney
7fde35e253 - fix a bug reported on ML by Scott Duplichan. Unimplemented int15 calls
should return AH=0x86 and CF set.  The new AH=E8 calls did not return
  0x86 in some cases where the call was not implemented.
2002-11-21 19:09:36 +00:00
Bryce Denney
80e9438125 - fixup patch from Igor that is applied on top of patch.svgalib-gui 2002-11-21 18:37:34 +00:00
Bryce Denney
dcedff8d46 - fix some minor compile bugs that appear when you mix up instrumentation,
debugger, SMP, and x86-64.  A few macros were missing the CPU_ID argument,
  and a few passed nonexistent variables to the instrumentation macros.
- I changed CPU_ID into a plain old macro instead of an inline call to a
  trivial which_cpu() function, and removed which_cpu().

Modified Files:
  cpu/cpu.h cpu/ctrl_xfer64.cc debug/dbg_main.cc
2002-11-21 18:22:03 +00:00
Bryce Denney
854388c459 - include --with-all-libs 2002-11-21 18:14:00 +00:00
Bryce Denney
1d106e59ad - small hack to make VPATH build work. 2002-11-21 17:52:59 +00:00
Bryce Denney
4098c5bed8 - in 1.173 I accidently checked in some pieces of the svgalib patch along
with the nsis installer stuff.  This reverts the svgalib part.  When
  we check in the svgalib patch, I want to do it all in one piece.
2002-11-21 17:40:17 +00:00
Bryce Denney
a648fc5a63 - clean up bochs.app and bochs.scpt files that are generated on MacOSX 2002-11-21 17:30:41 +00:00
Bryce Denney
4a01410fd0 - edit MacOSX make target to support building the applescript in two steps.
Step 1, the compile, must be done locally on a MacOSX machine.  This
  gives us the contents of the resource fork, which will be checked into
  CVS as script_compiled.rsrc every time the script sources change.  Step 2
  can be done remotely on the SF compile farm: reconstruct the script
  from the separate data and resource fork files.
- not all filesystems support resource forks!  I added a test in the
  makefile to check that the resource fork is accessible, so that at least
  we will get a clear error message if the filesystem doesn't support it.
2002-11-21 17:26:48 +00:00
Volker Ruppert
0c0a87feb5 - added BX_ERROR message for not existing devices. If you enable PCI, NE2K or
SB16 in your bochsrc and the device is not compiled into bochs you will get
  an error.
2002-11-21 17:10:13 +00:00
Bryce Denney
220fe7f273 - removed gdb stub docs. They are already in docbook. 2002-11-21 08:16:53 +00:00
Christophe Bothamy
3104ba6bea - fix [ 625878 ] reset doesn't reset something(?)
In bx_cpu_c::reset method I set bx_cpu->async_event to 2
  so execution in the cpu_loop gets stopped early.

  Previously, async_event was set to 0, and with repeatable
  instructions, after reset, eip was incremented by the instruction
  length, so execution would resume at 0xffffX (X being >0, the current
  instruction length).

  In halt state I check now for reset with async_event is 2, so
  reset works also when the cpu is halted. (update to Peter change)

  I hope I fixed this the right way, please report any strange behaviour.
2002-11-21 08:08:29 +00:00
Bryce Denney
c731c3073e - rename bochsrc.txt to bochsrc.bxrc, and remove the .bat file so that
we can create one from scratch in the installer
2002-11-21 08:01:54 +00:00
Bryce Denney
8e2f3b5ea7 - use * wherever possible so that if file names changes a bit, this install
script will still work.
- specify the config file in run.bat since now it ends with .bxrc
- rename the link on the desktop to "Linux Demo in Bochs 2.0.pre2"
- rename "Bochs Shell Extensions" to "Register .bxrc Extension" and
  make it required.  I want to document how it works, so I don't want
  it to sometimes work like the docs and sometimes not.  Use .bxrc
  instead of .bxr.
- create registry keys for Run, Configure, Edit, and Debugger.
2002-11-21 08:00:14 +00:00
Bryce Denney
6e6d9701a1 *** empty log message *** 2002-11-21 06:41:39 +00:00
Bryce Denney
9b7955c732 - rename VGABIOS-lgpl-README to .txt as well 2002-11-21 06:38:56 +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
2146c8d1d2 - rename Makefile to Makefile.in for version substitution by configure script 2002-11-21 03:52:30 +00:00
Bryce Denney
f21ab23c51 - add NSIS makefile 2002-11-21 03:50:59 +00:00
Bryce Denney
b2ec77815d - renamed bochs.nsi to bochs.nsi.in, added configure variables
- substitute version from configure script automatically

Modified Files:
  configure.in configure
Added Files:
  build/win32/nsis/bochs.nsi.in
Removed Files:
  build/win32/nsis/bochs.nsi
2002-11-21 03:43:04 +00:00
David Guarneri
562ec47c7e Added the first Method for Installing Windows 98 as a guest OS. 2002-11-21 03:34:15 +00:00
Bryce Denney
3be9628183 - check in NSIS installer scripts and data, for building win32 install
packages.  Michael Rich made this installer setup based on initial work
  by Robert (segra) and an example by Joost Verburg.

Added Files:
  Makefile ModernUI.nsh WinMessages.NSH bochs.ico bochs.nsi
  modern.bmp modern2.exe penguin.ico
2002-11-21 03:08:35 +00:00
Bryce Denney
bd73bf4d8d - add SVGAlib patch from Igor Popik <igipop@wsfiz.edu.pl> 2002-11-21 01:31:12 +00:00
Bryce Denney
de814bece5 Patch name: patch.decode-interrupts
Author: Bryce Denney
Date: Wed Nov 20 19:26:24 EST 2002

For any software interrupt, hardware interrupt, or exception, Bochs
calls the instrumentation macro BX_INSTR_INTERRUPT().  For each call
to BX_INSTR_INTERRUPT(), this patch adds instrumentation code that
looks up each interrupt in the Ralf Brown x86 interrupt list and
prints the name of the interrupt in English.  This output can be very
useful in telling what a user space program is doing.
2002-11-21 01:25:18 +00:00
Bryce Denney
d7ec326dff - everything now includes --enable-instrumentation 2002-11-20 23:31:45 +00:00
David Guarneri
d81a55071a Added "Read section on third party licensing" to each installation section. 2002-11-20 23:30:13 +00:00
Bryce Denney
96d6fb5ff5 - add VESA docs from Jeroen 2002-11-20 21:11:01 +00:00
Bryce Denney
e170b516fd - mention Jeremy Parsons (Br'fin) who has been doing lots of work on
MacOS X
2002-11-20 20:58:48 +00:00
Bryce Denney
0ab5bfa1d2 - move "$(LIBTOOL) --mode=link" into the @LINK@ configure variable, so that
it doesn't show up in nmake makefiles
2002-11-20 20:42:40 +00:00
Bryce Denney
691c9d56c7 - change to nmake compatible lines (from Psyon) 2002-11-20 20:36:05 +00:00
Bryce Denney
aaf8fce0b0 - I'm trying to keep the features table pretty general and simple, so I took
out the cross ref to router setup and tun/tap.  Also, on windows you can talk
  to the host and the internet without any extra effort (this was wrong
  before).
2002-11-20 20:27:53 +00:00
Bryce Denney
97002c31e4 - add "sound" feature 2002-11-20 20:19:34 +00:00
Bryce Denney
aea1d5a65b - add some text from Jeroen about VESA support 2002-11-20 20:13:35 +00:00
Bryce Denney
64749c4b97 - fix args of DEV_ne2k_print_info (there should be 4, not 0) 2002-11-20 19:44:05 +00:00
Bryce Denney
919e8a3575 - move call to update_drive_status_buttons until after hardware init.
Before when the debugger was enabled, the update function was called
  before hardware init leading to a panic.

Modified Files:
main.cc debug/dbg_main.cc
2002-11-20 19:34:51 +00:00
Bryce Denney
bd6e7b0ff1 - rewording, nothing major 2002-11-20 19:18:26 +00:00
Bryce Denney
c56bba0a44 - add BX_PLUGGABLE to all ne2k sub-files, so that they will import DLL
symbols

Modified Files:
  eth.cc eth_arpback.cc eth_fbsd.cc eth_linux.cc eth_null.cc
  eth_packetmaker.cc eth_tap.cc eth_tuntap.cc
2002-11-20 19:06:23 +00:00
Bryce Denney
2500ca034f - add "million" after all of the example ips settings. 2002-11-20 18:58:48 +00:00
Bryce Denney
ec03d884b6 - revert to 1.10 to undo my accidently checkin. ARG!
In my local directory I always copy Makefile.jade to Makefile, and then
  about once a month I accidently check it in.  Sorry.
2002-11-20 18:51:01 +00:00
Bryce Denney
c2c9ae8d38 - add instructions for gdbstub 2002-11-20 18:20:11 +00:00
Bryce Denney
906b4b2ede - change BX_SREG_CS to BX_SEG_REG_CS 2002-11-20 17:55:41 +00:00
Bryce Denney
eaa52798fd - according to doc request 499109 "docs - infozip can be used for sbide.exe"
you can use unzip so you don't necessarily have to run sbide.exe on
  DOS or windows.
2002-11-20 17:19:43 +00:00
Bryce Denney
d433e117ee - attempt to fix ah=0x86 return value on unimplemented int15 functions 2002-11-20 15:41:23 +00:00
Bryce Denney
00c0ff3a5a - call bx_gui::update_drive_status_buttons after all hardware has been
initialized.  This should fix
  Bug #630865: CDRom icon in toolbar initiall 'ejected'
2002-11-20 13:08:17 +00:00
Bryce Denney
bb428aaeb9 - use $(srcdir) to make VPATH compile work for bximage 2002-11-20 13:01:57 +00:00
Bryce Denney
54cf0b4cf5 - set MAKE=nmake when configuring for VC++. untested. 2002-11-20 12:42:53 +00:00
Bryce Denney
c43b46c531 - check in some small compile patches from Martin Str|mberg <ams@ludd.luth.se>
to make Bochs compile on DJGPP.
  - put references to SIGSTOP and SIGTSTP in #ifdefs
  - add definition of BX_CD_FRAMESIZE and CD_FRAMESIZE
  - look for curses functions in -ldcurses

Modified Files:
  gui/term.cc iodev/cdrom.cc configure.in configure
2002-11-20 12:23:42 +00:00
Bryce Denney
0967c89ec2 - check in compiled script from Br'fin, who says
> Attached is script_compiled.rsrc. This is the end result of running
  > osacompile on bochs.applescript and merging it with the resources in
  > script.r. (At which point I did cp bochs.scpt/rsrc script_compiled.rsrc
  > to get the resource fork as a single file)
  >
  > To actually turn script.data and script_compiled.rsrc into one single
  > application, you still need to run the following
  >
  > cp script.data bochs.scpt
  > cp script_compiled.rsrc bochs.scpt/rsrc
  > SetFile -t "APPL" -c "aplt" bochs.scpt
2002-11-20 12:09:15 +00:00
Bryce Denney
e137c49337 - this turned into a mess, remove it 2002-11-20 03:52:42 +00:00
Bryce Denney
1ef6479c6f - this is very very old, and the linux mouse is working quite well now 2002-11-20 03:50:07 +00:00
Bryce Denney
e0b4cb6421 - nongnu make programs don't like "$<" except in pattern rules 2002-11-20 03:17:12 +00:00
Bryce Denney
002b7a3145 - the files in INSTALL_LIST_BIN_OPTIONAL were being omitted in
"make install_win32"
2002-11-19 21:31:00 +00:00
Bryce Denney
9dd8981c1a - I was still having problems with the pathnames in /usr/lib.
Now I hope I have it right.  After the sed script it should look like
    %attr(-,root,root) %dir /usr/lib/bochs
  I was having trouble getting the initial / on "/usr/lib/bochs"
2002-11-19 20:50:04 +00:00
Bryce Denney
b601437f2d - remove --enable-dc2300-vlb-ide from all .conf files at Volker's suggestion.
Modified Files:
  .conf.beos .conf.everything .conf.linux .conf.macosx
  .conf.win32-cygwin .conf.win32-vcpp
2002-11-19 20:48:07 +00:00
Bryce Denney
1baa9ea124 - only build the list of plugins on the fly, for now. Leave all other
files specified as before.  This solves the problem of
  "error: cannot remove /usr/share/doc - directory not empty"
  which I was getting when I tried to remove the RPM.
2002-11-19 20:26:09 +00:00
Bryce Denney
3e0cc7949b - fix niclist location in win32 release config 2002-11-19 20:23:08 +00:00
Bryce Denney
c0113c8d5f - fix library list for Release configuration 2002-11-19 19:41:08 +00:00
Bryce Denney
4074728f01 - build file list on the fly, as suggested in the usenet article
reference in NOTES
2002-11-19 19:32:09 +00:00
Bryce Denney
0145494d9d - copy a useful usenet article 2002-11-19 19:03:01 +00:00
Volker Ruppert
64b66e709e - converted ne2k device to a plugin
- moved ne2k presence check to devices.cc
- added special make rules for the ne2k and the lowlevel network support
- added macro for the debug feature of the ne2k
2002-11-19 18:56:39 +00:00
Bryce Denney
70397f057f - tell rpm to include the plugins in the rpm, in their new location:
/usr/lib/bochs-@SEDVERSION@/plugins/*
2002-11-19 17:39:59 +00:00
Bryce Denney
383954dee9 - make it similar to .conf.linux. I left out networking and sound since
they don't exist on macosx yet.
2002-11-19 17:00:24 +00:00
Bryce Denney
dfcd2d4a65 - add --enable-dc2300-vlb-ide and --enable-all-optimizations
to match .conf.linux
2002-11-19 16:53:51 +00:00
Bryce Denney
58b6f327bc - add --enable-dc2300-vlb-ide in normal win32 vc++ compile to make it
match .conf.linux
2002-11-19 16:52:53 +00:00
Bryce Denney
7f596646c6 - bump up version number to 2.0.pre2 in preparation to start building
binaries
2002-11-19 16:36:17 +00:00
Bryce Denney
78bbc00d8c - remove tons of old comments with other configuration ideas
- leave just the two configurations that I plan to build binary RPMs with:
  one is conservative with just X11 and the options we used before,
  and the other includes plugins, lots of display libraries, etc.
2002-11-19 16:35:00 +00:00
Bryce Denney
c62dda51d3 Bug #640549: dbg fails if wx configured but not on.
- My previous rev to dbg_main.cc caused the debugger to fail when readline
  was disabled.  With these changes I have tested more thoroughly and it works
  with readline enabled or disabled, and with wxWindows enabled and disabled.
2002-11-19 16:19:20 +00:00
Bryce Denney
29c3ae28f4 - fix commented-out example lines for ata0-slave 2002-11-19 15:06:05 +00:00
David Guarneri
6006de74c5 Moved the SB16 section to a better location. 2002-11-19 14:33:26 +00:00
David Guarneri
e645e3269a Added information on SB16 classes from the old docs (sound.html). 2002-11-19 14:16:31 +00:00
David Guarneri
b0ec110bdc Moving the "classes" portion of SB16 emulation to the developer documentation. 2002-11-19 14:08:30 +00:00
Bryce Denney
eff7720ae7 This fixes bug #640549: dbg fails if wx configured but not on.
- The Bochs debugger uses BX_WITH_WX to decide to change to wxWindows debugger
  behavior: sending a synchronous message to the config interface to get a new
  command, sending all dbg_printf output to the config interface, deciding
  whether to trap control-C, etc.  But now that it's possible to compile with
  BX_WITH_WX and BX_WITH_other_things, this isn't quite right anymore.  With
  this change, we now use calls to a new method SIM->is_wx_selected() to decide
  which behavior to use.  This method is equivalent to checking if the display
  library variable is set to "wx", but it's implemented in such a way that it
  only has to check a boolean for each call to SIM->is_wx_selected().
- in siminterface.cc, init some local variables to 0 to avoid compile
  warnings.

Modified Files:
  debug/dbg_main.cc gui/siminterface.cc gui/siminterface.h
2002-11-19 09:27:39 +00:00
Bryce Denney
ab4fbffeeb - replace with lexer.c built on linux instead of cygwin. It didn't
rename yy_* symbols to bx_* symbols for some reason.
2002-11-19 09:25:20 +00:00
Bryce Denney
ccd006835b - always print header, not just if !wx 2002-11-19 08:54:32 +00:00
Bryce Denney
00ed14a272 - put #if BX_DEBUGGER...#endif around the whole file. I already modified
debug/lexer.l but I hadn't checked in the modified lexer.c until now.
2002-11-19 08:36:14 +00:00
Bryce Denney
044598dfa6 - VC++ didn't like the fact that we were deleting a const char*. So I
typecast it to a char* and THEN deleted it!
2002-11-19 05:54:25 +00:00
Bryce Denney
9b14101a05 - rewrite typecast of temp to Bit64u to keep VC++ happy. I don't really
know what it thought was wrong.
2002-11-19 05:53:47 +00:00
Bryce Denney
dcc6d6038a - we forgot to initialize trace_reg and kill_bochs_request to 0. 2002-11-19 05:52:52 +00:00
Bryce Denney
97f911d1fe - when VC++ sees local variables in a for statement, it doesn't think
that they go out of scope at the end, so it complains about duplicate
  definitions.
2002-11-19 05:51:52 +00:00
Bryce Denney
ae2abb8c0d - this patch has been applied now, deleting 2002-11-19 05:48:18 +00:00
Bryce Denney
0a7cb3a43c - apply patch.ifdef-disabled-options. Comments from that patch are below:
For a whole lot of configure options, I put #if...#endif around code that
  is specific to the option, even in files which are normally only compiled
  when the option is on.  This allows me to create a MS Visual C++ 6.0
  workspace that supports many of these options.  The workspace will basically
  compile every file all the time, but the code for disabled options will
  be commented out by the #if...#endif.

  This may one day lead to simplification of the Makefiles and configure
  scripts, but for the moment I'm leaving Makefiles and configure scripts
  alone.

  Affected options:
    BX_SUPPORT_APIC (cpu/apic.cc)
    BX_SUPPORT_X86_64 (cpu/*64.cc)
    BX_DEBUGGER (debug/*)
    BX_DISASM (disasm/*)
    BX_WITH_nameofgui (gui/*)
    BX_SUPPORT_CDROM (iodev/cdrom.cc)
    BX_NE2K_SUPPORT (iodev/eth*.cc, iodev/ne2k.cc)
    BX_SUPPORT_APIC (iodev/ioapic.cc)
    BX_IODEBUG_SUPPORT (iodev/iodebug.cc)
    BX_PCI_SUPPORT (iodev/pci*.cc)
    BX_SUPPORT_SB16 (iodev/sb*.cc)

Modified Files:
  cpu/apic.cc cpu/arith64.cc cpu/ctrl_xfer64.cc
  cpu/data_xfer64.cc cpu/fetchdecode64.cc cpu/logical64.cc
  cpu/mult64.cc cpu/resolve64.cc cpu/shift64.cc cpu/stack64.cc
  debug/Makefile.in debug/crc.cc debug/dbg_main.cc debug/lexer.l
  debug/linux.cc debug/parser.c debug/parser.y
  disasm/dis_decode.cc disasm/dis_groups.cc gui/amigaos.cc
  gui/beos.cc gui/carbon.cc gui/macintosh.cc gui/rfb.cc
  gui/sdl.cc gui/term.cc gui/win32.cc gui/wx.cc gui/wxdialog.cc
  gui/wxmain.cc gui/x.cc iodev/cdrom.cc iodev/eth.cc
  iodev/eth_arpback.cc iodev/eth_fbsd.cc iodev/eth_linux.cc
  iodev/eth_null.cc iodev/eth_packetmaker.cc iodev/eth_tap.cc
  iodev/eth_tuntap.cc iodev/eth_win32.cc iodev/ioapic.cc
  iodev/iodebug.cc iodev/ne2k.cc iodev/pci.cc iodev/pci2isa.cc
  iodev/sb16.cc iodev/soundlnx.cc iodev/soundwin.cc
2002-11-19 05:47:45 +00:00
Bryce Denney
b9d6cb1aca - add various source files to the project so that it works with
".conf.everything"
2002-11-19 05:43:22 +00:00
Bryce Denney
37621495f8 - add a .conf file for testing, that enables just about every option 2002-11-19 04:55:32 +00:00
Bryce Denney
a3ad3c21e2 - if the font is already there, do not restart the font server. Shap says
reports that on some Linux systems, once you restart the font server
  you have to restart X as well.  At least with this change it only happens
  once, not every time you install.
2002-11-18 19:30:34 +00:00
Bryce Denney
90d42947e4 Detailed description:
For a whole lot of configure options, I put #if...#endif around code that
is specific to the option, even in files which are normally only compiled
when the option is on.  This allows me to create a MS Visual C++ 6.0
workspace that supports many of these options.  The workspace will basically
compile every file all the time, but the code for disabled options will
be commented out by the #if...#endif.

This may one day lead to simplification of the Makefiles and configure
scripts, but for the moment I'm leaving them alone.

More details inside the file itself.
2002-11-18 19:13:23 +00:00
Bryce Denney
d9eaf5c7d8 - eip is no longer in bx_cpu. Now we must call get_EIP() accessor instead. 2002-11-18 17:27:40 +00:00
Volker Ruppert
35c2be5518 - changed ne2k presence options from "valid" to "present" 2002-11-18 17:16:07 +00:00
Bryce Denney
c07684021c - fix obvious bug in macintosh gui code caused by search and replace
gone wrong.  It said "bx_amigaos_gui_c" instead of "bx_macintosh_gui_c".
  I wish somebody would test this!
2002-11-18 16:42:57 +00:00
David Guarneri
4a23c1b464 Added "Soundblaster 16 Emulation" from the sound.html file in the old docs. Made good use of emphasis tags and listitem tags. Also embedded sections (one level). It looks nice. Just need to add a couple of tables. 2002-11-18 07:40:50 +00:00
Bryce Denney
b161509c56 - put wxT() around every string constant that gets passed into wxWindows.
This turns the string into a multibyte char * if necessary.  It becomes
  important if wxWindows is compiled with unicode support.
2002-11-18 02:40:31 +00:00
Bryce Denney
ab6cb49693 - this fixes bug #638600: need default plugin search path
- configure script adds -DBX_PLUGIN_PATH="${plugdir}" to CFLAGS/CXXFLAGS
  in the Makefile.
- in main.cc, if plugins enabled and the environment variable LTDL_LIBRARY_PATH
  is not set, then it gets set to the value supplied by BX_PLUGIN_PATH.

Modified Files:
  main.cc Makefile.in configure.in config.h.in configure
2002-11-18 02:32:53 +00:00
Volker Ruppert
cde5737dc5 - the names of the object files for the lowlevel network support are now stored
in NETLOW_OBJS. The value of NE2K_OBJS is now 'ne2k.o' if ne2k support is
  enabled. These changes are necessary before converting the ne2k to a plugin.
2002-11-17 12:49:46 +00:00
Bryce Denney
70b69a2a64 - if cmd line is empty, don't touch array index 1 with "*(last_nonspace+1)"
- argc was returning the wrong number of args.  Now I treat null and space
  the same way, except that null causes the loop to exit.
- change "extern "C" int WinMain" to "int WINAPI WinMain".
- in WinMain pause for the user to read the screen before making it disappear.
  This is very useful when there was an error during startup because otherwise
  you can't read it.  However we'll probably want to disable it when the
  user actually asked for Bochs to quit.
2002-11-16 22:50:51 +00:00
Bryce Denney
3ad052c23a - minor fix to compile in VC++ 2002-11-16 22:44:09 +00:00
Bryce Denney
108d2c44b8 - in gui: change control.cpp to textconfig.cpp
- in cpu: add sse.cpp and sse2.cpp
- change settings to point to wxWindows 2.3.3 in preprocessor, linker, and
  resource settings.
2002-11-16 22:42:19 +00:00
Bryce Denney
d3c734f3be - apply patch from Volker, who says:
> Dlltool creates a useless file called 'mingwex'.
  > I think the first dlltool call should only contain bochs object files and
  > no link options or external libraries.
2002-11-16 17:56:05 +00:00
Bryce Denney
cb1d6121b2 - this should fix bug #635223: VGA tiles array access out of bounds.
For years we have been writing beyond the end of this array in the VGA code:
    bx_bool  vga_tile_updated[BX_NUM_X_TILES][BX_NUM_Y_TILES];
  and doing who-know-how-much damage to other memory structures in the process.
  I changed every reference to vga_tile_updated[][] into calls to two macros
  GET_TILE_UPDATED and SET_TILE_UPDATED, and defined the macros to check
  the bounds of the array before referencing it.  At first I used an
  assert, then a panic, then an error, and now I'm not printing any message
  at all because there were thousands and thousands of messages during
  a boot of win95 when it's updating the win95 logo screen.
- I couldn't resist cleaning up a few confusing-looking things like
  "if (condition) { // }".  There are no functional changes except for
  bounds checking on the vga_tile_updated array.
2002-11-16 15:43:13 +00:00
Bryce Denney
17e7f6c2eb - add configure test for -lmingwex, which is needed on newer cygwin systems
for opendir(), readdir() and closedir() used in ltdl.c.
2002-11-16 13:43:41 +00:00
Bryce Denney
53e9cc60e9 - remove GUI_LINK_OPTS from the dlltool line. The dlltool line only really
needs to include the .o's and .a's that are part of the Bochs source code
  so that it can create a list of Bochs symbols that need to be exported.
  I started out using the same list as the link line, but dlltool
  doesn't accept all the same options as the link such as -I and -L.
2002-11-16 12:55:09 +00:00
Volker Ruppert
68a7e67d1b - fixed the names of the gui dll plugins (bx_*.dll) 2002-11-16 10:44:27 +00:00
Volker Ruppert
26c9b55bc2 - the SB16 plugin dll needs the link option -lwinmm
- BX_PLUGGABLE must be defined in soundwin.cc
2002-11-16 10:29:57 +00:00
Bryce Denney
2b1982bb3a - fix yet another creative spelling of "library" 2002-11-15 22:56:37 +00:00
Christophe Bothamy
e8880cf9b3 - fix compiling with --enable-pci --enable-debugger 2002-11-15 22:11:24 +00:00
Bryce Denney
34f8d7e447 - there are 2 definitions of main. I moved the "normal" one to the top so that
it's easier to find.  The other one is for wxWindows on win32 only.
- for wxWindows on win32, I added a function called RedirectIOToConsole() from
  an article in the Windows Developers Journal that creates a console window
  and sets up stdin,stdout,stderr to operate on the console.  This works,
  except for a console freezing problem that I described on the mailing list
  earlier today.
- Once it is working better, we may want to use the WinMain definition for
  other types of compiles on win32, and maybe even for all win32 compiles.  In
  particular when we compile with SDL we should create a console window too.
- comment out some debug output from the command line parser, add \n's in
  a few places.  (I'm using stderr instead of BX_PANIC because I don't think
  the logging system is ready to be used at this early stage.)
2002-11-15 18:53:52 +00:00
Bryce Denney
515ffa8ecc - add BOCHSAPI_CYGONLY to insert DLL export tags in places that only Cygwin
wants them.
- modified: bochs.h config.h.in gui/siminterface.h
2002-11-15 18:31:55 +00:00
Bryce Denney
adb6e17ffa - after plugin conversion, the global variable "bx_sb16" doesn't exist
anymore.  Point to the new global symbol for the sb16.
2002-11-15 18:29:19 +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
add9107dae - add BOCHSAPI to bxICache_c 2002-11-15 18:12:04 +00:00
Bryce Denney
983b8f0962 - the #define of off_t to "long" was causing problems when compiling
textconfig.cc.  I can't quite explain why it wasn't a problem before,
  but it's certainly a problem now.  In fact VC++ does define off_t, so
  I removed the #define entirely.
2002-11-15 18:11:40 +00:00
Bryce Denney
5744c1cb90 - include "ltdl.h" with quotes, instead of <ltdl.h> with <>'s. It's
supposed to be a local header file, not a system header file.
2002-11-15 18:09:37 +00:00
Bryce Denney
94cf7eff9a - add --enable-optimizations, so that release binaries will be compiled
with Kevin's speedups
2002-11-15 18:07:54 +00:00
Bryce Denney
ea5472d7c8 - update VC++ workspace. renamed gui/control.cc to textconfig.cc,
added cpu/sse*.cc, etc.
2002-11-15 18:01:51 +00:00
Stanislav Shwartsman
3217759a75 Implemented
PSHUFLW_VqWqIb, PSHUFHW_VqWqIb instructions
2002-11-15 17:34:47 +00:00