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
1a4a6cb6c0
- add link to MacOS X binary
2001-09-26 01:16:31 +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
3b375bc1fb
- add link to ATA/ATAPI spec
2001-09-25 03:06:43 +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