Dreg
3cd6a92c8e
improved info gdt/ldt support for 64/32 entries ( #36 )
...
improved info gdt/ldt support for 64/32bit entries
2022-08-22 08:49:04 +03:00
Dreg
104d169ef8
add new dbg command loadmem, load bytes from file to memory (laddr) ( #34 )
...
* add dbg bx_dbg_write_linear
* add dbg bx_dbg_loadmem_command
load bytes from file to memory
2022-08-22 08:17:57 +03:00
Satoshi Tanda
30ef7f4842
Fix dbg_xlate_linear2phy
for NPT ( #30 )
2022-08-22 07:20:47 +03:00
Stanislav Shwartsman
2f45913397
extend setpmem command to support 8-byte values to write ( #35 )
...
Co-authored-by: Stanislav Shwartsman <sshwarts@users.sourceforge.net>
2022-08-21 16:48:10 +03:00
Dreg
1eb1a8d641
add dbginfo support for 64 bit entries (LDT,GDT) long mode ( #33 )
2022-08-21 11:06:03 +03:00
Stanislav Shwartsman
fac15a7d03
updates to MTF code:
...
if VMEntry delivered an event of event happen right after VMEntry - MTF becomes pending immediatelly
2022-08-16 21:37:36 +03:00
Stanislav Shwartsman
b946570838
implemented VMX Monitor Trap Flag handling
2022-08-16 21:17:05 +03:00
Stanislav Shwartsman
180c1f09d5
fixed compilation
2022-08-14 21:18:25 +03:00
Stanislav Shwartsman
c9d8413422
allow TLB caching of SPP paging writes
...
it is possible that SPP-protected subpage block is allowing write but all others are not.
the TLB entry cannot be cached as writeOK based on SPP subblock check
2022-08-14 21:09:18 +03:00
Stanislav Shwartsman
97a2cdd85f
update VMEXIT reasons according to published docs
...
update list of trap-like VMEXITs
2022-08-13 23:25:10 +03:00
Stanislav Shwartsman
df849619be
more SPP limitations
2022-07-31 22:07:16 +03:00
Stanislav Shwartsman
f052c0f5b2
- VMX: Implemented missing SPP Misconfiguration condition (odd bits of SPP PTE entry are reserved)
...
- VMX: Fix SPP walk and VMCS access memory type to WB (match memory type listed in IA32_VMX_BASIC MSR)
2022-07-31 19:57:38 +03:00
Stanislav Shwartsman
13aa25919a
Revert "do not ignore MSR=0 even if ignore_bad_msrs is set"
...
MSR=0 is valid MSR (used for Machine Check Architecture)
This reverts commit cf03c00ef0
.
2022-07-31 18:47:13 +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
cf03c00ef0
do not ignore MSR=0 even if ignore_bad_msrs is set
2022-07-30 19:53:10 +03:00
Stanislav Shwartsman
d576eaa7c1
list in debug CR4 more already published bits (UINTR)
...
fix debug print of XCR0
2022-07-30 19:15:32 +03:00
Stanislav Shwartsman
3f65841714
use boolean constants true/false instead of 0/1 ( #26 )
...
* use boolean constants true/false instead of 0/1
* fix code comment
Co-authored-by: Stanislav Shwartsman <sshwarts@users.sourceforge.net>
2022-07-30 18:38:22 +03:00
Stanislav Shwartsman
0f9aec0e1a
Merge branch 'master' of https://github.com/stlintel/Bochs
2022-07-30 15:43:25 +03:00
Stanislav Shwartsman
2093c2b1a3
allow 'Save guest MSR_PERF_GLOBAL_CTRL on VMEXIT' VMX control
...
at least fake it
2022-07-30 15:43:09 +03:00
Stanislav Shwartsman
f44f4ae753
MBE (Mode Based Execution Control) emulation ( #22 )
...
* MBE (Mode Based Execution Control) emulation
2022-07-30 15:26:47 +03:00
Stanislav Shwartsman
fb09790846
dos2unix to all files
2022-07-30 14:31:16 +03:00
Stanislav Shwartsman
e32d536abe
added ability to select memory block size configurable ( #25 )
...
very large memory configurations require large memory block (or very large amount of blocks)
2022-07-30 13:56:09 +03:00
Stanislav Shwartsman
8afd14972e
convert many consts from #define to enum or const variables ( #23 )
2022-07-27 23:20:47 +03:00
Stanislav Shwartsman
94503e7a0b
cpu/vmx definitions ( #20 )
...
* update vmx.h with recently published definition
* update actions after conflicts
2022-07-27 20:51:25 +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
Satoshi Tanda
88f881c6d5
Fix that the INIT signal remains pending even after delivery of VM-exit/#VMEXIT(INIT) ( #16 )
...
* Clear pending INIT signal
When the INIT signal is translated into corresponding VM-exit/#VMEXIT,
the signal should no longer be marked as pending. Otherwise, the signal
would be (incorrectly) delivered again.
* Remove trailing space and fix an incorrect indent
2022-07-24 07:14:01 +03:00
Satoshi Tanda
0ae5e67894
Fix that the blocking by SMI bit maybe set when a VM-exit ends outside SMM ( #15 )
...
* Fix that the blocking by SMI bit is set
The blocking by SMI bit of the guest interruptibility state VMCS should
not be set unless the VM-exit ends in SMM. This only happens under the
dual-monitor treatment, which is not implemented in Bochs.
* Remove trailing whitespaces
2022-07-23 19:36:31 +03:00
Dreg
112afe5693
Add "bt" command to help ( #9 )
2022-07-18 13:10:22 +03:00
Dreg
35277e61f5
add string argument for instrument command ( #8 )
2022-07-18 10:25:35 +03:00
Stanislav Shwartsman
a8ef631a39
define and mention newly disclosed CPUID bits ( #7 )
...
Co-authored-by: Stanislav Shwartsman <sshwarts@users.sourceforge.net>
2022-07-17 18:45:36 +03:00
Stanislav Shwartsman
c25b9d3509
fixing coding style in bios source files ( #6 )
...
Co-authored-by: Stanislav Shwartsman <sshwarts@users.sourceforge.net>
2022-07-17 18:16:44 +03:00
Dreg
d861786fd3
port instrument/examples to current version
2022-07-16 14:30:00 +02:00
ughoavgfhw
b8f38eb8d3
Fix two bugs around monitor/mwait
...
MONITOR relies on tickle_read_virtual to set the physical address, but it was
only doing so on TLB miss. So a MONITOR with a TLB hit would arm the most
recently accessed address instead of the requested one.
TLB invalidations disarmed the monitoring range, but didn't wake a CPU that
had already MWAIT-ed. Any instruction that invalidated TLB entries on other
CPUs could have caused an MWAIT-ing CPU to never wake.
2022-07-13 21:51:15 -05:00
Volker Ruppert
92622f16b9
Updated / improved information about configure shortcut scripts.
2021-11-04 17:44:57 +00:00
Volker Ruppert
7356cbce4d
Updated developer doc: the legacy disassembler has been removed.
2021-10-25 15:51:36 +00:00
Volker Ruppert
693a8746d7
Added variable CONFIGURE_ARGS to simplify adding/overriding options.
2021-10-24 15:32:23 +00:00
Volker Ruppert
eef679a8a4
Some documentation fixes.
2021-10-18 19:31:16 +00:00
Volker Ruppert
1408de3ad2
Fixed and improved PCI slot config error handling.
2021-10-14 17:59:08 +00:00
Volker Ruppert
631e839046
Added changes after release.
2021-09-12 15:47:28 +00:00
Volker Ruppert
3e333a0d79
Removed APIC timer handles from save/restore list. They are set by the
...
constructor and should not be modified. Timer activation after restore is not
necessary.
2021-09-12 15:13:20 +00:00
Volker Ruppert
26914d0058
MWAIT timer fixes (to be completed).
...
- Fixed MWAIT timer activation.
- A timer handle should not appear in the save/restore list.
- TODO: Activate MWAIT timer after restore if necessary.
2021-09-10 16:54:54 +00: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
f074c10b75
merge memory handling fix by Nikolai Zhubr
2021-08-25 17:42:08 +00:00
Volker Ruppert
412285baed
Fixed compilation for big endian architectures (SF patch #563 ).
2021-08-24 19:06:01 +00:00
Volker Ruppert
d684c5cd57
Added missing updates after release.
2021-08-08 16:03:16 +00:00
Volker Ruppert
c9c3416098
Regenerated configure script.
2021-08-01 21:45:35 +00:00
Volker Ruppert
fbb7e29154
Updates after release.
2021-08-01 21:44:37 +00:00
Volker Ruppert
50b0ab2895
Regenerated configure script and recompiled BIOS images for release.
2021-08-01 08:12:28 +00:00
Volker Ruppert
b924b92ecc
Preparing final release 2.7.
2021-08-01 08:07:38 +00:00
Volker Ruppert
0a956e2cf1
Fixed two external links.
2021-08-01 07:40:18 +00:00
Volker Ruppert
4c32ca7b16
Fixed some MSVC warnings in the cpu code (unsafe use of bool type).
2021-07-27 19:18:34 +00:00
Volker Ruppert
a1058990ba
Trailing '../\' breaks compilation with MSVC nmake. Regenerated dependencies.
2021-07-27 18:13:26 +00:00
Volker Ruppert
452201a231
Fixed two compiler warnings in the cpu code.
2021-07-27 15:36:11 +00:00
Stanislav Shwartsman
1455788fe4
remove cpudb.h from some Makefile dependencies. it should be only in cpu/init.cc and config.cc
2021-07-25 18:21:41 +00:00
Stanislav Shwartsman
214220763f
remove cpudb.h from some Makefile dependencies. it should be only in cpu/init.cc and config.cc
2021-07-25 18:10:39 +00:00
Stanislav Shwartsman
021f3794fa
remove cpudb.h from some Makefile dependencies. TODO: it should be only in cpu/init.cc and config.cc
2021-07-25 18:08:54 +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
Stanislav Shwartsman
7129b1d7c5
fixed number of arguments for BX_INFO
2021-07-25 18:02:36 +00:00
Stanislav Shwartsman
da21b16d7f
remove cpudb.h from bochs.h
2021-07-25 18:01:28 +00:00
Stanislav Shwartsman
7b2bb50722
fixed VMX exit qualification info for INVEPT/INVVPID/INVPCID instructions
2021-07-23 10:13:48 +00:00
Stanislav Shwartsman
0cba8b66c9
more robust handling of SVM VMCB host ptr
2021-07-23 09:30:17 +00:00
Stanislav Shwartsman
daaab792b6
added SVM vmcbptr to save/restore image
2021-07-23 08:06:58 +00:00
Volker Ruppert
6b08329fa2
Voodoo 1/2: Always reset 'swaps_pending' counter when switching to Voodoo mode.
...
This fixes a possible deadlock in accelerated Direct3D test.
2021-07-18 07:25:08 +00:00
Volker Ruppert
a216fc71a3
Recompiled BIOS images.
2021-07-14 16:11:51 +00:00
Volker Ruppert
7ed5d6447a
Fixed two SF bugs in the Bochs BIOS code.
...
- MS-DOS 4.01 caused a stack overflow in the int15_function(). Now handle all
functions that simply return success in the ASM code. Fixes SF bug #1439 .
- Added two delay loops in keyboard_init(). Fixes SF bug #1438 .
2021-07-14 16:10:19 +00:00
Volker Ruppert
bf8dda4e06
Regenerated configure script.
2021-07-12 19:06:38 +00:00
Volker Ruppert
e34d017f60
Some fixes for compiling for WIN64 with MSVC.
...
- Added check in config.h whether or not Bochs is configured and compiled for
the same target platform (WIN32 / WIN64).
- Fixed some warnings that occur in the MSVC WIN64 case.
2021-07-12 19:05:25 +00:00
Volker Ruppert
61f24a0727
Updated gui makefile dependencies.
2021-07-08 20:16:51 +00:00
Volker Ruppert
7c8b1c5f28
Some small changes in the Voodoo Banshee code.
...
- Report some more unimplemented bits of the vidProcCfg register.
- Code cleanup in some bitblt methods.
2021-07-08 14:43:18 +00:00
Volker Ruppert
a38f0fdb02
The 2D destination x/y positions are signed values. Modified code to handle
...
negative values properly.
2021-07-07 06:54:30 +00:00
Volker Ruppert
44288f603d
Fixed and cleaned up pattern fill methods.
2021-07-06 12:09:38 +00:00
Volker Ruppert
e17539861c
Fixed and simplified setup of source and destination pitch.
2021-07-06 09:08:12 +00:00
Volker Ruppert
4bf3b23983
Added support for drawing polygon with pattern.
2021-07-06 06:40:53 +00:00
Volker Ruppert
0262b100a5
Some Banshee bitblt fixes.
...
- Fixed screen-to-screen code in the right-to-left case.
- Some pattern handling fixes (pattern origin is always destination x0, y0).
2021-07-05 10:30:04 +00:00
Volker Ruppert
8de6206ab6
Some Banshee bitblt clip code changes.
...
- Fixed screen-to-screen stretch code using new clip check.
- Simplified line / polygon drawing code using new clip check.
2021-07-04 15:06:50 +00:00
Volker Ruppert
fe9198b5a7
Fixed clipping related issues in host-to-screen methods.
...
- Added simple clip check method to be called for each destination x / y change.
- Use the new clip check in both host-to-screen methods.
- Some related changes.
- TODO: verify other bitblt methods for clipping correctness.
2021-07-04 08:17:55 +00:00
Volker Ruppert
e0cc76af53
Some changes in the Voodoo Banshee code.
...
- Calculate host-to-screen data size for "source stride packing" in color mode
similar to the monochrome mode.
- Set up data swizzle mode for all launch area operations.
- Temporarily draw polygon in normal mode in case the currently unsupported
pattern mode is selected.
- TODO #1 : Rewrite of the clipping code at least for host-to-screen functions.
- TODO #2 : Drawing polygon with pattern if requested.
2021-07-03 20:54:38 +00:00
Stanislav Shwartsman
01e785f479
minor tab2space
2021-07-03 19:00:41 +00:00
Stanislav Shwartsman
25ad0b804a
VMX: fixed exit qualification info for VMREAD/VMWRITE instructions
2021-07-03 14:31:14 +00:00
Volker Ruppert
3062a14ef4
The i440BX chipset now reports 66 MHz DRAM clock.
2021-07-03 08:33:09 +00:00
Volker Ruppert
69c4758fbb
New attempt to fix the Banshee bitblt issues in host-to-screen mode with
...
monochrome source and "source stride" packing. Now adding the source stride
converted to pixels to the 5-bit srcX value.
TODO #1 : color source needs to be handled in a similar way (no test case yet).
TODO #2 : clipping needs to be rewritten at least for host-to-screen blts.
2021-07-02 17:29:22 +00:00
Volker Ruppert
a23db5e82a
Small changes in the Voodoo Banshee code.
...
- Redirect byte and word writes into CMDFIFO space to LFB (FIXME).
- Added stub for the CMDFIFO code #6 (AGP-to-VRAM transfer).
2021-07-01 19:32:28 +00:00
Volker Ruppert
7e75d3d66b
Two fixes in the USB code.
...
- Fixed possible segfault in the EHCI code.
- Fixed and improved backward compatibility code for USB port options.
2021-06-30 15:50:49 +00:00
Volker Ruppert
28b506f2de
Small changes in the Voodoo Banshee code.
...
- Added support for byte and word access to Banshee i/o space.
- Added stub for the CMDFIFO command JMP AGP.
2021-06-30 07:41:21 +00:00
Volker Ruppert
89a0507703
Recompiled BIOS binaries to support i440BX chipset without AGP.
2021-06-27 14:53:44 +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
d9dd62e42f
Improved conversion of old-style USB device options to new format.
2021-06-24 19:45:20 +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
3d852a208e
Added 'vtimer_running' flag to save/restore list (fixes display flickering
...
after restore Banshee in 3D mode).
2021-06-22 17:03:05 +00:00
Volker Ruppert
2eca0db8fd
Fixed setting up BOCHS_BITS symbol (currently only used by NSIS installer).
2021-06-20 13:37:23 +00:00
Volker Ruppert
821b42f309
Fixed some MSVC warnings when compiling for WIN64.
2021-06-20 07:30:29 +00:00
Volker Ruppert
56fb9cacc2
Fixed "extended address wrap" mode: setting "plane shift" value not correct in
...
"chain4" mode (fixes DOS Doom in Win95).
2021-06-18 23:00:40 +00:00
Volker Ruppert
e1265b7536
Fixed special rule for the backward compatible device type selection of card #0 .
...
If at least one ne2k device is assigned to a PCI slot, card #0 defaults to PCI
type, unless type is set up in ne2k line.
2021-06-17 21:04:35 +00:00
Volker Ruppert
fe9ac400b2
Fixed compilation with remote GDB stub enabled.
2021-06-14 05:45:41 +00:00
Volker Ruppert
06894e5b5e
Updates after pre-release, partly updated Bochs URL usage.
2021-06-13 08:02:33 +00:00
Volker Ruppert
426408cca6
Regenerated configure script for pre-release.
2021-06-13 05:16:36 +00:00
Volker Ruppert
88275ce948
Preparing pre-release.
2021-06-13 05:15:32 +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