Commit Graph

44 Commits

Author SHA1 Message Date
Stanislav Shwartsman
297087fea9 fixed memory handler params - use bx_phy_address data type 2008-04-29 22:14:23 +00:00
Stanislav Shwartsman
47936944a2 Remove Cirrus Logic PCI special define - it will be enabled by default when PCI is enabled. 2008-03-22 22:26:03 +00:00
Stanislav Shwartsman
37fbb82baa Cleanups. Move bxInstruction_c definition to separate file instr.h 2008-01-29 17:13:10 +00:00
Stanislav Shwartsman
ae35b0276e white space cleanups and coding style changes 2008-01-26 22:24:03 +00:00
Stanislav Shwartsman
071c5c1a26 A lot of changes but everything is really trivial.
Make save/restore default feature, the configure option for save/restore removed from configure script and save/restore made available forever. All code now assume it is exists. Bochs save/restore tree previosly called "save_restore" renamed to "bochs" tree and it will be havily used everywhere, starting from save/restore and ending by various bochs debugger functions. I am going to rework debugger code to get rid of debug CPU access functions and use this "bochs" param tree instead
2007-09-28 19:52:08 +00:00
Volker Ruppert
455e86cbb0 - CL-GD5446 rev. B claims 32 MB PCI memory for VRAM
- fixed and simplified PCI memory access
2007-08-05 10:46:23 +00:00
Stanislav Shwartsman
9d907b5f65 Try to specify everywhere the list size in bx_list_c constructor 2007-04-03 22:38:49 +00:00
Stanislav Shwartsman
2f9e1bee68 fixed code duplication and comments 2007-02-03 17:56:35 +00:00
Volker Ruppert
0b2331c1fe - sequencer register 0x07 must be initialized with 0 if cirrus extension is not
selected
- cirrus specific mem write methods don't need to be virtual
2006-10-08 15:21:26 +00:00
Volker Ruppert
190b9391cf - delete the device object in the plugin_fini() function of each plugin device
(TODO: find a way to call plugin_fini() for non-core devices if plugins are
   disabled)
- set the device pointers back to stubs after unloading plugins
- added debug message "Exit" in all device plugin destructors
2006-09-10 17:18:44 +00:00
Volker Ruppert
d2d7c65e37 - VGA memory is now a part of the common video memory (same as real hardware)
- sequencer map mask bit handling simplified
- some save/restore data format changes
2006-08-18 15:43:20 +00:00
Stanislav Shwartsman
fee48d74e0 Avoid doing strdup for param name field - most of the strdups elliminated ! 2006-05-29 22:33:38 +00:00
Stanislav Shwartsman
8b0df8e99b Merge SAVE_RESTORE branch to CVS 2006-05-27 15:54:49 +00:00
Stanislav Shwartsman
252c669841 Remove unused members in vga and svga (Volker)
Change PANIC to ERROR in keyboard port 64 handler
2006-04-27 11:58:07 +00:00
Stanislav Shwartsman
77653bcf3d More indent and C++ style changes (explicitly write virtual before virtual desctructors).
The PCI read/write handlers written in new C++ - more flexible and easy-to-understand
2006-03-07 21:11:20 +00:00
Stanislav Shwartsman
242c2fa51c Style and indent changes 2006-03-07 18:16:41 +00:00
Volker Ruppert
d4d4cbf6dd - display and interface options rewritten to a parameter tree
- new enum parameter method get_selected() returns a pointer to the selected string
- proposed parameter tree updated
2006-02-21 21:35:09 +00:00
Volker Ruppert
1e0467c8ff - Cirrus SVGA detection fixed on OS/2 guest (from SF patch #1400358) 2006-01-28 10:28:25 +00:00
Volker Ruppert
cef74b528a - moved runtime handler for 'vga_update_interval' into the device (TODO: this could
be done with some parameters, e.g. mouse, keyboard, usb)
2005-11-27 17:49:59 +00:00
Volker Ruppert
fa996ca9de - don't register i/o and memory address ranges during PCI probe
- PCI devices now report real base address changes only
- writes to the high word of i/o base addresses now permitted (for PCI probe)
2005-11-15 17:19:28 +00:00
Volker Ruppert
87e7dd3434 - don't allocate video memory if already done (this was wasting memory)
- don't init / reset Cirrus extension if disabled
- store last active BPP value independent from selected vga extension (fixes possible
  panic when switching from a Cirrus 640x480 mode to standard VGA)
2005-10-27 09:32:02 +00:00
Volker Ruppert
ae3621fb5f - removed temporary PCI base address initialization in the reset() functions
- removed obsolete parameters for usb1 and pnic (now assigned by the PCI BIOS)
- PCI base address register mechanism now leaves the flags untouched
- missing reset of pnic options added
2005-09-22 21:12:26 +00:00
Stanislav Shwartsman
7f0fc6df78 Change BX_ERROR message to BX_DEBUG (flooding log file and slows down simulation) 2005-08-03 20:59:35 +00:00
Volker Ruppert
e98c100f74 - a bunch of warnings in MSVC fixed
- name of source file in wxworkspace.zip fixed
2005-06-04 17:44:59 +00:00
Volker Ruppert
eaf492de82 - destination write mask handling fixed in 24 bpp modes 2005-04-21 18:31:58 +00:00
Volker Ruppert
53a99cc3b2 - hack added to make the hardware cursor visible on indexed displays (e.g. win32
display library in 8 bpp mode). FIXME: find nearest match in DAC table
- optimizations in function redraw_area()
- removed unnecessary code in colorexpand functions
2005-04-14 18:59:46 +00:00
Volker Ruppert
301b491a3f - fixes for colorexpand with destination write mask values > 0 2005-04-13 20:38:09 +00:00
Volker Ruppert
6ce17bbc2e - cpu-to-video transparent colorexpand function renamed and implementation completed
- some other code cleanups
2005-04-13 18:39:26 +00:00
Volker Ruppert
7e6ea7c1ee - fixes for patterncopy with destination write mask values > 0
- some comments updated
2005-04-12 21:26:55 +00:00
Volker Ruppert
90e9e78450 - more accurate implementation of the bitblt destination write mask
- extended bitblt flag DWORDGRANULARITY now supported
- bitblt messages changed to BX_DEBUG
- report write mask in bitblt message
2005-04-10 17:17:19 +00:00
Volker Ruppert
12bb6400f3 - cpu-to-video bitblt code rewritten and dword alignment fixed
- memory mask for the 2 MB ISA version fixed
- bltwidth is unmodified now (width corrected in bitblt functions if necessary)
2005-04-09 11:57:23 +00:00
Volker Ruppert
b084267f75 - fixed pattern pitch for 24 bpp video-to-video patterncopy 2005-03-30 19:47:28 +00:00
Volker Ruppert
e1aee85d19 - fixed src start address for video-to-video patterncopy 2005-03-29 19:42:02 +00:00
Volker Ruppert
35ee22210d - fixed redrawing after backwards bitblt operations
- print mode switch information only when there's really a change
2005-03-27 09:46:31 +00:00
Volker Ruppert
447a88986a - print the type of Cirrus card active after init
- read/write access to unknown CRTC, sequencer or GFX controller registers now
  causes a BX_DEBUG message
- replaced not portable variable 'unsigned long' by portable ones
2005-03-22 22:20:26 +00:00
Volker Ruppert
5b57471245 - vga extension check added. Unsupported extension names now cause a panic
- vga extension option in bochsrc sample added
2005-02-10 09:48:12 +00:00
Volker Ruppert
5e420c7172 - vga extension option now controls the presence of the Cirrus extension
- Cirrus and VBE support are no longer mutually exclusive
2005-02-09 22:01:19 +00:00
Volker Ruppert
6753ccb272 - fixed write mode 4 + 5 (based on a patch for qemu by Magnus Damm)
- fixed size of MMIO region at 0xB8000
- don't report writes to unused control/mmio registers
2005-01-27 18:11:43 +00:00
Volker Ruppert
dc70d6a47b - drawing of hardware cursor fixed on 15 bpp host displays
- fixed some warnings
2004-12-29 10:43:34 +00:00
Volker Ruppert
975cd53fa5 - vbe update code now uses the new graphics API
- old update code removed from display libraries sdl, wx and x
- wx.cc: fixed a warning
2004-11-06 17:03:44 +00:00
Volker Ruppert
a75d9f173d - mem_write: missing return statement added
- small fixes in bitblt functions (colorinvert, patterncopy)
2004-08-28 15:31:33 +00:00
Volker Ruppert
986f879a85 - transparent colorexpand support improved (colorinvert, patterncopy)
- old-style update code no longer necessary
2004-08-26 16:20:50 +00:00
Volker Ruppert
f06b1bf577 - extended bitblt mode solidfill implemented
- svga_patterncopy() fixed
- svga_pitch change fixed
- forward write to MMIO address 0x13 to graphics controller register 0x2b
2004-08-16 15:23:19 +00:00
Volker Ruppert
45ccb97021 - CL-GD 54xx SVGA emulation added (SF patch #869822 from m_suzu_abc@yahoo.co.jp)
- changes to the original svga_cirrus patch:
  * PCI memory/mmio PnP support, some emulation and compile fixes
  * ported write mode 4 + 5 and some bufixes from cirrus vga in qemu
  * new graphics API, hardware cursor support, configure option added (Robin Kay)
  * partial support for transparent bitblt and bitblt write mask
2004-08-16 08:07:23 +00:00