Commit Graph

13512 Commits

Author SHA1 Message Date
Volker Ruppert
2979ba4b3a Lowlevel sound support: Attempt to fix issue #270.
If resampler is not present, flush output before changing PCM parameters.
2024-04-01 10:31:51 +02:00
Volker Ruppert
78ce6be17d Fixed compilation of vncsrv gui in Cygwin. 2024-04-01 09:01:27 +02:00
Volker Ruppert
d345dc85dd Enable PulseAudio support for more platforms, but not yet for Windows.
On Windows PulseAudio uses pthreads which seem to be in conflict with the native
Windows threads used by Bochs.
2024-04-01 00:23:23 +02:00
Stanislav Shwartsman
3657e40437 convert FSCALE to softfloat3e style 2024-03-31 15:24:12 +03:00
Volker Ruppert
6ac761894c Added lowlevel sound output support using the PulseAudio simple API.
TODO: PulseAudio also supports sound recording and it's portable (Windows).
2024-03-31 13:19:43 +02:00
Stanislav Shwartsman
725aa43b9c fix extern 2024-03-30 19:44:14 +03:00
Stanislav Shwartsman
7c1a23037a convert FEXTRACT to softfloat3e style
remove more softfloat2 code which is not in use anymore
2024-03-30 19:35:08 +03:00
Volker Ruppert
ba1a0441ab Setting GTK version number in config.h fixes GTK3 compilation.
GTK3 forbids to include gtkversion.h directly.
2024-03-30 16:59:06 +01:00
Stanislav Shwartsman
c91b7bf117 convert float128 uses to softfloat3e
remove more now unused softfloat2 stuff
2024-03-30 15:36:43 +03:00
Volker Ruppert
110bb94e3a Updated VS2019 project files after latest softfloat3e changes. 2024-03-30 12:48:22 +01:00
Volker Ruppert
e58f9b46f6 BXSHARE: For backward compatibility read default value from registry
key if BX_SHARE_PATH doesn't exist.
2024-03-30 12:28:25 +01:00
Volker Ruppert
676eb9f37d Added support for showing X dialog box when parsing options.
Changed init order to: XInitThreads(), XOpenDisplay(), SIM->set_notify_callback()
and then parse display library options.
2024-03-30 11:11:07 +01:00
Volker Ruppert
1924cd457e Gui options parser: Don't panic after showing error message box. 2024-03-30 08:05:53 +01:00
Volker Ruppert
51a73a00e8 Fixed compilation error with minimal configuration. 2024-03-29 20:29:58 +01:00
Volker Ruppert
ed20d44090 Added new gui method parse_common_gui_options().
Simplified gui option handling with it in sdl, sdl2, win32 and x11 guis.
The sdl and sdl2 guis now also support "gui_debug:globalini".
2024-03-29 20:12:41 +01:00
Stanislav Shwartsman
6d4f132977 remove now unused function 2024-03-29 20:14:13 +03:00
Stanislav Shwartsman
c372a77392 tab2space 2024-03-29 20:13:57 +03:00
Stanislav Shwartsman
a04ec3716a better handling of denormal in extF80_rem 2024-03-29 16:23:15 +03:00
Stanislav Shwartsman
af18912529 GTK debugger: Set GTK_DISABLE_DEPRECATED only for GTK 2.
The current code fails to compile otherwise with GTK 3.
(was accidentially removed by prev commit)
2024-03-29 16:04:17 +03:00
Stanislav Shwartsman
eef84bbbfc fixed warnings 2024-03-29 16:02:11 +03:00
Stanislav Shwartsman
446408eb74 remove redundant files from softfloat3e source code 2024-03-29 16:00:22 +03:00
Volker Ruppert
1bbd4ed535 Added gui debugger option extension "globalini" fur the win32 and x11 guis.
Use this display library line to read/write ini from BXSHARE path:

display_library: x, options="gui_debug:globalini"

NOTE: Using $BXSHARE at this point doesn't work yet since the common parser code
expands the variable and Bochs finally exits with a panic (needs to be reviewed).

TODO: Add shared parser code for all guis and add this feature for SDL, SDL2 and
wxWidgets guis.
2024-03-29 10:40:59 +01:00
Volker Ruppert
aff2b42203 Added panic for legacy BIOS if there is no VGA ROM at C000:0000h.
This is a workaround for issue #155.
2024-03-28 18:55:04 +01:00
Volker Ruppert
504f68e6bd Fixed warnings in the GTK debugger code. 2024-03-27 17:33:19 +01:00
Volker Ruppert
44d644c2c2 Some more user doc updates and updating Bochs website URL. 2024-03-26 19:36:12 +01:00
Volker Ruppert
ca8c9936b9 Debugger gui: Added support for using ini file from BXSHARE path.
If BXSHARE variable is defined (or BX_SHARE_PATH set in Windows registry)
and an existing ini file is copied to this location, the gui will use it
instead of the local ini file (issue #195).
TODO: Specify the ini file priority with an addition to the 'gui_debug'
parameter of the display library option.
2024-03-25 20:08:02 +01:00
Volker Ruppert
187411e25f In shortcut script .conf.linux added support for enabling debugger.
The debugger now can be enabled without setting CONFIGURE_ARGS.
To turn it on use

./.conf.linux normal debugger

or

./.conf.linux plugins debugger
2024-03-25 19:50:06 +01:00
Volker Ruppert
9daf6e9f50 Updated most of the user doc after transition to GIT / GitHub. 2024-03-25 17:53:04 +01:00
Volker Ruppert
e9c66051bd Fixes from Debian package of Bochs 2.8.
- Use macro PKG_PROG_PKG_CONFIG to detect pkg-config.
- Removed obsolete file from Makefile.in.
2024-03-24 19:49:22 +01:00
Volker Ruppert
1fcb27f55d Don't include links from /usr/lib/.build-id in binary RPM package. 2024-03-24 18:33:20 +01:00
Volker Ruppert
78c5b21313 Some NSIS script additions and developer doc updates. 2024-03-24 16:51:56 +01:00
Volker Ruppert
b9c0cb6d6f Check for GTK3 if GTK2 is not found.
This is required by the GTK-based enhanced debugger gui.
2024-03-24 09:38:12 +01:00
Volker Ruppert
5a129be330 NSIS Makefile fixes. 2024-03-23 17:07:03 +01:00
Volker Ruppert
21428f1abb Fixed some warnings when running autoconf 2.71. 2024-03-23 15:39:25 +01:00
Volker Ruppert
7f5b9e08d7 Update CHANGES 2024-03-23 13:55:39 +01:00
Volker Ruppert
7cd532db9a Removed legacy libltdl code and force using system libltdl instead. 2024-03-23 12:02:56 +01:00
Volker Ruppert
8a81eebedb Don't enable USB debugger automatically if plugin support is enabled.
The current code of the USB debugger doesn't meet the requirements for compiling
with plugins present. It should not access devices directly but use the parameter
tree instead.
Don't include USB debugger resources if not present.
2024-03-23 07:32:50 +01:00
Volker Ruppert
542a3f9b6a MSVC workspaces: Added new USB debugger files to gui.vcxproj.
Renamed USB EHCI and USB UHCI folders in plugin workspace files.
Attempt fix plugin version for compiling with Bochs debugger / USB debugger.
FIXME: USB debugger doesn't link yet.
2024-03-22 20:23:38 +01:00
Volker Ruppert
012860f593 Finished work on the MSVC workspace files.
Fixed IntDir / OutDir settings in remaining project files.
Removed obsolete defines required by ancient FPU emulator.
2024-03-21 18:13:59 +01:00
Volker Ruppert
a9d2e8f419 Some more work on the MSVC workspace files.
Don't generate debug information for release builds (plugin DLLs).
2024-03-20 18:19:40 +01:00
Shwartsman
3fa94f758a PR "check for both UHCI and OHCI when enabling EHCI #291" with configure support 2024-03-19 22:11:49 +02:00
Volker Ruppert
9d9d5b22eb Some work on the MSVC workspace files.
Don't generate debug information for release builds.
Fixed some of the "OutDir" settings.
TODO: review all "OutDir" settings, debug information in plugin DLLs.
2024-03-19 19:32:00 +01:00
Volker Ruppert
27e0ccb500 Added missing references to softfloat3e. 2024-03-18 22:11:48 +01:00
Volker Ruppert
b5070d0d6f Updated MSVC workspace for Bochs with plugin support. 2024-03-18 21:32:42 +01:00
Benjamin David Lunt
4e378cbcf2
check the nps bit before operating on the psm bit (#290)
The PSM bit is only valid if NPS = 0 and a few other minor additions and
syntax fixes
2024-03-18 07:04:31 +02:00
Benjamin David Lunt
e3274339e2
Allow BX_SHARE_PATH to be used in BIOS paths (#288)
This allows the Window's Environment variable BX_SHARE_PATH to be used
in paths within your bochsrc file.

Environment variable:
`BX_SHARE_PATH`
Value:
`D:\some\path`

Before:
`romimage: file=D:/some/path/bios/BIOS-bochs-latest`
After:
`romimage: file=$BXSHARE/bios/BIOS-bochs-latest`

Please note that I don't know why the parameter was initially empty. Was
this to catch a base/default parameter?
If the `lpValueName` parameter is NULL or an empty string, Windows will
return a (possibly non-existent) default value.
With this PR, we specify the actual parameter of `BX_SHARE_PATH`.
2024-03-18 07:03:07 +02:00
Benjamin David Lunt
d94445257e
add spaces and correct alignment to source (#289) 2024-03-18 06:58:49 +02:00
Volker Ruppert
7e9d9c16e8 Adding reference to softfloat3e.lib fixes building Bochs with VS2019.
TODO: Update plugins workspace.
2024-03-17 20:53:16 +01:00
Volker Ruppert
a5a992c792 VGA_MEM_FIX: Removed legacy VGA code and VGA_MEM_FIX definition. 2024-03-17 15:58:27 +01:00
Volker Ruppert
9fbaadd894 Started updating the standard workspace for MSVC.
Updated AVX and FPU project files to make them compile. Added new project file
for the softfloat3e module. With the current version the softfloat3e.lib is created,
but it doesn't link with bochs.exe, so the build fails with more than 100 unresolved
externals. Manually linking on the MSVC command line using the created *.lib and *.obj
files works and bochs.exe is usable. I still haven't found out why linking from
the IDE fails.
TODO: After fixing this issue, updating the plugins workspace should be no problem.
2024-03-17 14:19:03 +01:00