Commit Graph

775 Commits

Author SHA1 Message Date
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