Commit Graph

13547 Commits

Author SHA1 Message Date
Volker Ruppert
05dd2200cb GTK debugger gui: fixed compilation error with GTK2.
Prepared GtkGrid support (Disabled - not yet working correctly).
2024-07-21 17:21:11 +02:00
Volker Ruppert
41be8ac1e7 GTK gui debugger: fixed some more GTK 3.0 deprecated warnings.
Added new code for the GTK3 case (TODO: GtkTable stuff).
2024-07-19 18:42:49 +02:00
Volker Ruppert
5c4f964b40 Fixed some issues related to the GTK version of the gui debugger.
- Fixed compilation error in case USB debugger is also present.
- Fixed segfault on exit exposed with gui debugger, but caused by slirp.
- Fixed some format warnings.
- Added some new code for GTK 3.0 to fix some of the deprecated warnings
  (to be continued).
2024-07-16 20:45:43 +02:00
Volker Ruppert
400b8a2419 Set USB debug dialog title depending on trigger type. 2024-07-16 16:36:43 +02:00
Volker Ruppert
9415313a49 Two configure script changes for the USB debugger.
- Only use GTK 2.0 if needed by wxWidgets, otherwise use GTK 3.0.
- Set minimum GTK version for the USB debug dialog to 3.0.
2024-07-14 21:12:32 +02:00
Volker Ruppert
858a9a5147 Added basic GTK version of the USB debugger dialog.
- Only UHCI without frame tree view is implemented yet.
- Tested with GTK 3.0 and X11 gui only.
- NOTE: GTK dialog is not modal, since the Bochs window is not a GTK one.
2024-07-14 18:18:34 +02:00
Volker Ruppert
b4f6a4a828 Added stub for the GTK version of the USB debugger.
- For now showing a warning message box with "OK" and "Cancel" button.
- Prepared SDL2 and X guis to use it.
- Modified code to make sure win32 specific stuff is only present in win32usb.cc.
2024-07-07 18:05:24 +02:00
Volker Ruppert
bdd6b25db5 USB debugger: Fixed compilation with Bochs debugger also enabled. 2024-07-06 19:45:20 +02:00
Volker Ruppert
938c2ba307 USB debugger: Renamed configure option and config.h macro.
Now --enable-usb-debugger turns on USB debugger if not already done with Bochs debugger.
Now using BX_USB_DEBUGGER macro to prepare the code for implementations other than win32.
2024-07-06 18:48:14 +02:00
Volker Ruppert
2717e90d58 USB debugger: Moved platform independant stuff to separate files. 2024-07-05 23:53:00 +02:00
Volker Ruppert
d8a955b035 Don't panic if usb_debug_trigger() is called from other than selected HC type. 2024-07-04 22:56:07 +02:00
Volker Ruppert
b4d4b62dc1 Some work on the USB debugger code.
- Moved USB debugger API defines to siminterface.h.
- EHCI companions now also can enable the USB debugger.
- Removed obsolete hack from ohci_core.h.
2024-07-04 20:04:40 +02:00
Volker Ruppert
3dab500147 In bx_init_usb_options() only add options matching the HC type. 2024-07-02 20:41:21 +02:00
Volker Ruppert
0f6b74e940 Replaced deprecated function CreateStatusWindow() in win32.cc.
Cleaned up definition of _WIN32_IE.
FIXME: statusbar not correctly shown when running bochs.exe with Wine.
2024-06-30 19:02:38 +02:00
Volker Ruppert
69215cb1e0 Some changes for wxBochs.
- Read configuration: set working directory to path of selected bochsrc.
- Don't link with readline library if Bochs with debugger is compiled with wx only.
- Set initial window size to 640x480 to make all toolbar buttons visible.
2024-06-29 17:47:05 +02:00
Volker Ruppert
41a7f241ed Fixed a warning. 2024-06-29 06:46:20 +02:00
Volker Ruppert
dc05bec7e3 Improved USB debugger toolbar handling.
- Added XPM bitmap for the "trigger" state.
- Init toolbar with USB debugger disabled state and switch to enabled when
  setting up the USB debug type.
- USB debugger is now available with plugins enabled.
2024-06-28 22:04:14 +02:00
Volker Ruppert
c0706da40c Improved USB debugger toolbar handling.
- Added method set_usbdbg_bitmap() to get rid of the public members hack.
- Init toolbar with USB debugger disabled bitmap and switch to active when
  setting up the USB debug type.
- Internally changed bitmap names.
- TODO: add similar functionality for the wx version.
2024-06-28 14:11:15 +02:00
Volker Ruppert
3b826875f6 Improved wxWidgets toolbar functionality.
- Added floppy A/B and cdrom1 "ejected" XPM files.
- Renamed "cdromd" bitmaps to "cdrom1".
- Return pseudo bitmap and header IDs for implementing replace_bitmap() feature.
- Update mouse capture mode in specific_init() if necessary.
2024-06-25 19:11:20 +02:00
Volker Ruppert
84b613d3c0 Compilation fix for wxMSW. 2024-06-23 19:50:30 +02:00
Volker Ruppert
cefedbd440 Some more wx toolbar changes.
- Added XPM file for disabled mouse capture.
- Added method for toggling toolbar bitmaps and use it for the mouse button.
- Some small tooltip changes.
2024-06-23 18:38:14 +02:00
Volker Ruppert
b8d2f1572c Changed order of buttons and some tooltips in wx toobar. 2024-06-23 10:39:54 +02:00
Volker Ruppert
919abc8dec Documentation update after USB debugger option changes. 2024-06-21 17:50:04 +02:00
Volker Ruppert
1d556fd1de Some works on USB debugger option handling.
- Now using parameter format "property=value" like most of the Bochs options.
- Save USB debugger options if present.
2024-06-20 22:59:11 +02:00
Volker Ruppert
ccdfbc64ad Changing define to _WIN32 fixes USB debugger resource with MSVC. 2024-06-18 23:00:48 +02:00
Volker Ruppert
e83d8bd5e3 Rewrite of the USB debugger code for wxWidgets support.
MSVC plugins version now also compiles with USB debugger enabled.
TODO: MSVC builds still fail to show USB debugger dialog.
2024-06-17 23:03:29 +02:00
Volker Ruppert
67e4e12de1 Rewrite of the host controller side of the USB debugger support. 2024-06-16 23:09:58 +02:00
Volker Ruppert
4f394045a9 Fixed wx compilation without USB debugger support. 2024-06-16 19:46:41 +02:00
Volker Ruppert
7abf471f06 Started preparing USB debugger support for wxWidgets (Windows port).
Toolbar button for USB debugger is now available in wxWidgets, but currently
causes a panic. Moving USB debugger related code from gui.cc and win32config.cc
to siminterface.cc is required to support it in wx.
2024-06-16 19:01:29 +02:00
Volker Ruppert
533e2f7c76 Some USB debugger config parameter changes.
- Changed USB debug type defines to enum.
- Trigger options depend on the debug type parameter.
- Minor related changes.
2024-06-16 10:33:14 +02:00
Volker Ruppert
3118f0dec4 Some work on the USB debugger code.
- Moved USB debugger options to the "ports" subtree to make them available in
  the start menu dialog.
- Replaced direct device object access with save/restore tree access for
  compatiblity with the plugins support.
- Minor related changes (removed some hacks, added helper functions).
- FIXME: MSVC build fails to show dialog, closes Bochs session instead.
- FIXME: MSVC plugins version fails to link win32config DLL.
2024-06-15 14:57:10 +02:00
Volker Ruppert
f6975151f3 Removed trailing spaces from USB debugger code.
TODO: Rewrite of USB debugger code to make it compatible with Bochs plugin support.
2024-06-14 23:08:41 +02:00
Stanislav Shwartsman
8712a316d2 fix for issue #326 2024-06-14 19:43:46 +03:00
Volker Ruppert
3be49b57f7 Added some missing changes after updating LGPL'd VGABIOS. 2024-06-10 22:14:01 +02:00
Volker Ruppert
dcc794a7d3 LGPL'd VGABIOS updated to version 0.9b (several VBE bugfixes).
Now using ".bin" file extension for all VGABIOS images.
2024-06-09 16:27:18 +02:00
Volker Ruppert
730fe8e813 Enable debugger gui only if available (wx handling was incorrect). 2024-06-04 20:39:12 +02:00
Volker Ruppert
f3e2cbff5c Fixed GTK library version check for the gui debugger. 2024-06-03 22:18:47 +02:00
Volker Ruppert
a23bac15e5 Fixed two legacy SDL key handling issues.
- Scroll lock release now works again (Formerly used as fullscreen toggle).
- Attempt to fix Pause / Ctrl+Break key handling (possibly SDL issue).
2024-06-02 19:28:08 +02:00
Volker Ruppert
3bcd697be5 Banshee / Voodoo3: More accurate check for address wrap during update(). 2024-06-02 14:40:46 +02:00
Volker Ruppert
12e78032af Banshee / Voodoo3: Fixed check for address wrap during update(). 2024-06-01 08:11:09 +02:00
simoc
9264301293
Fixed spelling of word "destination" in log message (#324)
Fixed spelling of word "destination" in log message.
2024-05-31 14:54:13 +02:00
Volker Ruppert
3e8c074580 Fixed SDL2 fullscreen toggle. 2024-05-30 22:19:07 +02:00
simoc
e7e76cfb5c
Minor grammar improvements in README and user.dbk documentation (#323)
Minor improvements to English grammar in documentation files.
2024-05-30 19:07:40 +02:00
Volker Ruppert
dc10a4195d Fullscreen mode fixes for the win32 gui.
Clear screen on top of dimension_update() to get rid of artifacts from previous resolution.
Adjust tile height at the bottom of the display if necessary.
2024-05-30 13:46:27 +02:00
Volker Ruppert
244e35af87 Banshee: Skip address wrap during display update to avoid segfault.
Original Banshee / Voodoo3 VGABIOS reporting wrong number of image pages in
VBE mode info of at least mode 640x480x8. Issue found with vbetest program.
2024-05-25 22:21:37 +02:00
Volker Ruppert
426bd50b90 Cirrus VGA fixes to make original VGABIOS work correctly with XP (#319).
- Allow BitBlt start after BitBlt reset with one register write.
- Using dstpitch = 0 is valid if bltheight = 1. Skip redraw to avoid division
  by zero error. Win2k and XP are using these settings at startup and expect a
  small piece of memory to be set to 0xff. That's why the LGPL'd VGABIOS for
  Cirrus still has the Win2k hack clearing all memory with 0xff.
2024-05-25 15:18:21 +02:00
Volker Ruppert
9c356c4f2e Enable slirp IPv6 support by default.
Added slirp config option "ipv6_prefix".
2024-05-23 19:01:40 +02:00
Volker Ruppert
87c3e4be79 Changed version of libslirp source to 4.8.0. 2024-05-22 17:06:19 +02:00
Volker Ruppert
fe390c3921 Builtin slirp: Last set of updates from libslirp 4.8.0. 2024-05-22 17:02:57 +02:00
Volker Ruppert
da41022ee2 Builtin slirp: Some more updates from libslirp and warning fixes. 2024-05-20 18:37:24 +02:00