Stanislav Shwartsman
1a770dd260
implementation of virtual NMI
2013-03-05 21:12:43 +00:00
Volker Ruppert
e9a8ef1d65
removed flag USE_SPIN_CONTROL from the memory size parameters to fix the gui
...
configuration in Windows (up-down control only accepts 16-bit values)
2013-03-04 17:33:08 +00:00
Stanislav Shwartsman
39ae66b5a3
Suppress 'entering paged real mode' CR0 check for SVM guest
...
After a lot of thinking and browsing in the SVM arch forums I assume now that it shold be fine to enter to paged real mode under SVM guest.
The test case to consider:
(paged) real mode guest -> entering Pmode (not paged) -> disabling the Pmode back
Ths assumption still should be validated with real AMD hardware
Context: AMD's manual about CR0 intercept priority :
"Checks non-memory exceptions (CPL, illegal bit combinations, etc.) before the intercept"
The check for 'paged real mode' suposed to be illegal bit combination ...
2013-02-27 19:11:28 +00:00
Volker Ruppert
b81622cf31
added default DRB address setup for the i440FX chipset
2013-02-27 17:21:29 +00:00
Stanislav Shwartsman
ab63b22a68
SVM: implemented missed RSM, LDTR READ/WRITE, TR READ/WRITE and IRET intercepts
2013-02-25 19:36:41 +00:00
Volker Ruppert
70884d3cec
updated documentation of the memory options
2013-02-24 21:06:26 +00:00
Stanislav Shwartsman
8708d05bea
rename some VMX controls to match intel docs. added missed VMX consistency check
2013-02-24 20:22:22 +00:00
Volker Ruppert
b0d8d898c0
wx second run fix: fixed width of list views
2013-02-24 12:12:11 +00:00
Volker Ruppert
745b1bef84
wx second run fix: clear LOGFONT structure before losing it
...
fixed some warnings
2013-02-23 20:27:07 +00:00
Volker Ruppert
37b1f11fa6
cleaned up serial mode handling and some other minor changes
2013-02-23 15:15:59 +00:00
Volker Ruppert
ab57c1fb2f
found a better solution to fix the power_handler() deadlock
...
fixed bx_dbg_exit() handling for shutting down second simulation correctly
2013-02-20 18:51:39 +00:00
Volker Ruppert
209b8c9ff8
fixed deadlock in second simulation after exiting the first one with the power button
2013-02-19 19:12:44 +00:00
Volker Ruppert
9c3d374e6a
continued work for "wx second run" support
...
- memory: initialize ISA and PCI ROM variables in init_memory()
- sb16: remove items from runtime menu in destructor
- gui debugger: show dialog contents (TODO: fix remaining display issues)
- TODO: fix deadlock in bx_wx_gui::handle_events()
2013-02-18 20:52:19 +00:00
Volker Ruppert
910774513b
some work for "wx second run" support (not yet complete)
...
- bx_list_c: added support for removing parameter with other parent list
- USB HC's: remove item from runtime config on simulation exit
- initialize bx_user_quit in bx_begin_simulation()
- only remove optional plugin from list if alrady unloaded
2013-02-17 08:27:43 +00:00
Volker Ruppert
058c0e05fb
- removed wx debugger dialogs (enhanced gui debugger now almost stable with wx)
2013-02-16 12:22:13 +00:00
Volker Ruppert
a6bce2031c
two important fixes for the gui debugger in wx (GTK)
...
- fixed closing the debugger window from wx (power button / ask dialog)
- OnKillSim(): bx_user_quit must be set to 1 to exit the debugger wait loop
2013-02-15 22:22:51 +00:00
Volker Ruppert
638a1a2157
fixed stepN command in SMP mode
2013-02-15 20:06:09 +00:00
Volker Ruppert
e44176f597
run stepN command in the simulation thread to avoid deadlock in wxBochs
...
GTK init is not required in the wxGTK case
removed unnecessary include
2013-02-15 15:47:16 +00:00
Volker Ruppert
5416e462e9
moved debugger notify callback functions to enh_dbg.cc
2013-02-14 21:06:20 +00:00
Stanislav Shwartsman
e43ac349a6
fixed injected exception err code check for unrestricted guests
2013-02-14 19:31:42 +00:00
Stanislav Shwartsman
40669115e1
use different formatter for printing phy address in paging dbg messages
2013-02-14 19:30:59 +00:00
Volker Ruppert
98598e4da9
some fixes for the GTK debugger window for the wx case (to be continued)
...
- run GTK main loop only if wx (wxGTK) is not active
- don't try to destroy debugger window twice
2013-02-14 08:36:52 +00:00
Volker Ruppert
3109ad3d87
minor fixes for the gui debugger with wx on Windows
2013-02-13 11:13:28 +00:00
Stanislav Shwartsman
7188166653
added more FMT_PHY_ADDRX64 cases definition
2013-02-12 21:33:00 +00:00
Stanislav Shwartsman
66c9274bdb
max physical addr size is 48 bit so print less characters
2013-02-12 21:26:23 +00:00
Volker Ruppert
97de484efb
use enhanced gui debugger instead of classic wx debugger if BX_DEBUGGER_GUI == 1
...
The Windows version looks almost stable, but the GTK version fails in some cases.
That's why the classic wx debugger is still available if BX_DEBUGGER_GUI is set to 0.
- added function close_debug_dialog() to handle the simulation stop case in wx
- disable all the wx debugger related code if BX_DEBUGGER_GUI is set to 1
- added enhanced debugger specific init code similar to the code in sdl.cc
- include debugger related resources on Windows
- TODO: make the GTK / wxGTK case stable and remove the wx debugger
2013-02-12 21:08:35 +00:00
Stanislav Shwartsman
9c8c25b7ef
warning fix
2013-02-12 16:36:49 +00:00
Volker Ruppert
7eda0feb6f
fixed some compiler warnings
2013-02-12 13:31:40 +00:00
Volker Ruppert
3822dc7692
fixed critical GTK warning if only one cpu is present
...
fixed some compiler warnings
2013-02-12 11:15:05 +00:00
Volker Ruppert
f37d6e676f
removed duplicate comment, updated / added copyright and added license
...
TODO: remove wx debugger and use enhanced gui debugger instead
2013-02-10 21:26:51 +00:00
Volker Ruppert
88e1033b90
the "show keyboard" dialog has been removed some time ago
2013-02-10 16:39:58 +00:00
Volker Ruppert
f314df2d1b
use bx_dbg_exit() for a correct simulation shutdown if gui debugger is closed
...
use usleep() if available in the debug command wait loop
2013-02-10 13:37:25 +00:00
Volker Ruppert
de4a5ecd79
fixed segfault when closing debugger gui window while simulation is running
2013-02-10 08:47:17 +00:00
Volker Ruppert
e9302f4c13
don't execute hdimage save functions if the save/restore path is empty
...
reset save/restore path after completing save or restore process
2013-02-09 14:21:58 +00:00
Volker Ruppert
addd85e408
don't overwrite log actions per device if default is unchanged
...
- after parsing command line only update actions if default has changed
- bx_init_hardware(): extra update of log actions in quick start mode not needed
2013-02-05 20:57:40 +00:00
Volker Ruppert
7d32178e72
full support for saving log options per device (from bochsrc and config interface)
...
simplified setting up log options per device after parsing bochsrc / command line
2013-02-04 18:51:07 +00:00
Volker Ruppert
48b345d06f
save log options per device (from original bochsrc - runtime changes not handled yet)
...
code cleanup in bx_write_param_list() and other parts of the bochsrc save code
2013-02-03 18:28:25 +00:00
Volker Ruppert
0821a9027c
use the new bx_param_string_c method isempty() in bx_write_configuration()
...
the screenmode, fullscreen and disk_win32 parameters are platform-dependent
2013-02-03 12:14:29 +00:00
Volker Ruppert
2d552af7a2
fixed possibly wrong raw byte string after simply pressing the enter key
2013-02-02 16:52:54 +00:00
Volker Ruppert
0fbd1b3eff
now using new bx_param_string_c method sprint() in enhanced debugger
...
skip special value "none" in display library options
2013-02-02 16:02:08 +00:00
Volker Ruppert
b6f9c738fd
simplified code using new bx_param_string_c method sprint()
...
TODO: use sprint() in enhanced debugger
2013-02-02 08:49:55 +00:00
Volker Ruppert
17970857b8
added new bx_param_string_c methods isempty() and sprint()
...
- isempty() returns 1 if string length is 0 or string has special value "none"
- sprint() copies the formatted / converted string into a buffer
- use new methods in some parts of the code (TODO: win32 dialogs)
- check for the special value "none" to avoid failures
2013-02-01 19:13:58 +00:00
Volker Ruppert
8a15e3ae59
Removed disabled bochsrc parser code that checked the parameter enable flag.
...
Renamed symbol BOCHSRC_HIDDEN to CI_ONLY for parameters that appear in the CI,
but not in bochsrc. The parser no longer fails if this flag is set.
2013-01-30 16:43:58 +00:00
Stanislav Shwartsman
59f0445699
simplify dump .bochsrc for clock sync option
2013-01-28 20:49:24 +00:00
Stanislav Shwartsman
af65d7e953
remove parsing of deprecated vga_update_interval .bochsrc option - it will produce an error now
...
allow parsing of disabled options via param tree to avoid parse error
2013-01-28 20:29:12 +00:00
Stanislav Shwartsman
ec971d0ce8
add #VE exception specific VMCS fields into VMCS bitmap
2013-01-28 20:20:54 +00:00
Stanislav Shwartsman
863e1a0f8a
fixed compilation with debugger enabled
2013-01-28 18:26:56 +00:00
Volker Ruppert
ecd07ae76b
update generated files
2013-01-28 17:53:50 +00:00
Stanislav Shwartsman
64df073617
implemented virtualization exception feature
2013-01-28 16:30:25 +00:00
Stanislav Shwartsman
d38fce8218
preparation for future extension in translate_linear - I would like to return data to caller through tlbEntry
2013-01-27 19:27:30 +00:00