Commit Graph

1899 Commits

Author SHA1 Message Date
Christophe Bothamy
6566116a01 - added BX_DEBUG, BX_INFO, BX_PANIC macros
- BX_DEBUG outputs to the INFO port till we can easily choose debug output on a per-device basis
- BX_DEBUG are only generated if DEBUG_ROMBIOS is defined to 1
- do not panic on unsupported function in int13, only output info message
- fixed a bug on boot signature check never done on floppy/harddisk and always on floppy images on cd
- the boot signature check on harddisks is always done
- the boot signature check on cdroms (either direct boot or floppy images) is never done
- the boot signature check on floppies is conditionnal to CMOS reg 0x38 (configuration floppy_bootsig_check)
- moved PIC initialization before calling optional rombios init functions (feature request [ 541908 ])
2002-04-24 07:52:07 +00:00
Christophe Bothamy
2f37ec16ea - added a DEBUG port for rombios (0x0403) and vgabios (0x0503)
- added a INFO port for rombios (0x0402). Kept the legacy INFO port at 0xfff0 for now
2002-04-24 07:39:47 +00:00
Christophe Bothamy
cd50268e2f - added a floppy_bootsig_check option to .bochsrc that will be used to enable/disable the 0xaa55 signature check ONLY for floppy-boot
- stored the boot signature check flag in cmos reg 0x38
- the rombios that is able to handle that flag will be uploaded later
2002-04-23 07:44:34 +00:00
Jeroen Janssen
b3e6bcb3a9 - reverting ##asm/##endasm patch for preprocessing with gcc3 2002-04-21 13:04:47 +00:00
instinc
9101155d31 patch to fix the behaviour of the stack_return_from_v86 function 2002-04-20 20:28:32 +00:00
Jeroen Janssen
cfa340ca76 - make sure the rombios can be preprocessed with latest gcc (from Mandrake 8.2) 2002-04-20 16:46:07 +00:00
instinc
9520492a7c fixed the comment associated with the master IMR initialization 2002-04-20 16:21:51 +00:00
Volker Ruppert
36cc51de38 - the changes are checked in now 2002-04-20 16:21:32 +00:00
instinc
976ea3f67f as per the 82c59a datasheet from intel, the irq mask is now cleared on initialization 2002-04-20 16:19:42 +00:00
Volker Ruppert
462871fd3a - Improvements for dimension_update() in text mode and text_update()
- The emulated vga card issues a dimension_update() using the real
    screen dimensions and the real font height.

  - The gui selects a font with the requested height or it recalculates
    the screen height if the font height is not available.

  - The text_update() function uses a new variable 'ncols' instead of the
    fixed value of 80 for the number of text columns.

  I have tested the changes with X11/Linux, SDL, wxGTK and win32. The changes
  in the other guis are not tested yet.
2002-04-20 07:19:35 +00:00
Volker Ruppert
54f1d3d2ab - patch for dimension_update() in text mode and text_update() 2002-04-19 22:44:15 +00:00
Volker Ruppert
189c1bbddc - text cursor disable feature added 2002-04-18 18:36:02 +00:00
Bryce Denney
6cc9369426 - netbsd patch for raw cdrom, from Christian <bloodjerk@gmx.net> 2002-04-18 18:17:45 +00:00
Bryce Denney
bb398122d6 - fix up some missing end tags as suggested by Guilhem BONNEFILLE (guyou)
in a source forge patch.  I didn't change the entity that includes
  "../include/defs.sgm" because then it stops working for me.
2002-04-18 01:33:36 +00:00
Bryce Denney
503a272fc1 - this has been in since March 7 2002-04-18 01:05:11 +00:00
Bryce Denney
baeb6f74b7 - this has been in the cvs for a while now with no loud complaints 2002-04-18 01:04:29 +00:00
Bryce Denney
ec0a0d115f - add HAVE_TUNTAP flag, so that configure can set it 2002-04-18 01:00:53 +00:00
Bryce Denney
4a35f70850 - add tuntap interface 2002-04-18 00:59:58 +00:00
Bryce Denney
2f69a74616 - commit TUN/TAP patch, though I can't really test it. I can verify that if
you don't have if_tun.h the configure script does not enable TUN/TAP.
2002-04-18 00:59:20 +00:00
Bryce Denney
2bac9a8f0e - remove dependency on /usr/include/math.h which is platform dependent.
This keeps sneaking back in somehow.
2002-04-18 00:46:38 +00:00
Bryce Denney
d85b0c113f - apply Peter Tattam's patch to fix a DMA bug. 2002-04-18 00:37:09 +00:00
Bryce Denney
91cc6590b2 - apply Peter Tattam's patch that makes win32 pad packets up to 60 bytes 2002-04-18 00:33:58 +00:00
Bryce Denney
05ac22063b - applied the patch by hand...this is what I'm checking in now. 2002-04-18 00:32:29 +00:00
Bryce Denney
30aaf4088e - commit patch.wxwindows.gz in the main branch. Now you can try out
the wxwindows interface by just "configure --with-wx; make"

  Modified Files:
    Makefile.in bochs.h config.h.in configure configure.in
    load32bitOShack.cc logio.cc main.cc cpu/cpu.cc cpu/cpu.h
    debug/dbg_main.cc gui/Makefile.in gui/control.cc gui/gui.cc
    gui/siminterface.cc gui/siminterface.h gui/x.cc iodev/cdrom.cc
    iodev/keyboard.cc memory/misc_mem.cc
  Added Files:
    README-wxWindows wxbochs.rc gui/wx.cc gui/wxmain.cc
    gui/wxmain.h gui/bitmaps/cdromd.xpm
    gui/bitmaps/configbutton.xpm gui/bitmaps/copy.xpm
    gui/bitmaps/floppya.xpm gui/bitmaps/floppyb.xpm
    gui/bitmaps/mouse.xpm gui/bitmaps/paste.xpm
    gui/bitmaps/power.xpm gui/bitmaps/reset.xpm
    gui/bitmaps/snapshot.xpm
  Removed Files:
    patches/patch.wxwindows.gz
2002-04-18 00:22:20 +00:00
Bryce Denney
13bb61838e - add comments describing how blur-translate works 2002-04-17 22:51:58 +00:00
Bryce Denney
8dbf420ac5 - move common definitions into blur-translate.h, which is included by
both blur-translate.c and all translated code when it is compiled.
- use DO_*() macros in blur-translate.h to implement the switch() statement
  in the emulate function, so that the same code is really used for both
  emulation and translation.
2002-04-17 21:53:33 +00:00
Bryce Denney
05d6a719b9 - print checksum after running each one
- minor fix
2002-04-17 21:30:15 +00:00
Bryce Denney
59572dcbcf - add command line args to let you choose reference implementation,
emulation, or translation.
- allow multiple timers
- report time required to translate and compile
2002-04-17 19:34:57 +00:00
Bryce Denney
16ec33a673 - add blur-translate, which has a somewhat cleaned-up interface to the
dynamic translation.  I added a structure called a CodeBlock that
  points to the instruction list, the dynamic library handle, and the
  function pointer.  To translate a CodeBlock, just call
  translate_block (block).
2002-04-17 08:12:49 +00:00
Bryce Denney
5fd7c60491 - add BLUR_DYNAMIC_TRANSLATE3 which generates C code, compiles it into
a dynamic library, loads it, and runs it.  Requires libtool.
2002-04-17 07:15:02 +00:00
Bryce Denney
8ad83d2588 - add -DBLUR_DYNAMIC_TRANSLATE3 which generates code, compiles it into
a shared library, and then dlopens it!
2002-04-17 07:13:55 +00:00
Bryce Denney
2c23c66580 - little script to make it easy to compile a .c file into a shared library 2002-04-17 07:07:57 +00:00
Bryce Denney
80e8d62be6 - add definitions for a new type of dyn translation 2002-04-17 05:17:14 +00:00
Bryce Denney
f33ab1728b - rename symbol TOP_OF_TRANSLATED_FUNCTION to BEGIN_TRANSLATED_FUNCTION 2002-04-17 05:16:47 +00:00
Bryce Denney
2d87c60a34 - add BLUR_DYNAMIC_TRANSLATE2, which produces code that inserts the
loop updates into the translated function so that the loop can be
  optimized.
2002-04-17 05:15:37 +00:00
Bryce Denney
da49759323 - add another dynamic translation test (#2) 2002-04-17 05:14:01 +00:00
Bryce Denney
ec70461406 - finally clean up Makefile, add dynamic translation code 2002-04-17 04:21:15 +00:00
Bryce Denney
75af26d25f - auxilliary file included by translate1.c 2002-04-17 04:19:03 +00:00
Bryce Denney
ac8a29fb3d - use local variable for load_ptr,store_ptr, now that they exist.
- add BLUR_DYNAMIC_TRANSLATE1, a simple code generator that writes to
  translate1.c
- add BLUR_DYNAMIC_TRANSLATE1_TEST that is (statically) linked with
  translate1.c
2002-04-17 04:18:34 +00:00
Bryce Denney
2a3524e2d2 - all target was causing blur-opcode to be compiled, when it shouldn't.
I know, the makefile is a total mess but it works for now.
2002-04-17 02:40:40 +00:00
Bryce Denney
5605922ddc - add blur-opcode and all its variations into the Makefile 2002-04-17 02:31:58 +00:00
Bryce Denney
0995c43dd6 - make the blur look a lot more like an instruction emulator. I defined
a tiny instruction set that can be used to implement a blur filter.
  Experiment with switch, function pointer, and a few different
  forms of "translated" code.
2002-04-17 02:31:36 +00:00
Bryce Denney
50231039fc - add blur_unroll_inner, which unrolls the x2 and y2 loops into
one long statement.
- add nice comment on endifs that says what this is the end of
2002-04-17 02:28:33 +00:00
Bryce Denney
63da4808e5 - fix bug in call to blur_func, causing us to get wrong answer
- dump_array was dumping the input array instead of the output array.
  That didn't make for a very good regression test.
- add warning in BLUR_USE_SWITCH code since it doesn't do the same operation
  as the others.
2002-04-16 22:40:30 +00:00
Bryce Denney
c39bd9d302 - provide speed & model of the ultrasparc 2002-04-16 20:08:32 +00:00
Bryce Denney
b8cd08ac06 - rename blur-1.2-performance.gnumeric to blur-how-many-instructions.gnumeric
- add spreadsheets for performance summary on several machines,
  analysis of cost of a function call, cost of a switch statement
2002-04-16 19:51:09 +00:00
Bryce Denney
45a03bf2d5 - add performance numbers for all variations of blur on my home machine 2002-04-16 18:16:58 +00:00
Bryce Denney
90af02f43a - add several more implementations of the blur function to measure
the cost of function calls, switch statements, and function pointers.
2002-04-16 18:16:01 +00:00
Bryce Denney
cb7f9d9c37 - add several more variations on blur.c 2002-04-16 18:15:03 +00:00
Bryce Denney
03febb4e7c - correct order of magnitude error in the function call overhead, measured
as number of instructions.  Oops.
- add info about cost of switch statements
2002-04-16 17:32:55 +00:00