Stanislav Shwartsman
3b9ef78c0a
Compilation fix.
2006-06-21 16:28:06 +00:00
Stanislav Shwartsman
b794e6b54a
Indent changes
2006-06-20 17:17:46 +00:00
Stanislav Shwartsman
c88ce82156
Update CHANGES for coming 2.3 release
2006-06-20 17:05:57 +00:00
Stanislav Shwartsman
6468398104
Fixed APIC interrupt priority bug
2006-06-20 16:51:03 +00:00
Volker Ruppert
514952f78c
- enabled save/restore feature on Linux and Windows (for binary packages)
2006-06-18 07:28:55 +00:00
Volker Ruppert
cf6ec36040
- updated dependencies
2006-06-17 18:10:10 +00:00
Stanislav Shwartsman
070d782ec8
Move paddr_valid param of dbg_xlate_linear2phy method to return value.
...
This is much easier to use.
2006-06-17 12:09:55 +00:00
Volker Ruppert
dbfc8f42c8
- always use geometry detection for 'vmware3' images
...
- updated documentation for hard disk images
- user.dbk: added save/restore config option and removed obsolete one
2006-06-17 07:45:27 +00:00
Stanislav Shwartsman
f44190ed27
Comment most likely redundant invalid_prefetch_q
2006-06-16 20:08:03 +00:00
Volker Ruppert
43838a54fa
- file descriptor check fixed
2006-06-16 09:10:26 +00:00
Volker Ruppert
a2327441ca
- endianness fixed
2006-06-16 08:56:13 +00:00
Volker Ruppert
075ee17ac9
- geometry autodetection for 'sparse' mode hard disk images added
...
- store size of virtual disk in sparse header to simplify geometry detection/check
- enabling geometry autodetection causes a panic if not supported by image
2006-06-16 07:29:33 +00:00
Volker Ruppert
02fbf84630
- geometry autodetection for 'vmware3' mode hard disk images added
...
- simplified geometry detection code
- unsupported ATAPI commands now cause a BX_DEBUG message and no addtional
error code info (avoid flooding log file)
2006-06-15 09:44:37 +00:00
Stanislav Shwartsman
9269288319
Fix SR macros mis-use. Need to add assertion into bxlist_c and check that it has no 2 params with same name inside !
2006-06-14 16:44:33 +00:00
Stanislav Shwartsman
8ed8916ea9
Break to debugger on triple fault or panic (this time do it correctly)
...
Indent changes
2006-06-12 19:51:31 +00:00
Stanislav Shwartsman
49d7b4614f
Fixed another bug generator - duplication between descriptor type field and four descriptor cache bits
2006-06-12 16:58:27 +00:00
Stanislav Shwartsman
5a80bf51ca
Added more definitions
2006-06-11 21:55:39 +00:00
Stanislav Shwartsman
308521e7ce
Fixes in SYSCALL/SYSRET instructions
...
Use parse_selector to avoid code duplication
2006-06-11 21:37:22 +00:00
Stanislav Shwartsman
bfebb40326
Fixed bug report:
...
[ 1503978 ] movsb/w/d doesn't work when direction is stored
2006-06-11 18:03:45 +00:00
Volker Ruppert
c562a1243e
- fixed broken save/restore function for binary data
2006-06-11 18:03:11 +00:00
Stanislav Shwartsman
869f74b3ee
Reduce amount of dbg_get_cpu calls (I would like to remove this function) and use save/restore power in debugger
2006-06-11 16:40:37 +00:00
Stanislav Shwartsman
deab206378
More useful debug prints
2006-06-09 22:39:50 +00:00
Stanislav Shwartsman
6c3420a18b
Add debug prints before any #GP excepion which only possible to be generated
2006-06-09 22:29:07 +00:00
Stanislav Shwartsman
3cb38b3c45
Indent changes
2006-06-09 21:17:26 +00:00
Stanislav Shwartsman
fea9973570
Fixed failure when running 386 simulation
2006-06-09 21:14:25 +00:00
Stanislav Shwartsman
a4f1c8db33
Fix possible memory corruption in bx_debug
...
Fix 'examine' debugger command
Indent changes
2006-06-09 12:26:34 +00:00
Volker Ruppert
a695c1739c
- fixed compilation error
2006-06-09 12:01:13 +00:00
Volker Ruppert
f2f80f7542
- geometry autodetection for 'undoable' and 'volatile' mode hard disk images added
...
- a bunch of image size handling changes
* 'hd_size' contains the size of the virtual hard disk (for geometry check/detection)
* passing the size calculated from the geometry not needed in some cases
- indent mode changes
2006-06-08 20:32:00 +00:00
Stanislav Shwartsman
84124f29d2
Fix FPU tos value (found with save/restore logs browsing
2006-06-08 19:56:30 +00:00
Volker Ruppert
1be86095ab
- new function win32SaveState now called after pressing the "suspend" button
...
- save state handling removed from runtime dialog
- textconfig save state prompt improved
- textconfig: save state item removed from runtime menu
2006-06-08 17:02:52 +00:00
Volker Ruppert
21b1f8ce58
- prepared save state feature using the suspend button and textconfig code
...
rewritten to handle the new toolbar event (TODO: win32 and wx)
- suspend button: CR/LF to LF conversion
2006-06-07 19:40:15 +00:00
Stanislav Shwartsman
a71543ced4
Added new (currently not connected) button for save/restore feature.
...
Pressing the button currently prints to the log diagnostic message.
Vaolker, could you make it call save/restore dialog and remove the button inside config dialog ?
2006-06-06 22:11:09 +00:00
Volker Ruppert
d550d71e03
- register parameters for the wx debugger only if present (fixes memory leak)
...
- removed useless static variable 'counter'
2006-06-06 18:36:50 +00:00
Stanislav Shwartsman
1deddb9f0e
Fix linking problem with debugger enabled
2006-06-06 16:46:08 +00:00
Stanislav Shwartsman
453ffd1e17
Fix more ugly strdup calls
2006-06-05 19:06:36 +00:00
Volker Ruppert
2018bf864b
- save/restore parameter init rewritten using BXRS_* macros
...
- register parameters for the wx debugger only if present (fixes memory leak)
- removed useless static variable 'first_time'
2006-06-05 18:17:04 +00:00
Stanislav Shwartsman
c8c5772f44
1. Fix BX_INFO message in config.cc
...
2. In init.cc save and restore BX_CPU_THIS__PTR trace value, allows to enable/disable tracing using save/restore.
3. in iret.cc - cleanup3. in iret.cc - cleanup3. in iret.cc - cleanup
2006-06-05 17:33:25 +00:00
Stanislav Shwartsman
b66d5385f7
Added missed 'delete' for ask_format field in destructor
2006-06-05 16:47:55 +00:00
Stanislav Shwartsman
f31e03d4cb
More clear debug message
2006-06-05 16:38:43 +00:00
Stanislav Shwartsman
08d7e8e305
Fixed wrong assert_check failure found during x86-64 save/restore experiments
2006-06-05 16:36:56 +00:00
Volker Ruppert
61448beaa2
- geometry autodetection for 'growing' mode hard disk images added
...
- documentation updates
2006-06-05 08:00:21 +00:00
Stanislav Shwartsman
1aaf19cd09
Support for partial read/write in APIC space
2006-06-05 05:39:21 +00:00
Volker Ruppert
6730922952
- geometry autodetection for 'concat' mode hard disk images added
...
- removed all references to the old 'split-hd' feature (now: 'concat' mode)
- updated documentation for 'concat' images
2006-06-04 21:49:17 +00:00
Volker Ruppert
a4a2bdf333
- OnStateSave() updated to make it work like similar functions in win32dialog
...
and textconfig (TODO: simulation thread must be stopped after executing a
cpu instruction)
2006-06-04 14:16:31 +00:00
Volker Ruppert
a6b03f67fb
- bx_param_c: handle the member 'ask_format' the same way as 'label' and 'description'
...
- ask_yes_no(): build the 'ask_format' string from 'label' and 'description'
(for the textconfig prompt only)
2006-06-04 07:55:34 +00:00
Stanislav Shwartsman
fea15294b5
Fixed compilation error in init.cc
...
Move initialization of memory object to misc_mem.cc
2006-06-03 12:59:14 +00:00
Stanislav Shwartsman
7b5c1b6c3b
Update CHANGES
2006-06-02 19:27:05 +00:00
Stanislav Shwartsman
d477191800
Fixed WinPcap URL
2006-06-02 13:42:37 +00:00
Stanislav Shwartsman
d17eb99f76
fixed allocated physical memory limit check in memory.cc
...
Force eflags before saving them - register eflags using param handlers
2006-06-01 20:05:15 +00:00
Volker Ruppert
e55ec3e8e3
- yes/no dialog implemented in wx
2006-06-01 19:35:46 +00:00
Stanislav Shwartsman
02aa59886c
Fix APIC tmr/isr/irr registers reading problem
2006-06-01 14:05:23 +00:00
Stanislav Shwartsman
32a6e4c561
Added more debug messages to apic
2006-06-01 11:59:23 +00:00
Stanislav Shwartsman
b0cbaf70e0
Avoid double check for a20addr <= BX_MEM_THIS len
2006-05-31 20:23:58 +00:00
Volker Ruppert
005ca56f04
- prepared yes/no dialog in the siminterface and added message box for win32
...
- test case for ask_yes_no(): confirm power off
- textconfig: set the event return code when asking for a parameter
2006-05-31 20:12:43 +00:00
Stanislav Shwartsman
594b8cce47
Fixed segfault with bochs debugger but reported today
2006-05-31 17:20:52 +00:00
Stanislav Shwartsman
34061a2f22
Enable show-param support in debugger.
...
Fixed print_tree function to correctly print 64-bit data
2006-05-30 19:46:31 +00:00
Volker Ruppert
36d4ee68e4
- save state handling rewritten similar to the win32dialog behaviour
2006-05-30 18:01:51 +00:00
Volker Ruppert
013901f9f1
- wxdialog compilation fixed
2006-05-30 17:41:43 +00:00
Stanislav Shwartsman
4b7e7087aa
Handle more fields memory management insie the bx_param_c.
...
Remove more strdups
2006-05-30 17:01:27 +00:00
Volker Ruppert
a57d0a6aa9
- save_sr_param(): fixed 64-bit decimal output
...
- wx compilation fixes
2006-05-30 16:05:51 +00:00
Stanislav Shwartsman
880f558989
Regenerate lexer.c
2006-05-29 22:43:26 +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
cabc1d0181
Fixed minor bugs. Support for 64-bit save/restore values.
2006-05-29 19:57:12 +00:00
Stanislav Shwartsman
c5d3070a60
I once already did this change ... strange, how it could gone ...
...
Replace strtoul by strtoull to support 64-bit values
2006-05-29 19:56:29 +00:00
Volker Ruppert
0c4069d2f7
- folder selection dialog starts up with current directory selected
...
- continuing simulation after saving state now possible again (a message box
warns the user and asks what to do)
2006-05-29 18:52:46 +00:00
Stanislav Shwartsman
bc3cbb49b6
Write Virtual timer save/restore using macroses
2006-05-28 20:24:51 +00:00
Stanislav Shwartsman
5b912c26af
Fixed save/restore of segment registers for x86-64 mode
2006-05-28 19:18:29 +00:00
Stanislav Shwartsman
74308f7829
Add CMOS and DMA
2006-05-28 18:43:01 +00:00
Stanislav Shwartsman
bccab0ee1c
Clean and simplify save-restore params registration for more devices
2006-05-28 18:14:05 +00:00
Stanislav Shwartsman
bd22a4e39a
Revert format change for now (I won't work for me).
...
The problem that original '%x' also won't work ;(
Need to find solution to print Bit64u !
2006-05-28 17:22:35 +00:00
Stanislav Shwartsman
286b89d763
Several x86-64 MSRs were not-initilized !
...
Fixed small save-restore bug in dma.cc
First step to make save-restore code look better (only several files processed for example)
2006-05-28 17:07:57 +00:00
Volker Ruppert
6ca6b46203
- failure handling for save/restore added
2006-05-28 16:39:25 +00:00
Volker Ruppert
2b72920cb6
- updated save/restore stuff in the win32 runtime dialog
2006-05-28 08:49:20 +00:00
Stanislav Shwartsman
8ed9a2fa4e
Use MAX_LFV_ENTRIES constant
2006-05-27 21:44:40 +00:00
Stanislav Shwartsman
938d9c1cbb
Change format for 64-bit param print
2006-05-27 21:37:36 +00:00
Stanislav Shwartsman
42e3ebff54
Update CHANGES
2006-05-27 20:29:11 +00:00
Volker Ruppert
747d6f429b
- changes updated
2006-05-27 18:34:20 +00:00
Volker Ruppert
4e0dad5c2f
- removed unused save/restore declaration
2006-05-27 17:50:29 +00:00
Stanislav Shwartsman
0977bef9a2
Fix compilation err for x86-64
2006-05-27 16:05:30 +00:00
Stanislav Shwartsman
8b0df8e99b
Merge SAVE_RESTORE branch to CVS
2006-05-27 15:54:49 +00:00
Stanislav Shwartsman
7c1767d17a
Partial sync with save-restore
2006-05-27 14:02:34 +00:00
Stanislav Shwartsman
65e0fea773
functionally nothing changed
2006-05-26 17:24:36 +00:00
Stanislav Shwartsman
a4129e5341
Handle NULL_SEG_REG (no segment override) case in fetchdecode.cc
2006-05-24 20:57:37 +00:00
Stanislav Shwartsman
1acdb7f274
Simplify CPU loop and fix compilation error
2006-05-24 16:46:57 +00:00
Stanislav Shwartsman
c120d5dc70
remove unused and not required apic vars
2006-05-23 16:42:50 +00:00
Stanislav Shwartsman
6a22aa2328
Partially sync from save/restore branch
2006-05-22 21:29:54 +00:00
Stanislav Shwartsman
a010cfb8ca
Fix amount of XMM registers in non-x86-64 mode
2006-05-22 21:17:27 +00:00
Volker Ruppert
837d104770
- unicode fixes in the wx debugger
2006-05-22 16:35:03 +00:00
Stanislav Shwartsman
8b55085c76
Merge tss286 and tss386 segment descriptor cache fields to one structure
2006-05-21 20:41:48 +00:00
Stanislav Shwartsman
d00b2dec1d
LDTR and TR type check in assert_check
2006-05-21 19:31:23 +00:00
Stanislav Shwartsman
462e8c9447
Fix 'instrument stop' command
2006-05-21 16:48:05 +00:00
Stanislav Shwartsman
73e1266cbe
Add CR0 consistency checks and CS.L/CS.D consistency check
...
Optimize icache writestamps - 2x more space to decrement for page-write-stamp
2006-05-19 20:04:33 +00:00
Stanislav Shwartsman
274e17a1fc
Remove unneeded function
2006-05-18 20:16:15 +00:00
Stanislav Shwartsman
8db5723921
Wow, I forgot to commit this change for NullTimer fixes !
2006-05-18 19:57:11 +00:00
Stanislav Shwartsman
99406e5f56
revert last change in pc_system.cc
2006-05-18 18:08:30 +00:00
Michael Brown
26056d930c
The debugger can call activate_timer() on arbitrary timers, including
...
timer 0, so it should not be a fatal error. Attempting to register,
unregister or deactivate timer 0 is still an error.
2006-05-18 13:42:22 +00:00
Stanislav Shwartsman
8db1de7124
- Fixed several issues, each cause to NullTimer function never be called, the method is required for icache correct functionalit
...
- Speed-up icache by correct purging of Icache entries
- Several new assertions for timers, to prevent bugs in future
2006-05-16 20:55:55 +00:00
Stanislav Shwartsman
7acb46cd3d
Small cleanup in cpu.cc
2006-05-16 16:47:00 +00:00
Stanislav Shwartsman
16713b309d
PALIGNR fixed
2006-05-16 16:20:26 +00:00
Stanislav Shwartsman
7c2c9c41e8
Remove unused CPU vars
2006-05-15 18:00:55 +00:00
Stanislav Shwartsman
26bb9e2716
Enable SEP by default for PII processor (P6+MMX)
2006-05-15 17:40:16 +00:00
Volker Ruppert
817b85045e
- fixed sharing of growing harddisk images between Windows and Linux caused by
...
different data alignment. Added a reserved 32-bit field and changed header
version to 2.0. The hdimage code can still handle version 1.0 images.
2006-05-14 21:15:33 +00:00
Stanislav Shwartsman
8a925c1522
Removed file until permission from ASUS (again)
2006-05-14 17:42:06 +00:00
Volker Ruppert
6a299e61a7
- get rid of the unused description field of shadow bool and data parameters
...
(new/modified constructor)
- new constructor for bx_list_c objects without title
- shadow parameter bitmasks fixed
- functions bx_sr_before_save_state() and bx_sr_after_restore_state() prepared
- ne2k.cc: reset behaviour fixes
- sb16: some variable types changed
2006-05-14 15:47:37 +00:00
Volker Ruppert
0a953ffa75
- updated CVS server name (new SF CVS infrastructure)
2006-05-14 09:16:29 +00:00
Stanislav Shwartsman
f4c7b4074e
Support for x86-64 in x86 debugger (DR0-DR7)
2006-05-13 12:49:45 +00:00
Stanislav Shwartsman
9a32d0e98f
Optimize debug registers handling
2006-05-13 12:29:12 +00:00
Stanislav Shwartsman
fc799ab623
FetchDecode tables are constant. Marking them const implicitly will help to compiler/linker in optimization.
2006-05-12 18:03:26 +00:00
Stanislav Shwartsman
fe644dfcbf
- Code cleanup, remove x86-64 code from functions which cannot be called from x86-64
...
- Fix PANIC multiple SSE prefix decoding (fetchdecode and disasm)
- More Bit32u -> bx_phy_address convert
- Lazy flags optimization
2006-05-12 17:04:19 +00:00
Stanislav Shwartsman
b0e49a9a05
Warn if somebody used BSWAP with 16-bit opsize (behavior undefined)
2006-05-07 20:56:40 +00:00
Stanislav Shwartsman
91ada6c72c
Separate RepeatSpeedups code in io.cc to stand-alone CPU methods
...
FestRepINSW and FastRepOUTSW similar to that is done in string.cc
Done to simplify the code, it was just impossible to understand it.
2006-05-07 20:45:42 +00:00
Stanislav Shwartsman
784b6dcc05
Update recent CPU CHANGES
2006-05-07 19:19:55 +00:00
Stanislav Shwartsman
4d1a609c8c
BSWAP 16-bit mode not exists, correctly disasm this case
2006-05-07 19:12:56 +00:00
Stanislav Shwartsman
20b14aefa6
Fix in BSWAP 64-bit mode - allow to use additional R8-R15 registers
...
Also fixed code duplication story with BSWAP instruction
2006-05-07 18:58:47 +00:00
Stanislav Shwartsman
d69eba6c07
Split in/out instructions based on operand size
2006-05-07 18:27:36 +00:00
Volker Ruppert
96463c44d4
- APM cpu idle function fixed (from qemu)
2006-05-07 10:40:53 +00:00
Volker Ruppert
8f16594a42
- unicode fix for the BX_SHOW_IPS feature
2006-05-07 09:49:16 +00:00
Volker Ruppert
a419ec3423
- fixed busmouse usage (wrong parameter)
2006-05-07 09:34:51 +00:00
Stanislav Shwartsman
ae6c38b202
Style and TAB2SPACE changes
2006-05-06 15:19:57 +00:00
Stanislav Shwartsman
767fb77ebd
Fully handle segment limits inside prefetch method.
...
1. Should speed up the simulation (eliminate seg.limit check per every instruction exec)
2. Should help for DT (h.johansson request)
2006-05-04 19:54:25 +00:00
Volker Ruppert
9340f3b3f8
- partial sync with BRANCH_SAVE_RESTORE_3 (hardware save/restore not present yet)
...
* changed data format of text files for save/restore (looks like C/C++ structures,
similar to the format used in old save/restore branches)
* don't set the initial value of shadow bool parameters
* don't set the initial value of bool parameters twice
* cpu/init.cc: missing #undef added
* ne2k.cc: variable tx_timer_active was never set to 1 (type now bx_bool)
* floppy.cc: missing initialization of the 'eot' array in reset() added
* pic.h: type of member 'byte_expected' changed to Bit8u
* pit_wrap.h: unused members removed
2006-05-01 18:24:47 +00:00
Stanislav Shwartsman
f93ab35357
Flush TLB for all CPUs when memory mapping information changed by system (A20 change, PAM write or similar events)
2006-04-29 17:21:49 +00:00
Stanislav Shwartsman
6a0d15ee31
Veto direct write to the 0x000C0000 to 0x000EFFFF area
2006-04-29 16:55:22 +00:00
Stanislav Shwartsman
199c987ee3
Return back (modified) dbg_is_end_instr_bpoint method in cpu.cc
2006-04-29 16:14:47 +00:00
Stanislav Shwartsman
dc8652b958
Added real i440FX BIOS image working well with Bochs
2006-04-29 09:34:26 +00:00
Stanislav Shwartsman
2889ed190c
Removed icount guard for debugger. Implement STEPN debugger command using CPU_LOOP method capabilities
2006-04-29 09:27:49 +00:00
Stanislav Shwartsman
1a0b7ee1e3
I want to replace debugger ICOUNT guard by existent cpu_loop funtionality, first step to do that ...
2006-04-29 07:12:13 +00:00
Stanislav Shwartsman
510cbe02e2
Make fetchInstruction INLINE according to hjjhansson patch
2006-04-28 16:45:29 +00:00
Stanislav Shwartsman
003c2f59e6
Added missed CVS header to several files
2006-04-27 15:11:45 +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
bb1116e569
Fixed bx_cpu_c::MOVD_EdVd () always UDs
...
reported in mailing list
2006-04-27 06:09:56 +00:00
Stanislav Shwartsman
891b556fca
Remove duplicate line of code
2006-04-26 16:15:45 +00:00
Stanislav Shwartsman
798c90ee85
Fixed comments
2006-04-26 14:05:28 +00:00
Michael Brown
0944f2cd3e
Update to cope with bochs API changes
2006-04-26 00:04:49 +00:00
Michael Brown
d6a0708209
Allow for opening of persistent tuntap devices, using a
...
"/dev/net/tun:tap0" syntax for ethdev.
2006-04-25 22:52:38 +00:00
Michael Brown
685b1da64e
Fix compilation
2006-04-25 15:59:20 +00:00
Stanislav Shwartsman
4b86ae3917
Added new ar_byte function, might be used to fix code duplication and for save-restore
2006-04-25 15:35:26 +00:00
Stanislav Shwartsman
b2408c2fca
Added assertion check CPU method, could be used for "debug mode" run with checking various assumptions before each instruction emulation
2006-04-25 14:42:57 +00:00
Stanislav Shwartsman
1939544bf8
move get_descriptor_l/get_descriptor_h methods to general cpu methods (were debugger only)
2006-04-23 17:16:27 +00:00
Stanislav Shwartsman
d77c4d27cd
Update recent CPU changes
2006-04-23 16:21:51 +00:00
Stanislav Shwartsman
63dc4d4e10
Fixed CR4 GP(0) condition (patch by no_mayl in mailing list)
2006-04-23 16:11:16 +00:00
Stanislav Shwartsman
cc29f3d94b
Remove duplicate ';'
2006-04-23 16:03:46 +00:00
Stanislav Shwartsman
44afbdcd82
Implemented FXSAVE/FXRSTOR for FOO/FIP/FDP fields
2006-04-23 16:01:34 +00:00
Stanislav Shwartsman
ff02bc8ef0
Fixed:
...
With cvs snapshot 2006-04-09, --enable-debugger does not show the executed instructions anymore after being enabled via iodebug or "trace on".
2006-04-23 15:37:25 +00:00
Volker Ruppert
49a642ef39
- forward PIRQ register changes to the I/O APIC inputs 16...19 if present
2006-04-23 08:46:07 +00:00
Volker Ruppert
52c4666465
- partial sync with BRANCH_SAVE_RESTORE_3 (hardware save/restore not present yet)
...
* fixed minimum limit of signed variable types
* don't set the initial value of shadow parameters
* fixed range check for shadow parameters
* added support for setting the value base (decimal/hex) of numeric shadow parameters.
The text format hex number is now initialized in the constructor
* added missing newline after filename for binary data
* fixed data size of 64-bit shadow parameters
* fixed save/restore output format of numeric parameters (signed/unsigned/64-bit)
* cpu/init.cc: fixed macro name and added missing #undef line
2006-04-22 18:14:55 +00:00
Volker Ruppert
eb2104d0de
- parameters for the wx debugger moved to a separate subtree to avoid conflicts
...
with the proposed save/restore feature
- fixed a warning in the cpu parameter handler for the wx debugger
2006-04-16 10:12:32 +00:00
Volker Ruppert
96b101e60d
- the print_tree() function now reports binary data (for save/restore) and unknown
...
parameter types
2006-04-16 09:29:02 +00:00
Volker Ruppert
36498746c1
- some more work for the save/restore feature in the plugins and devices code
...
* register_state() will be called after init() and registers the device members
required for save/restore
* before_save_state() can do some work before the device state is saved by the
siminterface
* after_restore_state() can do some work after the device state has been
restored (updating dependant stuff)
2006-04-15 17:03:59 +00:00
Volker Ruppert
14107f56fa
- some more work for the save/restore feature in the siminterface
...
* new parameter object type bx_shadow_data_c for binary arrays (e.g. system
and video memory, CMOS RAM, PCI config space)
* save_state() completed and restore_hardware() implemented
* get_sr_root() returns the list with the save/restore subtree
2006-04-15 14:05:18 +00:00
Volker Ruppert
a8bfc2d2bf
- fixed memory leaks
2006-04-14 13:27:17 +00:00
Volker Ruppert
86a0aada3b
- save support for user-defined options added
2006-04-14 08:07:24 +00:00
Volker Ruppert
bbef36f5c1
- save/restore functions now available in wx
...
- config file read/save functions fixed
2006-04-12 20:51:24 +00:00
Stanislav Shwartsman
663eed8cd2
Extend debug message for not-supported APM command register
2006-04-10 19:43:47 +00:00
Stanislav Shwartsman
d972e4a4b7
Fixed CR3 restore in RSM instruction
...
Added HALT state indication (actually make existant one working for single CPU)
2006-04-10 19:05:21 +00:00
Stanislav Shwartsman
df70fa0a2f
Indent changes
2006-04-10 19:02:30 +00:00
Volker Ruppert
0396a9d86f
- save state function now supported on win32 in the runtime dialog
...
- for the BrowseDir() function Bochs for win32 needs to be linked with SHELL32.DLL
(currently used for the save/restore support only)
- save/restore support symbol name changed
2006-04-09 13:55:55 +00:00
Volker Ruppert
841c802e6b
- save/restore of log options implemented (using bochsrc style)
...
- log options must be restored after initializing all devices
- menu items and descriptions for save/restore updated
- TODO: implement access to save/restore functions for win32 and wx
2006-04-09 09:05:30 +00:00
Volker Ruppert
c7c1d25175
- execute save/restore only if the path is != 'none'
...
- save/restore menu items and description now shows the current capabilities
- type of default value for ask_string() changed to 'const char'
2006-04-08 16:25:52 +00:00
Stanislav Shwartsman
e7565760f7
Fixed compilation error when DEBUGGER is enabled
2006-04-07 20:53:39 +00:00
Stanislav Shwartsman
45f30f0a4c
some code written to enter CPU to shutdown state.
...
finally the shutdown handling should be done exactly as in VmWare - the GUI should ask user if the CPU should reset and go to HLT/IF=0 if user choosed to stay in shutdown mode.
CPU configure option reset-on-triple-failt should be extended to shutdown-reset=0|1
small code cleanups and fixes
2006-04-07 20:47:32 +00:00
Volker Ruppert
97520ff814
- save/restore of the configuration implemented (in bochsrc format)
...
- don't load another config file if the restore flag is set
- disabled restore_hardware() for now (will be enabled when save/restore is
complete and stable)
2006-04-07 12:49:50 +00:00
Stanislav Shwartsman
6aadcd5208
Started implemntation of APM control and status regs
2006-04-07 10:48:54 +00:00
Volker Ruppert
74c8c05d22
- prepared save/restore feature
...
- some siminterface types changed
2006-04-06 20:42:51 +00:00
Stanislav Shwartsman
e15980c348
Specify new depracated options in configure script
2006-04-06 19:14:34 +00:00
Stanislav Shwartsman
7a1d0a53d7
Small cleanup
2006-04-06 18:45:54 +00:00
Stanislav Shwartsman
d88b5c91d8
Update CHANGES
2006-04-06 18:43:02 +00:00
Stanislav Shwartsman
03eac64013
Added decoding of new SSE4 instructions (recently published in Intel docs)
...
At least CPUID detects them correctly
The code is never tested (still) ! (but should work fine)
2006-04-06 18:30:05 +00:00
Stanislav Shwartsman
c8cc6bcd14
Remove code duplication from SMM code
2006-04-06 16:47:29 +00:00
Stanislav Shwartsman
41204ede1a
Fixed compilation err with debugger ON
2006-04-06 16:43:36 +00:00
Stanislav Shwartsman
c7773adac4
Norhing changed in funtionality, just make the file significantly smaler by removing extra spaces
2006-04-05 20:54:30 +00:00
Stanislav Shwartsman
9dc1790f07
Simplify and optimize fetchdecode methods.
...
Now fetchdecode is simpler to understand and easier to modify, for example to support 3-byte opcodes (SSE4)
2006-04-05 20:52:40 +00:00
Stanislav Shwartsman
7cc921d1df
Prepare configure support for SSE4 implemntation (coming soon)
...
Rename _GAME configure macro to _GAMEPORT
2006-04-05 18:49:35 +00:00
Stanislav Shwartsman
b9dedc8412
Added missed file from prev commit (waiting for moderator approval, message is too big)
...
Summary changes:
- Fixed critical ICACHE bug from one of the recent commits
- Complete preliminary SMM implemntation, SMI still PANICs but 'alwayscont' should work fine
- Correctly decode, disassemble and execute 'XCHG R8, rAX' x86-64 instruction
- Correctly decode, disassemble and execute multi-byte NOP 0F F1 opcode
- Fixed ENTER and LEAVE instructions in x86-64 mode
- Disasm SSE4 instructions
- Rename PNI->SSE3 everywhere in the code
2006-04-05 17:44:04 +00:00
Stanislav Shwartsman
f8c3968d42
Changes list made after CVS service crash:
...
- Fixed critical bug in CPU code added with one of the prev commits
- Disasm support for SSE4
- Rename PNI->SSE3 everywhere in the code
- Correctly decode, disassemble and execute 'XCHG R8, rAX' x86-64 instruction
- Correctly decode, disassemble and execute multi-byte NOP 0F F1 opcode
- Fixed ENTER and LEAVE instructions in x86-64 mode
- Added ability to turn ON instruction trace, only GUI support is missed.
Instruction trace could be enabled if Bochs was compiled with disasm
- More changes Bit32u -> bx_phy_address
- Complete preliminary implementation of SMM in Bochs, SMI is still PANICs but if you press 'continue' everything should work OK
- Small code cleanup
- Update CHANGES and user docs
2006-04-05 17:31:35 +00:00
Stanislav Shwartsman
c2455e7c1e
Fixed warning
2006-04-05 17:23:51 +00:00
Volker Ruppert
05280a1eba
- fixed handling of BIOS extensions with base address within the 0xe0000 segment
...
- fixed a warning
2006-04-05 16:58:22 +00:00
Volker Ruppert
ba597401a2
- user-defined config option support implemented
2006-04-05 16:05:11 +00:00
Volker Ruppert
6ce71008f6
- fixed submenu (child list) handling in do_menu()
...
- base parameter for do_menu() is now obsolete
2006-03-29 20:31:51 +00:00
Volker Ruppert
8d178b107b
- prepared user-defined config option support
2006-03-29 19:27:31 +00:00
Stanislav Shwartsman
a6c3ffeeb5
Fixed compilation error
2006-03-29 19:16:24 +00:00
Stanislav Shwartsman
ae2ea87c43
More fixes for SMM
2006-03-29 18:08:13 +00:00
Stanislav Shwartsman
b271bcd9c6
Fixed compilaion problem on Linux gcc 3.3.4
2006-03-28 21:09:04 +00:00
Stanislav Shwartsman
4fd9bd53c3
Change Bit32u -> bx_phy_address in memory
2006-03-28 16:53:02 +00:00
Stanislav Shwartsman
42aac37624
Fixed complilation error
2006-03-27 20:09:37 +00:00
Stanislav Shwartsman
da3d26d7f4
Preliminary implemntation of SMM save statei
...
Fixed fetchModeMask for load32bitOsStack
2006-03-27 18:02:07 +00:00
Stanislav Shwartsman
c7d142200f
Implement SMRAM conrol register in i440fx chipset and all its functionality in memory class
2006-03-26 22:15:07 +00:00
Stanislav Shwartsman
f3ac069c90
initialize new BX_MEM_C member
2006-03-26 19:48:54 +00:00
Stanislav Shwartsman
b8be848943
Use access_type param in getHostMemAddr, less efficient but no copy-paste at least
2006-03-26 19:39:37 +00:00
Stanislav Shwartsman
5c3fba4399
Support access to SMRAM in memory object
...
Cleanup in CPU code
2006-03-26 18:58:01 +00:00
Volker Ruppert
6cbdf98b38
- header of log options table is now always visible
...
- removed unnecessary spaces after function names
2006-03-26 15:52:31 +00:00
Volker Ruppert
a63349eac5
- fixed cdrom capacity of ISO image files
...
- ATAPI cdrom read commands: starting block number needs to be checked
2006-03-26 00:38:58 +00:00
Stanislav Shwartsman
6ceac4c788
Fixed compilation error reported in #SF bug tracker
2006-03-25 18:04:15 +00:00
Volker Ruppert
26c67216ed
- check TC on every DMA cycle (partial sector transfers now supported)
2006-03-25 12:14:13 +00:00
Stanislav Shwartsman
03a5c22a64
Fixed debugger help command
2006-03-24 21:01:44 +00:00
Volker Ruppert
4ca0b26b20
- fixed compile error on FreeBSD
2006-03-23 18:28:40 +00:00
Stanislav Shwartsman
bc4ca51055
Fixed disasm of 'enter' instruction in AT&T mode
2006-03-23 17:43:39 +00:00
Stanislav Shwartsman
f347ab97bf
Fixed CALL/JMP far through call gate 64
...
Decode SWAPGS and RDTSCP instructions
Indent changes in fetchdecode
2006-03-22 20:47:11 +00:00
Volker Ruppert
912b07fde8
- fixed a memory leak
2006-03-22 18:06:16 +00:00
Volker Ruppert
6048821249
- fixed a warning and some remaining unicode issues
...
- removed unnecessary spaces after function names
2006-03-19 15:35:20 +00:00
Volker Ruppert
2439c65acf
- wxWidgets unicode fixes completed
2006-03-19 09:24:10 +00:00
Volker Ruppert
6106f1c905
- some more fixes for unicode support (wxT("string") conversion)
2006-03-18 16:30:52 +00:00
Stanislav Shwartsman
a52301c56c
Remove the patch, it was successfully merged to CVS
2006-03-16 20:38:32 +00:00
Stanislav Shwartsman
d6f85c12f6
NMI support inside the CPU.
...
Added two functions to query NMI and SMI from Bochs debugger.
In future they could be used for generating NMI or SMI by user request using GUI button (could be implemented separatelly later and under configure-time or .bocshrc option)
2006-03-16 20:24:09 +00:00
Stanislav Shwartsman
a64b16391d
Remove unused vars
2006-03-15 17:57:11 +00:00
Volker Ruppert
d456b8ceb4
- fixes for unicode support in wx.cc (grabbed from FC5 patch for Bochs)
2006-03-14 18:13:08 +00:00
Stanislav Shwartsman
e85a90a720
Remove cpu.h -> devices.cc dependancy, kill_bochs_request moved from CPU to bx_pc_system
...
Small Icache simplification and speedup
2006-03-14 18:11:22 +00:00
Volker Ruppert
2e144d5862
- changed some function argument and return types from char * to const char *
...
(grabbed from patch included in FC5 Bochs package for wxWidgets 2.6.x)
2006-03-13 18:55:53 +00:00
Volker Ruppert
7997876711
- implemented GTK2+ detection for wxGTK (patch by Guillem Jover <guillem@debian.org>)
...
- selection of required wx libraries to link only works with version 2.6.x
2006-03-13 17:18:33 +00:00
Volker Ruppert
96a47a4055
- fixed parameter check before calling the "Show CPU" dialog
...
- wxBochs needs to be linked with the wxWidgets core and base libraries only
2006-03-12 15:13:03 +00:00
Volker Ruppert
9a1c64721e
- fixed parameter check before calling the "Show CPU" dialog
...
- wxBochs needs to be linked with the wxWidgets core and base libraries
2006-03-12 15:11:54 +00:00
Volker Ruppert
4e4df52109
- added new function bx_stop_simulation() to stop the Bochs simulation thread
...
(used by wx). Now the siminterface no longer depends on cpu.h
2006-03-11 22:40:32 +00:00
Volker Ruppert
568b41c659
- re-implemented LogOptionsDialog based on ParamDialog
2006-03-11 10:00:56 +00:00
Volker Ruppert
9699eaeca4
- added SMP support in save/restore parameter subtree
...
- TODO: implement tab window control for SMP CPUs in wx "show cpu" dialog
2006-03-09 20:16:17 +00:00
Stanislav Shwartsman
7ba6e5a2bb
Forgot to check-in main.cc
...
But anyway - this is more clear fix which also fixes code duplication
2006-03-08 20:10:29 +00:00
Stanislav Shwartsman
4c3f229ff1
This should fix problem with non-PCI ne2k device
2006-03-08 19:28:37 +00:00
Stanislav Shwartsman
3ec2e9e7de
Fixed segfault in SMP mode
2006-03-08 19:27:56 +00:00
Stanislav Shwartsman
d74f1b9a43
Fixed bug in ENTER instruction in long mode
2006-03-08 18:21:16 +00:00
Volker Ruppert
5597fc9cf3
- fixed wx "Show CPU" dialog to make it work with the new parameter handling
...
- fixed CPU register names
- removed old parameter handling (bx_id, BXP_* symbols, param_registry, etc.)
2006-03-08 18:10:41 +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
Volker Ruppert
575a17e50f
- converted cpu state parameters to param-tree style
...
- removed old-style parameter init methods
- NOTE: the wx CPU registers dialog (debugger) currently reports nothing
- TODO: fix wx CPU registers dialog, remove remaining bx_id related stuff
2006-03-07 20:32:07 +00:00
Stanislav Shwartsman
242c2fa51c
Style and indent changes
2006-03-07 18:16:41 +00:00
Volker Ruppert
c66191bd13
- prepared save/restore subtree to make the conversion of the cpu and keyboard
...
parameters of the wx debugger possible
- started rewrite of shadow parameters and converted keyboard parameter stuff
- test function print_tree() now shows raw byte strings correctly
- removed unnecessary spaces
2006-03-07 17:54:27 +00:00
Stanislav Shwartsman
da0b2ac377
Update dependencies for iodev and root project folders.
...
Fixed compilation errors for 386 case
Added file header for slowdown_timer.h
2006-03-06 22:32:03 +00:00
Stanislav Shwartsman
7b6c2587a9
Now devices could be compiled separatelly from CPU
...
Averything that required cpu.h include now has it explicitly and there are a lot of files not dependant by CPU at all which will compile a lot faster now ...
2006-03-06 22:03:16 +00:00
Stanislav Shwartsman
c0aeb1b073
Substitute NULL to BX_CPU_C parameter instead of BX_CPU(0) for memory ops originated by devices
2006-03-06 19:23:13 +00:00
Volker Ruppert
0c573d15cf
- fixed compile error (missing typecast)
...
- fix for parameter objects without a parent list
- textconfig: logfile options moved to a submenu
- obsolete parameter init methods removed
2006-03-06 18:50:55 +00:00
Stanislav Shwartsman
d09e644f45
Memory access handling explanation by Brendan
2006-03-06 06:32:03 +00:00
Volker Ruppert
dd7e08de99
- remaining config options and special menus added to parameter tree
...
- parameter tree structure updated (TODO: should be moved to development.dbk)
- code cleanup: bx_options stuff and obsolete parameter access methods removed
- TODO: rewrite of shadow parameter stuff (for subtree "save_restore")
2006-03-05 10:24:29 +00:00
Stanislav Shwartsman
fc0894bbe1
Enable A20 after system reset
2006-03-04 16:58:10 +00:00
Volker Ruppert
dbe0918d59
- text snapshot check option added to parameter tree
...
- GDB stub options are now regular parameters
- syntax of text_snapshot_check bochsrc directive changed
2006-03-04 12:43:47 +00:00
Stanislav Shwartsman
93898e11b2
Missed }
2006-03-04 09:24:31 +00:00
Stanislav Shwartsman
324d75e749
Fix another broking change
2006-03-04 09:22:55 +00:00
Volker Ruppert
e1b42d183a
- sb16 options rewritten to a parameter tree
...
- sb16 parameters stored in the device class and runtime parameter handler added
- wx: ParamDialog can currently handle only dependency lists of bool parameters
correctly (TODO: add support for numeric parameters)
2006-03-03 20:29:50 +00:00
Stanislav Shwartsman
b3420e7e56
Only indent and style changes
2006-03-03 20:15:07 +00:00
Stanislav Shwartsman
7ed117f0e0
Add 8-byte memory access support, all 8-byte memory accesses executed byte-byte before.
2006-03-03 12:55:37 +00:00
Stanislav Shwartsman
e297df457a
Roll back the try to move Local APIC memory access to CPU.
...
It was fast and fine but had serious correctness problems with RMW apic access
2006-03-02 23:16:13 +00:00
Stanislav Shwartsman
6d513ed6f2
Fix indent corruption
2006-03-02 20:17:54 +00:00
Volker Ruppert
dafe33fc84
- network options rewritten to a parameter tree
...
- disable usb options if not compiled with usb support
- usb and network dependency list created with menu->clone()
- load usb plugin only if at least one hub is present
- remaining options prepared for rewrite
- proposed parameter tree updated
2006-03-02 20:13:14 +00:00
Stanislav Shwartsman
6c392e7f3f
optimize apic code
2006-03-02 20:09:21 +00:00
Stanislav Shwartsman
7cc8bc0836
Clean and optimize
2006-03-02 17:39:10 +00:00
Stanislav Shwartsman
5fad793989
move local apic handling to the access_linear function for the memory class.
...
speedup the whole simulation by 2% !
2006-03-01 22:32:24 +00:00
Volker Ruppert
62cfd57854
- wx: fixed possible crash if parent parameter is NULL
...
- network options prepared for rewrite
- ata device enum type option handling simplified
2006-03-01 21:24:20 +00:00
Volker Ruppert
9196541d58
- fixed USB runtime parameter names
2006-03-01 17:56:32 +00:00
Volker Ruppert
154702eaca
- serial, parallel and usb options rewritten to a parameter tree
...
- bx_init_options(): local variables cleanup
- hide floppy devtype parameter (floppy media type change support not yet complete)
- wx: menu order changed
- keyboard.cc: removed obsolete FIXME
- proposed parameter tree updated
2006-03-01 17:14:36 +00:00
Stanislav Shwartsman
9b3be40d88
Improve OS/2 hack - save full segment (including hidden part) and not only selector value
2006-02-28 20:29:03 +00:00
Stanislav Shwartsman
a527b2cfca
first smm - implement cpu state when switching to SMM
...
smm coming soon
fixed code duplication in init.cc
2006-02-28 19:50:08 +00:00
Stanislav Shwartsman
55ceecf79b
Small optimization in icache page-write-stamp
2006-02-28 17:47:33 +00:00
Volker Ruppert
fbd61d0a00
- fixed memory leak in the parameter list method clone()
...
- removed useless parameter list method set_options() (usage caused memory leak)
2006-02-28 16:19:29 +00:00
Volker Ruppert
a31ba3c195
- simple string dialog box uses the label of the parameter if present
2006-02-28 15:48:59 +00:00