Commit Graph

1019 Commits

Author SHA1 Message Date
Bryce Denney
5db284d049 - add WinMe install tips 2001-10-31 20:53:18 +00:00
Bryce Denney
84ba2ba30c - add Greg's instructions on mtools, and Volker's tips on mounting a
disk image on the loop device in linux.
2001-10-31 19:49:22 +00:00
Bryce Denney
6d3e646fba - add empty misc.txt 2001-10-31 19:42:15 +00:00
Bryce Denney
fa027a3807 - Albert's fix to bug #452275 2001-10-31 19:30:45 +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
Gregory Alexander
98b68ec140 Changed the error for missing fonts to point to the documentation.
Modified Files:
 	x.cc
2001-10-11 13:03:35 +00:00
Gregory Alexander
f952b17c62 Trying to improve interactive performance.
Changed frequency on timer in pit_wrap.
Changed time quantum on slowdown_timer.

 Modified Files:
 	pit_wrap.cc slowdown_timer.cc
2001-10-11 13:01:27 +00:00
Bryce Denney
b86dbe1f3c - committed patches/patch.no-busy-in-tr-cache. I'm leaving the patch
lying around for a while in case it needs to be reverted.
2001-10-09 21:15:14 +00:00
Bryce Denney
0c19a77c95 - This patch fixes a bug reported by Peter Lammich,
[ #461730 ] IRETD causes problems if NT-flag is set
2001-10-09 21:13:30 +00:00
Bryce Denney
605a28df66 - add panic to warn people of incomplete IRET32 emulation, and encourage
people to report if they hit this panic.
2001-10-09 13:45:17 +00:00
Bryce Denney
70069a4ad8 - also compile niclist when NE2000 is enabled 2001-10-09 13:41:01 +00:00
Bryce Denney
75a1d092f6 - I was dismayed to find that stack_return_from_v86 was terribly incomplete.
It did an exception, and then the real code seemed to be commented out
  with an #if 0...#endif.  I put a panic there, asking people to please
  report how they arrived at that condition, and enabled the #if 0 code.
  This was pointed out by luca abeni <l_abeni@hotmail.com>.
2001-10-09 12:23:15 +00:00
Bryce Denney
27042d347c - add niclist to workspace 2001-10-09 04:39:52 +00:00
Bryce Denney
2d976fb371 - fixed a minor problem I introduced in macos X specific code 2001-10-09 03:21:48 +00:00
Bryce Denney
2d929ad4dc - correct problem in the ips line when saving a bochsrc, which I clumsily
added in 1.71 or so.
2001-10-08 02:02:47 +00:00
Bryce Denney
0978263092 - fix for bug [ #452159 ] win32: mouse stuck if bochs win partly off screen
Now we center the mouse periodically, whether or not the mouse has
  wandered outside of the window or not.
2001-10-08 00:42:52 +00:00
Bryce Denney
27dcb9f6c2 - the message about F12 enabling the mouse is so long on my system that
you can't read it all.  Made it a little more brief.
2001-10-08 00:38:22 +00:00
Bryce Denney
5de6080bc5 - disasm and debug should be disabled by default 2001-10-07 23:41:34 +00:00
Bryce Denney
462be39d0d - fix up the Win32 Release configuration, which had never worked before 2001-10-07 23:39:34 +00:00
Bryce Denney
4b684ce261 - only one workspace file is needed, bochs.dsw 2001-10-07 23:36:11 +00:00
Bryce Denney
b44617ddd5 - use gcc instead of egcs, since gcc is much more standard. Using a
hardcoded gcc was failing on debian.
2001-10-07 21:23:00 +00:00
Bryce Denney
d822724eae - only one workspace file is needed: bochs.dsw in the main directory. 2001-10-07 21:09:39 +00:00
Bryce Denney
c99f9aa8ef - use @CPP_SUFFIX@ substitution to get the dependencies right for nmake too 2001-10-07 20:19:04 +00:00
Bryce Denney
d22f4d0d7d - debug executable path was hardcoded... not sure how to remove all others 2001-10-07 19:46:22 +00:00
Bryce Denney
8396e8b77a - move intermediate output and results to a directory called obj-debug
for debug configuration or obj-release for release configuration.
- instead of gui,iodev,cpu,etc. having their own obj-debug directory, it
  all goes into a single output directory for the whole project.  I did
  this when I was having trouble getting any debug information from the
  static library directories to be recognized in the VC++ debugger.  Maybe
  it's not necessary.
- changed the compile arguments for the debug config so that debug symbols
  are created.  We used to have:
    debug config: /G6 /MT /W4 /GX /O2
  Now it says this:
    debug config: /MTd /W3 /GX /Z7 /Od
  I guess I haven't tested the release config yet, but the debug config is
  working great now.  I even have symbolic debugging of functions in the
  gui/iodev/cpu libraries.
2001-10-07 19:28:57 +00:00
Bryce Denney
d746112a1b - make the "getlevel" function foolproof 2001-10-07 18:42:55 +00:00
Bryce Denney
d9bde38f33 - on win32 in some configurations, code within an assert is completely
removed!  I used this trick sometimes to check that a function returned
  what I expected, like assert (func () == 0), but this caused the
  func() to never get called.  Oops.
2001-10-07 18:16:01 +00:00
Bryce Denney
c90e548019 - avoid symbol conflict on DUPLICATE by renaming it to BX_DUPLICATE 2001-10-07 14:43:59 +00:00
Bryce Denney
ed1812222e - added iodev/eth_win32.cc 2001-10-07 13:41:55 +00:00
Bryce Denney
48331d9dad - remove the hardcoded CC,CFLAGS,CXX,CXXFLAGS. In this case you're building
for a different compiler, so why be so picky which one it is!  Some
  people don't have egcs so this was failing.
2001-10-07 13:32:01 +00:00
Bryce Denney
6a50756472 - I thought I did this in rev 1.42 but I guess I missed it...make win32_snap
should not have to re-run the .conf.win32-vcpp script.
2001-10-07 13:29:53 +00:00
Bryce Denney
2283627565 - correct log message that said read_toc was returning 0. No. It returns 1. 2001-10-07 03:37:02 +00:00
Bryce Denney
5012a2ba85 - the windows implementation has been able to distinguish between raw
device and disk file for a while.  Even though its version of
  read_toc is minimal, in fact I would say broken, it lets people use
  an ISO disk file as a cdrom.
- in this revision, I wrote the "unix equivalent" of the win32 code, including
  the broken version of read_toc.  Now win32 and unix should act very similar
  when they encounter an ISO disk image.
- one important improvement is in read_toc, I have added "*length=1" for both
  win32 and unix, since otherwise the function returns random junk for the
  length of the TOC.  I also tried "*length=0" and that created the "lost
  interrupt" behavior that psyon has been trying to get rid of...I changed it
  back to *length=1 of course and left a note to him in that bug report.
2001-10-07 03:34:54 +00:00
Bryce Denney
585d11de57 - print strerror in some log message 2001-10-07 03:28:45 +00:00
Bryce Denney
947b14aaa8 - fix a few things that I missed in prev rev 2001-10-07 01:07:59 +00:00
Bryce Denney
31103b46b5 - this patch makes it easy to add/remove the max_ips and system_clock_sync
options from all the right places.
2001-10-07 00:58:46 +00:00
Bryce Denney
caf267f24e - remove references to max_ips and system_clock_sync. If you need to revert,
find patches/patch.remove-max-ips.
2001-10-07 00:58:10 +00:00
Bryce Denney
2c95087b7e - remove stuff about max_ips and system_clock_sync since the slowdown
device doesn't use them presently.
2001-10-07 00:48:46 +00:00
Bryce Denney
49d50d0010 - add another choice when you have action=ask: abort! Calling abort
will dump core, and the core can sometimes be loaded into the debugger
  to give some hints as to what is going on.  This could be especially
  useful when the bochs debugger is off.
- try to do something reasonable when abort() doesn't exist on the system.
2001-10-07 00:35:35 +00:00
Bryce Denney
8a21b1a9d6 - apply patches/patch.add-makefile-deps. I have added dependencies
which were generated with gcc -MM to the end of each Makefile.in
  so that make understands which files depend on which.  Basically,
  everything depends on bochs.h, which depends on everything, which
  is not ideal.
2001-10-07 00:33:21 +00:00
Bryce Denney
f10f397e80 - this patch sticks dependencies at the end of every Makefile.in. There
are other ways to approach this, and I would be happy to revert it
  if we come up with a better solution.
2001-10-07 00:32:06 +00:00
Bryce Denney
cd88c86840 - add configure check for the abort function, which I will use as a
choice when a panic occurs.
2001-10-07 00:10:19 +00:00
Bryce Denney
7279914d1b - don't blindly reject odd length atapi commands. There are cases when
it's really ok according to ATA-4.
2001-10-06 23:55:19 +00:00
Bryce Denney
1dea7b1d3e - I changed the args to bx_parse_cmdline in main.cc, so I had to update this as
well.
2001-10-06 23:14:42 +00:00
Bryce Denney
03c9a235b5 Fixes for bug [ #467530 ] cmd line overrides config interface
- rework the order of initialization with and without the control panel.
  The thing that was bothering me most was the command line options were
  being processed after the user had set everything in the control panel.
  This is clearly not what's expected--the command line options should
  affect the startup defaults of the control panel, but whatever the user
  chooses in the cpanel menus is the final choice.
- if the control panel (config interface) is not wanted, the user can
  put "-nocp" or "-nocontrolpanel" as the FIRST argument on the command
  line.  Also, the "-psn" option which is automatically passed in by
  MacOS X when you doubleclick the application causes the control panel
  to be disabled.  In this case, the order of operations is:
    1. read bochsrc
    2. parse command line options.
- if the control panel is enabled (default), the command line options are
  parsed to provide the startup defaults for the control panel, but the
  control panel settings are the final answer.  So the order is:
    1. parse command line options
    2. run control panel  (if user chooses, he can read bochsrc from menus)
- I haven't tested command line options with the debugger yet.
2001-10-06 22:31:31 +00:00
Bryce Denney
1b45532520 - add comment about why some unusual case might be reached 2001-10-06 22:23:10 +00:00
Bryce Denney
7c82612bc9 - add strerror(errno) to open failed message
- minor tweaks
2001-10-06 17:32:58 +00:00
Bryce Denney
19b3618409 - add strerror(errno) output to a few log messages
- treat fatal network errors as panics.  Any error whose behavior is to
  close the fd and give up--it now does a BX_PANIC to say what is happening.
2001-10-06 17:31:44 +00:00
Bryce Denney
d9c708f718 - add strerror(errno) on some log messages 2001-10-06 17:30:19 +00:00
Bryce Denney
bd286316a0 - clarify panic message in load_seg_reg, to show what's really being compared 2001-10-06 15:19:17 +00:00
Bryce Denney
5ebae91ac4 - bend the rules slightly so that panics get printed all the time, even
if the user tried to set action=ignore.
2001-10-06 14:36:00 +00:00
Bryce Denney
e5d9cea3a9 - patch to make hard disk model return error codes instead of always
panicing if something goes wrong.  This has been committed in CVS, but
  I'm leaving it here in patches so that it can easily be reverted,
  if necessary.
2001-10-06 09:13:42 +00:00
Bryce Denney
a9204c53f0 - make hard disk code return error codes when data is not available instead
of just panicing.  In particular, if the logical sector is out of bounds
  or the disk image cannot be read/written at the desired offset, we now
  abort the ATA command and return an error code.  Many of the old BX_PANIC
  messages are turned to BX_ERROR, so they will still appear in the
  log, but now the device model will try to communicate this fact to
  the OS instead of simply giving up.
2001-10-06 09:04:39 +00:00
Bryce Denney
ec6a8b3ef5 - when you write the device/head register, if the device doesn't exist or
something, we need to set the error in the status register.
2001-10-06 08:59:01 +00:00
Bryce Denney
7986ea67a7 - print "read error" when hard disk cannot read the disk image, or
seeks beyond the end
2001-10-06 08:48:28 +00:00
Bryce Denney
7022f0e250 - clarify message a bit 2001-10-06 08:45:18 +00:00
Bryce Denney
4e22b9a5db - add new log action when debugger is on, which is to continue but
return to the debugger ASAP.
2001-10-06 05:51:34 +00:00
Bryce Denney
5d129b827e - dlx linux installation tweaks 2001-10-06 04:55:24 +00:00
Bryce Denney
311755270f - add missing semicolon 2001-10-06 04:46:26 +00:00
Bryce Denney
302d79eadb - in install_bin target deal with some files being in $(srcdir) and
others in current dir.
2001-10-06 04:45:24 +00:00
Bryce Denney
de40494484 - oops, the script that added the headers in fpu went wild here. fixed. 2001-10-06 04:35:13 +00:00
Bryce Denney
c5d903f041 - remove comment about nogui option 2001-10-06 04:29:09 +00:00
Bryce Denney
16ee3abe6b - add ID line for bochs 2001-10-06 03:53:46 +00:00
Bryce Denney
78a6fe2f27 - disassemble first instruction at f000:fff0
- print time with disassembly of the instruction to be executed
2001-10-06 00:01:12 +00:00
Bryce Denney
7d499adac0 - move trace call before the TICK. Well, there are two different places
that TICK is called so I put a trace call just before each TICK.
  This seems best, since the trace has a chance to print before the tick
  can trigger time-based events elsewhere in the system.
2001-10-06 00:00:22 +00:00
Bryce Denney
7140fa7090 - don't panic on int 0x13, AH=0x42 through 0x49. These are valid
MS/IBM extensions but they aren't supported.  Return an error code instead.
2001-10-05 23:58:45 +00:00
Bryce Denney
b70ae5ccf6 - changed args on disassemble current 2001-10-05 21:05:11 +00:00
Bryce Denney
a9afc2336d - fix bug that caused the instruction to be executed to be NOT printed
when tracing was on.
2001-10-05 21:03:53 +00:00
Bryce Denney
8d1459d9d6 - patch from Roland Mainz from today
> Attached is a patch to get Bochs 1.2.1 compiling with the Sun Workshop 6
  > compiler suite...
  >
  > Plain - out the box - the build fails with:
  > -- snip --
  > "pic.cc", line 503: Error: Badly formed constant expression.
  > "pic.cc", line 533: Error: Badly formed constant expression.
  > -- snip --
  > It looks that the preprocessor expects an integer in these cases and not
  > a string...
  >
  >
  > Additionally I added some fixes to get rid of the Zillion compiler
  > warnings like "Warning: String literal converted to char* in
2001-10-05 16:52:48 +00:00
Bryce Denney
b974699ce6 - include <windows.h> on win32 platforms so that we get a definition of
wsprintf
2001-10-05 14:01:52 +00:00
Bryce Denney
dbb6d5f821 - remove my ill-conceived configure test for wsprintf. It really is
available in cygwin, and I don't know what I was thinking before.
2001-10-05 13:52:25 +00:00
Bryce Denney
dcaae518c9 - make win32_snap no longer runs the .conf script, because in fact you have
to run the conf script in order to even have a Makefile.  Instead, I just
  added some instructions that tell you to run the .conf.win32-vcpp script
  yourself and then do "make win32_snap" to unzip the workspace files and
  zip up the whole source package.
2001-10-05 13:40:34 +00:00
Bryce Denney
dd2ac517a6 - don't define BX_HAVE_USLEEP in here, it's set by configure! 2001-10-05 13:31:31 +00:00
Bryce Denney
7b4c438369 - when compiling the debug directory, the .c files should still be compiled
as .c files.  They were listed as parser.cpp and lexer.cpp before.
2001-10-05 13:21:19 +00:00
Bryce Denney
80b669501a - when win32-vcpp is enabled, set HAVE_LIBREADLINE=0 and BX_HAVE_WSPRINTF=1. 2001-10-05 07:45:23 +00:00
Bryce Denney
51bef91d8e - force BX_HAVE_WSPRINTF=1 when configuring for a VC++ compile 2001-10-05 07:04:29 +00:00
Bryce Denney
cf014f2669 - fix it up so that it works when configuring from another dir 2001-10-05 06:39:09 +00:00
Bryce Denney
02f53d023a - add configure check for wsprintf 2001-10-05 06:08:24 +00:00
Bryce Denney
7fcffe0c38 - make symbol for BX_HAVE_WSPRINTF 2001-10-05 06:07:46 +00:00
Bryce Denney
9f65437b5e - if wsprintf not found, use sprintf 2001-10-05 06:07:00 +00:00
Bryce Denney
5e2e1b5ae0 - add some substitution variables related to make install for win32 2001-10-05 06:06:21 +00:00
Bryce Denney
918a4cd46f - add make target for win32, which can be run from cygwin 2001-10-05 06:03:41 +00:00
Bryce Denney
0183812203 - patch by Roland Mainz, posted to list on 2001-10-04 2001-10-04 18:37:29 +00:00
Bryce Denney
85b8c00de0 - clean up error message related to readline 2001-10-04 18:07:06 +00:00
Bryce Denney
5be1416c96 - remove the part that aborts if readline is not found 2001-10-04 18:05:29 +00:00
Bryce Denney
3b6d9ae017 - try to improve the readline test. Now I never use the readline test
generated by autoconf.  Instead I'm using AC_TRY_RUN to actually call
  a readline function before assuming that things are ok.
2001-10-04 18:00:48 +00:00
Bryce Denney
de45620a0d - partial fix for bug #467969, VPATH doesn't quite work. It was failing
when trying to create instrument/stubs/Makefile because the instrument
  directory didn't exist.
2001-10-04 17:54:51 +00:00
Bryce Denney
f3da589ced - debug needs debug.h, so include the current directory in -I$(srcdir)/. 2001-10-04 17:51:09 +00:00
instinc
80d5bc27bd added time_ticks() to the instruction trace 2001-10-04 15:34:33 +00:00
Bryce Denney
84f1ebb003 - readline checks still have a few problems, so don't do exit 1 2001-10-04 05:39:12 +00:00
instinc
de156bd8d6 added flags output with the register tracing enabled, was nice to have IF status etc. 2001-10-03 21:12:59 +00:00
instinc
ff08ebb819 Added the description of the 0x8AE4 (disable register tracing) and 0x8AE5 (enable register tracing) io commands 2001-10-03 19:58:50 +00:00
instinc
7e2c49c8aa Added the control to enable/disable register tracing 2001-10-03 19:54:29 +00:00
instinc
dabe63ef72 added a control variable for debugger to know if register tracing is required or not 2001-10-03 19:53:48 +00:00
instinc
9ebcb7651c Added the ability to trace registers value as you trace the code 2001-10-03 19:53:09 +00:00
instinc
4febfb2efb Added the documentation for the enable/disable trace commands 2001-10-03 19:10:09 +00:00
instinc
0982e7f345 Added the ability to enable/disable instruction tracing when built with debugger support 2001-10-03 19:06:17 +00:00
Todd T.Fries
319cbff42e revert. test failed. 2001-10-03 15:03:35 +00:00
Todd T.Fries
86eb9e1a3f testing $bochs$ 2001-10-03 15:02:51 +00:00
Todd T.Fries
6742ab9f91 panic if networking can't be initalized (packet filter/socket)
if the user wants to use bochs as non-root, disable ne2k!
2001-10-03 14:53:22 +00:00
Bryce Denney
57071445e6 - add eth_win32.o to the Makefile when ne2000 is enabled and we're compiling
for win32.
2001-10-03 13:42:24 +00:00
Bryce Denney
5d00d3073e - mention where to get winpcap 2001-10-03 13:38:17 +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
91c3513cae - remove hardcoded NIC id 2001-10-03 13:34:55 +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
16a10bb5bb - add rcs header 2001-10-03 12:56:51 +00:00
Bryce Denney
40ac2e6f89 - add make target "download_dlx" which runs wget to download the
DLXlinux tar file, unless it is already there.  Before, you had to
  download the 1meg+ tar file every single time you build the RPM, which
  was annoying.
2001-10-03 12:55:00 +00:00
Bryce Denney
49aad8c1b1 - add test for whether -lcurses is required when using readline, to fix
bug #429448.  What is strange about this problem (on OpenBSD) is that the
  compile and link goes fine, but when you execute your first readline library
  function it does a dynamic link and crashes on the spot.  Many autoconf
  tests only compile and sometimes link the test program, but this test
  compiles, links, and runs it.
2001-10-03 12:33:53 +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
de0a55fcce - threw out the old patch, and reworked it so that there are no restrictions. 2001-10-03 01:52:17 +00:00
Bryce Denney
0f9a525717 - try again! This should fix
[ #433759 ] virtual address checks can overflow
  and I have tested the condition much more thoroughly this time.
  All segment sizes should be supported.
2001-10-03 01:06:31 +00:00
Bryce Denney
80b31020e9 - regression test for "access checks" in cpu/access.cc 2001-10-03 00:52:30 +00:00
Bryce Denney
6a1c01c8b5 - back out my poorly written patch.virtual-address-checks-overflow 2001-10-02 20:01:29 +00:00
Todd T.Fries
d5ecddc64c a few output cleanups
make windows not panic bochs when probing for ne2k, still doesn't work though
2001-10-02 18:38:03 +00:00
Bryce Denney
beca5d6e67 - fix stupid printf-type bug 2001-10-02 18:11:06 +00:00
Bryce Denney
67ebaaca87 - apply patch.virtual-addr-checks-overflow to fix bug
[ #433759 ] virtual address checks can overflow
  > Bochs has been crashing in some cases when you try to access data which
  > overlaps the segment limit, when the segment limit is near the 32-bit
  > boundary.  The example that came up a few times is reading/writing 4 bytes
  > starting at 0xffffffff when the segment limit was 0xffffffff.  The
  > condition used to compare offset+length-1 with the limit, but
  > offset+length-1 was overflowing so the comparison went wrong.  This patch
  > changes the condition so that it supports all segment limits except for
  > sizes 0,1,2,3 bytes.  Dave and I figured that these sizes would not be
  > needed, while size 0xffffffff is used quite a lot.
2001-10-02 17:02:28 +00:00
Bryce Denney
04a07f306f - patch to fix bug [ #433759 ] virtual address checks can overflow 2001-10-02 17:01:09 +00:00
Bryce Denney
7bdff4acfb - try again to get bximage in there 2001-10-02 03:57:55 +00:00
Bryce Denney
591cac3518 - add VC++ project for bximage 2001-10-02 03:56:57 +00:00
Bryce Denney
0ebf64033a - add a project that builds bximage.exe as well 2001-10-02 03:27:29 +00:00
Bryce Denney
895b6a1511 - applied patch [ #466403 ] make text colors more accurate
The author did not leave his/her name.
2001-10-01 18:36:13 +00:00
Bryce Denney
f8beb55157 - use @CPP_SUFFIX@ instead of hardcoded .cc 2001-10-01 17:27:24 +00:00
Bryce Denney
df50cd50fd - 2 fixes: use S_IFBLK again instead of comparing the st_mode directly
- we must use #if BX_WITH_WIN32, not #ifdef because it's always defined
2001-10-01 17:23:45 +00:00
Bryce Denney
388fb0385f - commit Don Becker's fixes for win32 raw floppy and floppy disk images 2001-10-01 17:20:08 +00:00
Bryce Denney
026a8554ef - we need S_ISREG and S_ISCHR macros to actually do whey're supposed to
(no more stupid hack) so that win32 can handle either raw floppy or
  floppy disk image.
2001-10-01 17:01:00 +00:00
Bryce Denney
c2e09b1889 - oops, it didn't compile when you had debugger on bug ne2k off. Now it does. 2001-10-01 04:07:29 +00:00
Bryce Denney
25942a527d - add win32, coded by Don Becker. 2001-10-01 03:53:40 +00:00
Bryce Denney
c38d1a046a - add win32. Code from Don Becker. 2001-10-01 03:52:10 +00:00
Bryce Denney
ddb2c85b06 - add code from Psyon, aka Don Becker 2001-10-01 03:50:50 +00:00
Bryce Denney
2e3eead360 - install the new script "test-x11-fonts" 2001-09-30 14:56:48 +00:00
Bryce Denney
446fdf12a5 - at the end, try to run xset fp rehash and restart the X font server.
Give warnings if these commands could not be run.
- grab some code from configure script that checks if "echo -n" is supported
2001-09-30 14:55:20 +00:00
Bryce Denney
53c77f5573 - add a script that tests whether your vga font is installed. 2001-09-30 14:53:57 +00:00
Bryce Denney
82a0027e4b - stop warning people to leave their vga.pcf uncompressed, since that
was bad advice (only worked for Bryce's machine).  Now warn people to
  restart their X font server.
2001-09-30 14:07:58 +00:00
Bryce Denney
f1dd213775 - arg, I left out a paragraph mark before 2001-09-29 20:33:04 +00:00
Bryce Denney
0c7dad572e - add a note about skipping the "compress" step when installing the
VGA font by hand.
2001-09-29 20:22:08 +00:00
Bryce Denney
a07d62fd24 - add "info ne2k" command to the debugger, which prints all the registers
of the NE2000 model.
2001-09-29 19:16:34 +00:00
Gregory Alexander
67f4ebe68d Changed OUT to OUTpin.
Modified Files:
 	pit82c54.cc pit82c54.h
2001-09-29 15:31:13 +00:00
Bryce Denney
4b3b792081 - I messed up version 1.1 of this patch. When I reread the bug report
that the code came from, it was clear that I typed the change wrong.
2001-09-29 04:34:00 +00:00
Bryce Denney
0640ab3b04 - attempt to fix bug [ #439945 ] Floppy drive read input error checking. 2001-09-29 03:29:27 +00:00
Bryce Denney
309ae53cd6 - what, a patched file is supposed to to compile...? Ok, fine. 2001-09-29 03:20:47 +00:00
Bryce Denney
84d33da78b - patch to fix sf bug 439945 2001-09-29 03:11:58 +00:00
Bryce Denney
6145266a70 - now there are BX_ERROR lines for all commands from ATA/ATAPI 3,4,5,6. 2001-09-29 02:08:11 +00:00
Bryce Denney
1a856a1726 - add BX_ERROR for every command in ATAPI-6 that bochs does not support.
I still need to do add some commands from older specs that are obsolete
  (and not listed) in ATAPI-6.
- commands that aren't in the spec will still panic.
2001-09-28 22:20:49 +00:00
Bryce Denney
c0719c7eb7 - more cleanup: clarify some log messages, add command aborted when some
atapi commands are tried on a disk, etc.
2001-09-28 07:18:55 +00:00
Bryce Denney
951014d794 - add note about where to find the spec
- fill in names from spec on various commands
- add command aborted for 0x08 device reset on disks (it's only for ATAPI)
- add command aborted for 0xe1 idle immediate
2001-09-28 07:14:50 +00:00
Bryce Denney
ffb489d4fa - add code in handler function for the floppy pathnames that sets the
media status to 0 then 1 (equivalent to removing then inserting a disk).
  Then it calls the UI function bx_gui.update_floppy_status_buttons()
  if the interface has been initialized already.
2001-09-28 06:05:39 +00:00
Bryce Denney
42473b7038 - fix up floppy button handlers so that the function that actually
updates the buttons can be called from the outside.
2001-09-28 06:03:40 +00:00
Bryce Denney
536d05fc48 - change "set" behavior for parameters with handlers. Now it changes their
value and then calls the handler, so that the handler and functions that
  it calls can see the new value.
2001-09-28 06:02:12 +00:00
Bryce Denney
f59e68968c - add call to SIM->set_init_done to match the one in main 2001-09-28 06:01:08 +00:00
Bryce Denney
22f82dcbb3 - copy prev_eip and prev_esp again AFTER the handle_async_event section
has run.  This ensures that the prev_eip and prev_esp that is used
  for tracing and breakpoint checks is correct even in the cycle after
  an interrupt or trap.
2001-09-28 04:12:26 +00:00
Bryce Denney
3075cb34ed - remove comment that I was using when debugging control-C 2001-09-27 23:50:48 +00:00
Bryce Denney
610a7f5c1b - fix bug introduced by Bryce's revision 1.16, that causes you to get
stuck at breakpoints forever.  Added a comment that says what code
  does that, so that future hackers will be warned.
2001-09-27 23:41:18 +00:00
Bryce Denney
198f783f8b - my speed boost changes to main.cc and cpu.cc on June 5 were an improvement
in performance, but I did not check the debugger carefully enough while
  testing them.  Part of the performance gain in main.cc revision 1.33 and
  cpu.cc revision 1.9 was to allow bochs to stay in the cpu loop forever
  in a single processor simulation.  (In a multiprocessor simulation it must
  quit the loop periodically to give the other procs a chance to simulate
  too.  Cooperative multiprocessing?)  In the process, I restored calls
  to BX_TICK in the cpu loop for 1-proc simulation only, and removed them
  from the outer loop.  (See main.cc, since it was done right.)  However
  I never made the equivalent change in the debugger code, so in the
  debugger, there were ticks coming from the cpu loop and then an
  equivalent number of ticks coming from the debugger code just outside
  the cpu loop.  The result was, of course, that simulation time went
  at 2x the correct rate.  This simulation time speedup was made even
  worse because the continue loop in the debugger would increment ticks
  by one quantum (5 at the time) no matter how many instructions had
  actually been executed.  So in trace mode in particular, the way it was
  implemented before today, cpu loop would run only one instruction at
  a time and the simulation time would get incremented 1+5=6 times!  One
  tick from the cpu loop, then 5 erroneous ticks from the continue loop.
  Anyway, much of this nonsense should be fixed now.  For uniprocessor
  simulations, only the cpu loop does ticks (for best performance).  For
  multiprocessor simulations, the cpu loop exits after one quantum and
  the code that calls the cpu loop gets to increment ticks instead.
2001-09-27 23:08:30 +00:00
Bryce Denney
9a1364b1f9 - apply patches/patch.consistent2b. Description:
> This patch fixes a number of debugger problems.
>   - with trace-on, simulation time would pass 5x faster than usual, so
>     interrupts and other timed events would happen at different times
>   - with trace-on, breakpoints were ignored
>   - with trace-on, control-C would not stop the processor and return to the
>     debugger.
>
> This patch changes the execution quantum for the debugger to 1, which means
> that cpu_loop is asked to do one instruction at a time.  This may cause
> bochs with the debugger to be slower than before.
>
> I haven't tested without the debugger yet, so I don't know if the timing
> of events matches or not.
2001-09-27 14:19:38 +00:00
Bryce Denney
bf983610b9 - commit patch which fixes all known trace-on problems. This patch is
for Bochs 1.2.
2001-09-27 14:08:04 +00:00
Bryce Denney
1b62fce53d - configure shortcut for MacOS X 2001-09-27 03:56:36 +00:00
Bryce Denney
742830f1ab - attempt to clean up the behavior when you run bochs from the
command line or by double clicking.  Running from the command
  line doesn't really work because of a NULL pointer problem in
  gui/carbon.cc.
2001-09-27 02:54:06 +00:00
Bryce Denney
e25de5fce0 - check for null gCTable, which I am getting every time I run from the
command line.  This is better than a bus error IMHO.
2001-09-27 02:52:17 +00:00
Bryce Denney
c9e377c4d9 - for MacOSX the primary target is the app, not the bochs. 2001-09-27 02:01:41 +00:00
Bryce Denney
cbe4fe003c - add resources and stuff for MacOS X 2001-09-27 02:01:11 +00:00
Bryce Denney
1f7ec590cf - add make target that builds the application bochs.app 2001-09-27 02:00:37 +00:00
Bryce Denney
7bc39ff8e1 - now that I know about -fpascal-strings, I changed it back to the \p
notation
2001-09-26 23:33:47 +00:00
Bryce Denney
6d5c174ec0 - move config.h before the extern "C" { } business so that I can use
BX_WITH_CARBON in there
- don't include Carbon/Carbon.h.  I assume it was in there just for the
  typedef Boolean
2001-09-26 23:33:14 +00:00
Bryce Denney
52c1b297e6 - put a dummy filename in the rm line so that it doesn't crash if the
finds turn up nothing
2001-09-26 23:32:23 +00:00
Bryce Denney
dd0d8a8524 - use #if BX_WITH_MACOS around fd_write too. I meant to do this the
first time...
2001-09-26 17:35:51 +00:00
Bryce Denney
2d257370af - resolve conflicts in Boolean type for MacOS X 2001-09-26 17:30:15 +00:00
Bryce Denney
d4905da165 - correct stupid problem that I caused yesterday. Must use #if for
BX_WITH_MACOS, not #ifdef!!!
2001-09-26 15:22:52 +00:00
Bryce Denney
d614265f58 - check in a (commented out) debugging option controlled by BX_INSTR_SPY.
To enable, set the #define to 1.
2001-09-26 15:19:56 +00:00
Bryce Denney
601089a8db - fixed broken #ifdef...should have been an #if 2001-09-26 03:19:25 +00:00
instinc
e09d429117 added the output of a little information string to help the user understand why it returned to the prompt. 2001-09-26 03:07:32 +00:00
instinc
1170853e16 added command 0x8AE0 (return to debugger prompt) to iodebug 2001-09-26 02:55:46 +00:00
instinc
677ece7d04 added 0x8AE0 to return to prompt debugger 2001-09-26 02:52:03 +00:00
Bryce Denney
65d6af7b08 - now the new code is called carbon.cc 2001-09-26 00:32:54 +00:00
Bryce Denney
cdb5f1de68 - port of macintosh code to Carbon API for MacOS X, contributed by
Emmanuel Maillard <e.rsz@libertysurf.fr>
2001-09-26 00:32:34 +00:00
Bryce Denney
5e586c8ac2 - this is an exact copy of gui/macintosh.cc revision 1.8, the starting
point for the Carbon API port
2001-09-26 00:31:41 +00:00
Bryce Denney
4c4b39fca3 - add object file for for MacOS X, carbon API 2001-09-26 00:20:19 +00:00
Bryce Denney
1ef0b3c6ef - use #if BX_WITH_MACOS around the special fd_read and fd_write code, since
MacOS X behaves more like unix now.
2001-09-26 00:19:44 +00:00
Bryce Denney
55f999327b - use #if BX_WITH_MACOS instead of #ifdef macintosh to distinguish
between MacOS pre-10 and MacOS 10
2001-09-26 00:15:30 +00:00
Bryce Denney
3abf0831a5 - add configure option "--with-carbon" which is used for MacOS X compiles 2001-09-26 00:13:16 +00:00
Bryce Denney
52f1fcbcb3 - add code for MacOS X, contributed by emmanuel maillard <e.rsz@libertysurf.fr> 2001-09-26 00:12:12 +00:00
Bryce Denney
4ad1870fa3 - add section for BX_WITH_CARBON for macosx 2001-09-26 00:11:23 +00:00
vasudeva
61f6647397 Added listing of Debian packages. 2001-09-25 22:36:51 +00:00
Bryce Denney
f280945601 - hacked Makefile that uses "jade" directly instead of depending
on docbook2* tools.
2001-09-25 19:29:28 +00:00
vasudeva
653e549f02 Turned Rendering chapter into Reading/Writing chapter to emphasize authoring methods. Added link to docbook-utils. 2001-09-25 19:00:45 +00:00
Bryce Denney
39aa03d622 - must use #ifdef instead of #if 2001-09-24 12:09:45 +00:00
Bryce Denney
141da24c74 - add symbols, which default to zero, for slowdown timer and sleep functions 2001-09-24 05:35:05 +00:00
Bryce Denney
c7a4ac2088 - add test for usleep and nanosleep 2001-09-24 05:28:42 +00:00
Bryce Denney
9454441958 - add --enable-slowdown option to configure, which turns on Greg's
slowdown timer device.
2001-09-24 05:23:55 +00:00
Bryce Denney
53d483864c - use #ifs instead of #ifdefs for slowdown timer code. The
usual autoconf/configure method is to use 0 vs 1, not defined vs
  undefined to turn things on.
2001-09-24 05:08:25 +00:00
Bryce Denney
140a7a23b8 - avoid using #define LOG_THIS...#undef LOG_THIS trick, and just
call panic directly.  This solves bug [ #464258 ] LOG_THIS redefined in
  keyboard.h
2001-09-24 04:59:35 +00:00
Bryce Denney
382270fcb4 - add ZIP target. Now "make win32_snap" creates a zip instead of a tar. 2001-09-24 04:21:29 +00:00
Bryce Denney
f4e4cd84a1 - add make targets for easy building of win32 snapshots 2001-09-24 04:16:53 +00:00
Bryce Denney
61fdc74cf2 - add "--enable-cpp" to change the file extensions into cpp. I hope this
doesn't screw anyone up.
2001-09-24 03:55:40 +00:00
Bryce Denney
b76a1f67bc - workspace files for VC++ 6, contributed by Stephan van Eeden 2001-09-24 03:42:15 +00:00
Bryce Denney
4f5bce582f - when configuring for win32, assume you don't have strotull or strtouq. 2001-09-24 03:26:24 +00:00
Bryce Denney
a4ca526eee - add preprocessor tricks that undefine the OUT symbol if it's already
been defined elsewhere.  This had to be done in the old pit as well,
  so it's not a new problem by any means.
2001-09-24 02:14:05 +00:00
Bryce Denney
69ca4e2a9d - change "long long" to Bit64u, several times
- clean up declarations of "int i" in bx_dbg_watch
2001-09-24 00:42:00 +00:00
Bryce Denney
009f98af81 - replace "long long" with Bit64 2001-09-24 00:35:42 +00:00
Gregory Alexander
3ace9e3288 Minor updates to the mouse code that may help with enable/disable problems.
Also fixed a warning in pc_system.h

 Modified Files:
 	main.cc pc_system.h iodev/keyboard.cc iodev/keyboard.h
2001-09-21 02:46:17 +00:00
Bryce Denney
d1038b9b2f - add link to sources of docbook2x 2001-09-20 03:27:24 +00:00
Bryce Denney
1c3ca10821 - add a little more detail on make 2001-09-20 03:27:07 +00:00
Bryce Denney
4073d65f4d - apply patch [ #455014 ] CR0 bug in 80486, described as:
> In the register CR0, when the bit PM is enabled, the bit 4 is 0
  > when should be 1.
  Another fix from an anonymous donor.
2001-09-19 17:36:54 +00:00
Bryce Denney
6d129d771c - set a bit in the CMOS that says the processor has an FPU. This is
from patch [ #455006 ] Device byte is not initialized aptly.
  I can't give credit, because he or she did not leave a name.
2001-09-19 17:29:07 +00:00
Bryce Denney
3bba2f657f - apply patch from patches/patch.lba. This is taken from plex86 cvs
and modified for bochs.  Minimal testing so far...
2001-09-19 15:30:44 +00:00
Bryce Denney
367cf8f490 - freshen the patch so that it applies cleanly 2001-09-19 15:29:07 +00:00
Bryce Denney
690c4eee31 - clarify BX_INFO message 2001-09-19 15:10:38 +00:00
Bryce Denney
c89f3de147 - move Dave's changes to configure into configure.in so that they don't
get wiped out next time we run autoconf.
2001-09-18 05:25:29 +00:00
Bryce Denney
452bb210fc - fix incorrect title 2001-09-17 15:12:55 +00:00
Bryce Denney
b0c6488ed9 The HTML stylesheet likes to print html has the ends of tags on a different
line, like this:
<HTML
><HEAD
><TITLE
>FreeBSD</TITLE
>

Glimpse, which is indexing our website, finds this very confusing and
it cannot pick out the title from this mess.  This script takes a list
of HTML files on the command line and attempts to make the <TITLE> tag
look more normal so that glimpse can understand it.

WARNING: This is a hack.  It's made to work on docbook generated html, but
may do strange things on anything else.
2001-09-16 06:46:11 +00:00
Bryce Denney
441c39ea0c - fix up Downloading Bochs, how to use CVS, Compiling Bochs, Unix
instructions, configure options
- added a transcript of a successful compile, since that gives all the
  commands and shows people where their compile went wrong.
2001-09-16 06:44:58 +00:00
Bryce Denney
0afde54502 - add abbrev for Makefile 2001-09-16 06:42:20 +00:00
Bryce Denney
f65d8d39ef - add lots about following the sources with CVS 2001-09-15 16:27:26 +00:00
Bryce Denney
e5b98663bc - add abbrev for $BOCHS 2001-09-15 16:26:56 +00:00
Bryce Denney
8d61724e7a - add screen shot of DLX Linux 2001-09-15 14:15:19 +00:00
Bryce Denney
8c6446cf4c - only put 0xf into the 2nd hard disk field when the cdrom is not present.
This is a patch from Volker Ruppert <Volker.Ruppert@t-online.de>, who
  comments: "The fdisk command reports an unusable second harddisk if the cdrom
  is enabled. This patch helps, but I don't know if it is the right way."
2001-09-15 13:35:42 +00:00
Bryce Denney
1006cb2c6b - patch from Volker Ruppert <Volker.Ruppert@t-online.de>, who writes:
> I have inspected the header of output file and several sample MIDI files. I
  > have found two different bytes in the header. After I have changed this
  > bytes Winamp could play the output file, but it showed a track time of
  > 0:00. The Windows Media Player still doesn't like the file.
2001-09-15 13:33:16 +00:00
Bryce Denney
935f75b337 - add some text from LGPL in license section, add linux RPM install instructions 2001-09-15 06:56:21 +00:00
Bryce Denney
fd7e7ee86c - added debugger command "info fpu" which prints all FPU registers
in an output format similar to gdb (when you do info all-registers).
  Also, if you do "info all" you get the CPU registers and the FPU
  registers.
- added bx_cpu_c method called fpu_print_regs, which is implemented
  in wmFPUemu_glue.cc
2001-09-15 06:55:14 +00:00
Bryce Denney
53d5997913 - integrate Dave's I/O interface to debugger into the docs 2001-09-15 03:06:05 +00:00
Bryce Denney
6f3a573839 - documentation for iodebug device by Dave Poirier <eks@void-core.2y.net> 2001-09-15 03:01:35 +00:00
instinc
f89d1e6f01 added support for the debugger, it now returns to the debugger prompt 2001-09-15 00:12:40 +00:00
instinc
b3ad392c65 Added support for I/O Interface to the debugger and the memory range monitoring 2001-09-14 23:02:56 +00:00
instinc
0a762c4023 final revision of the memory protection material 2001-09-14 22:38:06 +00:00
instinc
a10f33a8c7 Removed the structure from the class definition and used it directly in the object 2001-09-14 22:37:32 +00:00
instinc
c52ee908a8 Added range_test function, partly completed write_mem and read_mem 2001-09-14 16:21:02 +00:00
instinc
ccc7026539 Added a few more functions such as range_test 2001-09-14 16:20:30 +00:00
instinc
563cde946a Added IODEBUGLOG with value 47 2001-09-14 15:15:25 +00:00
instinc
1732a0ea73 Added missing IODEBUG_OBJS 2001-09-14 15:07:49 +00:00
instinc
426982c0ec Added I/O Interface to the debugger 2001-09-14 15:01:29 +00:00
instinc
37fc526317 Added I/O Interface to the debugger check, --enable-iodebug --disable-iodebug 2001-09-14 14:52:27 +00:00
instinc
0a604c877b Added I/O Interface to the debugger option, disabled by default 2001-09-14 14:51:26 +00:00
instinc
0496446814 I/O interface to the debugger functions
Allow the various debugging features to be controlled directly by the guest os
2001-09-14 14:29:21 +00:00
instinc
014fc2c10c header file for the iodebug interface 2001-09-14 14:28:23 +00:00
Bryce Denney
f04e6fe346 - apply VPATH patch from Edouard G. Parmelan, posted to list on September 1 2001-09-14 04:19:08 +00:00
Bryce Denney
c7b108c977 - patch from Edouard G. Parmelan to allow bochs to build outside the source
tree.
2001-09-14 04:18:22 +00:00
Bryce Denney
749763770e - move platforms table to its own section
- add text in "Download Bochs" section
2001-09-12 13:16:03 +00:00
Bryce Denney
4608a4d3dd - add bochs-sf-net entity 2001-09-12 13:15:24 +00:00
Bryce Denney
0e507681bf - now Introduction to Bochs is mostly computee 2001-09-12 06:37:31 +00:00
Bryce Denney
9fbed042b0 - check in commonly used abbreviations 2001-09-12 06:35:50 +00:00
Bryce Denney
16b4ab9d7e - include ../include/defs.sgm which contains commonly used abbreviations 2001-09-12 06:34:50 +00:00
Bryce Denney
678496e410 - tweak 2001-09-12 06:33:28 +00:00
Bryce Denney
ad11335293 - remove space after line continuation character.
Thanks to Martijn Boekhorst <Martijn@boekhorst.net> for pointing it out.
2001-09-11 23:32:14 +00:00
Bryce Denney
bce3cd3652 - tweaks to get rid of compile warnings 2001-09-11 16:56:48 +00:00
Bryce Denney
1fd43969a2 - commit patch from David Haslam <dch@sirius.clara.co.uk>
submitted to source forge on 2001-08-27.
  [ #455763 ] Cursor trail with DOS Edit/Minix vi
2001-09-11 16:50:59 +00:00
Bryce Denney
55ed69273b - commit patch from David Haslam <dch@sirius.clara.co.uk>
posted to bochs-developers on Wed, 29 Aug 2001 00:08:45 +0100

  David Haslam wrote:
  > I have been looking at the keyboard problem with Minix, which for
  > those that haven't tried Minix results in every key press giving the
  > response: ^@
  >
  > I am aware of the comments in the changelog that suggest removing 2
  > keyboard ACKs in iodev/keyboard.cc, but this is a bit of a hack,
  > (which is presumably why it was never incorporated).
  >
  > The problem seems to be that the Minix keyboard driver doesn't obey
  > the rules, and Bochs doesn't model the 8042 accurately. When issuing
  > commands to set the LEDs, Minix polls the 8042 output data register
  > waiting for an ACK even though the OBF flag isn't set.
  >
  > Bochs returns zero under these circumstances, which seems to
  > trigger obscure behaviour that messes up the Minix internal
  > keyboard queue. I don't fully understand why Minix breaks, but I
  > think the fact that the ACK generates an interrupt, and Minix treats
  > it as a scan code also has something to do with it.
  >
  > In any case, I believe, the fix is for Bochs to return the output
  > buffer contents, regardless of whether the OBF flag (called outb in
  > Bochs) is set.
  >
  > I expect the real hardware allows the register to be read at anytime,
  > and with this fix we are modelling the behaviour of the hardware more
  > accurately.
  >
  > I have tested it with Minix 2.0.0. Also DOS 6.22 still works after this fix.
  > Does anyone think this will break anything else?
  >
  > This diff is against the latest CVS of iodev/keyboard.cc, version 1.29
  > The last part of the diff is a minor fix to an unrelated debug print.
2001-09-11 16:49:54 +00:00
Bryce Denney
fabdff5a16 - work in progress. I'm in the middle of writing the first section
"What is Bochs?"
2001-09-11 14:01:55 +00:00
Bryce Denney
376f509cd5 - this is the outline that Michael and Bryce passed back and forth when
Michael was first making the docbook skeleton.
2001-09-11 12:56:07 +00:00
Bryce Denney
dcb74396d4 - fix three broken links! 2001-09-10 22:24:39 +00:00