Benjamin David Lunt
cc6ac48d6c
Wider statusbar elements
...
With newer wider screens, we can now have wider statusbar elements so that an element such as "USB-HD" isn't clipped on both sides.
2023-02-10 21:17:21 -07:00
Stanislav Shwartsman
1e4f1624c8
remove trailing whitespace from source files
2022-08-23 21:46:04 +03:00
Stanislav Shwartsman
4d227d15fb
remove instrument.h from bochs.h so it won't be included everywhere
...
include it only where required
move PHY_ADDRESS reserved bits consts to cpu.h
2022-07-30 22:35:43 +03:00
Stanislav Shwartsman
430ba44b0e
Create hc-cpp.yml ( #19 )
...
* Create hc-cpp.yml
* update actions
* update actions
* update actions
* update actions
* update actions
* fix format string for VMX preemption timer dbg message
Fix compilation with BX_HAVE_XRANDR_H = 0: XRRQueryExtension is not available
* update actions
* add .conf.everything to testing
Co-authored-by: Stanislav Shwartsman <sshwarts@users.sourceforge.net>
2022-07-27 01:26:55 +03:00
Volker Ruppert
52b0000db7
Applied two patches from Debian.
...
- Apply standard flags from environment everywhere (SF patch #546 ).
- Allow overriding ld and objcopy for building bios on non-x86 platforms.
2021-09-10 15:33:22 +00:00
Stanislav Shwartsman
2cb9bb4e44
remove cpudb.h from some Makefile dependencies. TODO: it should be only in cpu/init.cc and config.cc
2021-07-25 18:06:31 +00:00
Volker Ruppert
61f24a0727
Updated gui makefile dependencies.
2021-07-08 20:16:51 +00:00
Volker Ruppert
caf52aacac
Added advanced PCI option 'noagp' for the i440BX chipset.
...
Since AGP support is incomplete, it may be useful to disable this subsystem.
2021-06-27 14:50:26 +00:00
Volker Ruppert
50bac3b15c
Finally fixed memory restore state failure.
...
- When saving memory swap file, reset it's file pointer.
- Using fflush() is not necessary here.
2021-06-24 17:50:05 +00:00
Volker Ruppert
484b0eeee7
Minor changes in memory save/restore code (restore failure still not fixed).
...
- When restoring memory swap file, reset file pointer if file is already open.
- Increased buffer size for restoring memory swap file.
- Fixed save/restore list (added next_swapout_idx, removed host / guest size).
2021-06-24 17:03:09 +00:00
Volker Ruppert
4b465e5b50
Attempt to fix issues after restore in case "large ramfile" support is used.
...
- bx_shadow_filedata_c: using tmpfile64() (same as memory code).
- memory parameters: minimum value set to -2 (means "swapped out").
- FIXME: restore issues still not fixed.
2021-06-23 20:59:08 +00:00
Volker Ruppert
28b280c4bc
Added display library option for disabling the Bochs gui console - using system
...
console / xterm instead (rfb, sdl, sdl2, vncsrv, x).
2021-06-11 14:46:38 +00:00
Volker Ruppert
715d26015a
Force a VGA window refresh when leaving gui console mode.
2021-06-07 11:30:08 +00:00
Volker Ruppert
c6eb8ccfc6
Read maximum window size in specific_init() and retrieve it in get_capabilities().
2021-06-06 09:38:47 +00:00
Volker Ruppert
6781067b55
Don't increment number of status items before comparing with maximum.
...
Fixes segfault when connecting an USB disk and all of the 10 slots are in use.
2021-04-23 20:08:12 +00:00
Volker Ruppert
adf209fe9e
Fixed some issues reported by valgrind.
2021-04-18 17:20:41 +00:00
Volker Ruppert
0ccf537103
Fixed two minor issues in bx_param_num_c class.
...
- reset() must call set() to ensure the set handler is called if present.
- don't set value if parameter is disabled.
2021-03-28 06:31:03 +00:00
Volker Ruppert
3fcc320897
Added new plugin type PLUGTYPE_CI for config interfaces. Updated related code
...
and documentation.
2021-03-27 17:23:31 +00:00
Volker Ruppert
9426ba987b
Converted the win32config module to a plugin (using PLUGTYPE_CORE for now).
2021-03-26 19:12:09 +00:00
Volker Ruppert
7661b74d5c
Step #1 for converting the win32config code to a plugin.
...
- Renamed win32dialog.cc to win32config.cc.
2021-03-23 10:04:29 +00:00
Volker Ruppert
ca654e2033
References to the gui debugger are no longer needed here.
2021-03-20 15:54:42 +00:00
Volker Ruppert
4966843c90
Converted the textconfig module into a plugin, using PLUGTYPE_CORE for now.
...
It has been compiled and tested on Linux, with MinGW/MSYS and MSVC nmake.
TODO: Check whether or not the config interface choice "win32config" can be
a plugin, too. Possibly add a new plugin type for config interfaces.
2021-03-18 19:50:12 +00:00
Volker Ruppert
5e2365d8de
Fixed compilation error in case the textconfig module is disabled.
2021-03-17 16:40:08 +00:00
Volker Ruppert
4d6f1039c7
Removed reference to textconfig.cc from win32dialog.cc. Added switching config
...
interface to textconfig if the selected gui has a builtin console in
SIM->set_init_done(). This is required on Windows for the rfb and vncsrv guis.
Cleaned up the textconfig code.
2021-03-17 16:11:05 +00:00
Volker Ruppert
130be4e7bb
Separation of textconfig and paramtree modules. Converting textconfig to a
...
plugin is possible now. Added new functions text_print() and text_ask() in
textconfig.cc to replace related methods of bx_param_c classes. Removed a now
obsolete comment section in siminterface.h.
2021-03-14 18:27:42 +00:00
Volker Ruppert
5385b2b98b
Some textconfig related changes.
...
- Removed unused method bx_list_c::text_print().
- Fixed default prompt in bx_param_enum_c::text_ask().
- speaker.cc: fixed a typo in ask format.
2021-03-14 09:52:15 +00:00
Volker Ruppert
25e725a23c
Makefile dependency updates
...
- Don't include paramtree.h in siminterface.h to get rid of duplicates
in a lot of Makefile dependency lines.
- Regenerated Makefile dependencies in iodev and affected subdirectories.
- FIXME #1 : including debug.h causes duplicate entries of config.h and osdep.h.
- FIXME #2 : cpudb.h appears in most of the iodev* dependencies, but only needed
by config.cc and the cpu class.
2021-03-13 09:54:06 +00:00
Volker Ruppert
c07daa3a1c
Some more code cleanup.
...
- Removed unnecessary SIM-opt_plugin_ctrl() call.
- Removed outdated menu layout sketch.
2021-03-11 08:10:12 +00:00
Volker Ruppert
b5428785aa
Small code cleanup.
2021-03-08 09:04:16 +00:00
Volker Ruppert
0c2a9c69d6
Some config option changes.
...
- Moved serial and parallel config parameter list creation to the corresponding
device code.
- Unregister serial and parallel bochsrc options in PLUGIN_FINI mode.
- Moved USB config and runtime parameter list creation to bx_init_usb_options().
- textconfig.cc: Small fixes in the optional plugin control.
2021-03-07 11:54:50 +00:00
Volker Ruppert
66d9fd53b5
Two more disabled options fixes in the config interfaces.
2021-03-05 21:25:13 +00:00
Volker Ruppert
01516a153f
Fixed a warning.
2021-03-05 17:01:41 +00:00
Volker Ruppert
e8709d58e4
Fixes in the config interfaces handling of disabled options.
...
- Don't show dialog or menu if selected list is NULL or empty.
- Don't create list for lowlevel sound options if disabled in config.h.
2021-03-05 16:52:26 +00:00
Volker Ruppert
a475fee44f
Fixed compilation with networking and USB support disabled.
2021-03-03 17:47:15 +00:00
Volker Ruppert
2aadd3e470
Changed type of the PCI slot option to bx_param_enum_c and build choices list
...
from plugin devives with PLUGFLAG_PCI set.
2021-02-27 10:23:05 +00:00
Volker Ruppert
8aaf9d858e
Changed type of vga and svga_cirrus plugins to PLUGTYPE_VGA. Modified vga
...
extension option init to make this work correctly. The choices "none" and "vbe"
load the vga plugin, "cirrus" loads svga_cirrus.
2021-02-23 08:12:24 +00:00
Volker Ruppert
7a479ff4c9
Upgraded MSVC workspace files for VS2019 and fixed some MSVC warnings.
2021-02-21 08:08:06 +00:00
Volker Ruppert
595d4e5c3f
Some changes in the Bochs config parameter code and related gui dialogs.
...
- Changed some bx_param_c member types and related code to bool.
- Added bx_param_string_c method get_enable_handler() for the use in gui dialog
dependency processing.
- Call the enable_handler (if present) when processing dependent list in the wx
and win32 ParamDialog code.
2021-02-20 18:56:25 +00:00
Volker Ruppert
2e44a5c8bf
Changed type of VGA extension option to bx_param_enum_c. Additional choices are
...
added from plugins list.
2021-02-19 16:05:56 +00:00
Volker Ruppert
24bccc8efb
Changed parameter handler argument "set" type to bool.
2021-02-19 13:13:42 +00:00
Volker Ruppert
919d82b68e
Next step of USB devices handling rewrite. Changed type of the device parameter
...
to bx_param_enum_c. Updated code to provide support for legacy syntax
(portX="device:option").
TODO: generate USB devices list from plugins list.
2021-02-15 16:09:02 +00:00
Volker Ruppert
d154ead26b
Fixed broken save/restore feature: set() argument type must be Bit64s.
2021-02-11 09:29:44 +00:00
Volker Ruppert
0d425037df
Improved plugin type detection at Bochs startup.
...
- Added special mode to all plugin entry functions that returns the plugin type.
- The plugins search function now temporarily loads all available plugins and
reads the plugin type using the new mode PLUGIN_PROBE.
- Added "loadtype" to the plugin structure to store the type used for plugin
loading (currently only the voodoo plugin provides two types).
2021-02-07 16:16:06 +00:00
Volker Ruppert
6ad19a7716
Rewrite of the sound driver handling similar to the hdimage and networking
...
module code. Sound driver names are now stored as string constants instead
of hardcoded values. Available modules are detected at Bochs startup and stored
in a string array before initializing options. In the plugins case available
modules are read from the plugins list. If plugins are off, the registry of
bx_sound_lowlevel_c is used. Related changes similar to the hdimage and
network modifications.
2021-02-06 16:51:55 +00:00
Volker Ruppert
30b9c1b086
Fixed VS 2019 compilation error in siminterface.cc.
...
TODO (also MSVC / VS 2019 issues):
- Bochs with debugger enabled fails to link.
- After bx_bool removal there are tons of warnings (C4804 / C4805).
2021-02-06 13:35:34 +00:00
Stanislav Shwartsman
1765a06d01
move debug.h from bochs.h and include it only where required
2021-01-31 15:22:58 +00:00
Volker Ruppert
89522c30d8
Some more bx_bool to bool type changes.
...
- bx_shadow_bool_c: removed unused bitnum feature and changed data type.
- Changed return type of memory handlers to bool.
- Modified virtual timer, PIC and PIT code.
2021-01-30 23:55:24 +00:00
Volker Ruppert
fcd7f3e6f8
Changed bx_bool to bool type in the paramtree code (except bx_shadow_bool_c).
...
TODO: Check whether or not the bx_shadow_bool_c bitnum handling is really used.
2021-01-30 20:44:53 +00:00
Volker Ruppert
6cca254c9d
Fixed compilation of wxdialog.cc.
2021-01-30 20:24:27 +00:00
Stanislav Shwartsman
1089e470e9
remove bochs-memory.h from bochs.h and include it only where required
2021-01-30 20:13:34 +00:00