Commit Graph

15754 Commits

Author SHA1 Message Date
Jonathan Campbell
affa499ce9 Use offsetof to ensure MMX union packing is as expected 2021-11-23 13:52:21 -08:00
Jonathan Campbell
b8ef06d410 Add WORD array to MMX union and static assertions to ensure data type packing is arranged as expected 2021-11-23 13:35:26 -08:00
Jonathan Campbell
f1019a6d9f Fix possible MMX issues with typecasting 2021-11-23 13:00:29 -08:00
Jonathan Campbell
7f13799b98 Merge pull request #3098 from Allofich/floppy
Raise default floppy speed
2021-11-23 16:58:46 +00:00
Wengier
a7170ad496 add GTest files 2021-11-23 07:05:51 -05:00
Wengier
baaebd367b make unit tests available in all debug builds 2021-11-23 06:19:51 -05:00
Wengier
8a3b5b7367 Merge branch 'master' of https://github.com/joncampbell123/dosbox-x 2021-11-23 04:59:43 -05:00
Brandon Roberts
04dc30abb8 Add unit tests from Staging 2021-11-23 04:58:07 -05:00
Wengier
219f3ebf89 Add Google unit test for VS builds (via -tests option) 2021-11-23 04:53:22 -05:00
Jonathan Campbell
eca81e0e74 CHANGELOG 2021-11-22 23:11:15 -08:00
Jonathan Campbell
83cfc43dc9 Flush paging TLB on guest page fault exception. If we do not do this, the Linux kernel runs but syscalls often get stuck 2021-11-22 23:09:34 -08:00
Jonathan Campbell
4943806b31 Debugger: Update disassembler to support CMOVcc instructions so they appear in the code window of the debugger interface 2021-11-22 22:47:23 -08:00
Jonathan Campbell
ce91536ab3 CMPXCHG8B has worked properly for months now, silence debug message. Silence SYSENTER/SYSEXIT debug messages, it works now 2021-11-22 22:35:54 -08:00
Jonathan Campbell
7bd3a64230 CHANGELOG 2021-11-22 22:31:58 -08:00
Jonathan Campbell
e67d798c94 Fix SYSENTER/SYSEXIT by using CPU_SetCPL instead of directly modifying the CPL. SetCPL makes sure to remap the page table TLB so ring transitions work properly. The Linux kernel is able to run using SEP without crashing now 2021-11-22 22:29:29 -08:00
Jonathan Campbell
99dd32fc88 Normal core bugfix: Guest page fault exception should provide the fault address, it might help things out 2021-11-22 22:28:42 -08:00
Jonathan Campbell
bc73b0ff90 RDMSR/WRMSR: If emulating a Pentium II stepping 3, Windows ME feels the need at startup to check and update Intel microcode. So fake it 2021-11-22 11:26:49 -08:00
Jonathan Campbell
7a3a4fbc14 retab 2021-11-22 10:58:43 -08:00
Jonathan Campbell
20c25e9487 whoops 2021-11-22 10:44:15 -08:00
Jonathan Campbell
253304ee99 SYSENTER: Correct CS SS segment values 2021-11-22 10:43:24 -08:00
Jonathan Campbell
bf515da36c A bit more 2021-11-22 08:45:36 -08:00
Jonathan Campbell
6990b2daf3 Fix SYSENTER a bit more 2021-11-22 08:43:15 -08:00
Jonathan Campbell
e291f47383 Do not signal fault on SEP MSRs, continue debugging why Linux SYSENTER seems to jump into some arbitrary location that immediately does a WRMSR (???) 2021-11-22 08:30:43 -08:00
Jonathan Campbell
c2496f1404 SYSENTER/SYSEXIT must use continue, not break, to avoid the SAVEIP that would set the instruction pointer back to just after SYSENTER. I thought it seemed weird that Linux would execute SYSENTER just to then execute INT 80h 2021-11-22 08:22:45 -08:00
Jonathan Campbell
fcd6bdb1bc Implement base SYSENTER/SYSEXIT logic, though Linux is not happy yet 2021-11-22 08:10:12 -08:00
Jonathan Campbell
132cc18e36 Pentium II: Add SYSENTER-related MSRs, update SYSENTER validiation as documented by Intel 2021-11-22 07:47:51 -08:00
Jonathan Campbell
853611aef7 Update CPUID to always return SEP set for Pentium II, and to signal availability through the stepping number, because Intel set a feature bit not actually implemented until a later model, and OSes will not attempt SYSENTER unless stepping 3 or higher 2021-11-22 07:34:34 -08:00
Allofich
7c449436aa Raise default floppy speed 2021-11-22 17:54:35 +09:00
Jonathan Campbell
2d28bd963e Merge branch 'master' of github.com:joncampbell123/dosbox-x 2021-11-22 00:05:37 -08:00
Jonathan Campbell
56cde37e6f changelog 2021-11-22 00:05:30 -08:00
Jonathan Campbell
2c1645c62a Check segment limits on 286 or higher if enabled, do NOT check segment limits if 8086 or 80186 2021-11-22 00:04:32 -08:00
Wengier
ca99a050ba apply @Baderian's joystick fix 2021-11-22 02:42:54 -05:00
Jonathan Campbell
00c91ad621 Merge pull request #3095 from Allofich/mouse
Don't run mouse setup code if there is no mouse.
2021-11-22 07:27:45 +00:00
Wengier
c8392bc729 update font 2021-11-22 00:49:49 -05:00
Wengier
fcd3d70217 fix converted code 2021-11-21 22:51:08 -05:00
Wengier
9cf7ff347f update build timestamp 2021-11-21 22:26:05 -05:00
Wengier
c962fdcfeb fix DBCS upcase 2021-11-21 22:05:21 -05:00
Wengier
148bca164b fix DBCS lead 2021-11-21 21:42:33 -05:00
Wengier
220ead54e5 fix ~ on SDL2 build too 2021-11-21 20:17:46 -05:00
Wengier
94187d57ef fix ~ key in non-Japanese keyboard with IME 2021-11-21 19:57:31 -05:00
Wengier
666364b78d more 2021-11-21 18:53:11 -05:00
Allofich
7fe85febc7 Don't run mouse setup code if there is no mouse. 2021-11-21 22:18:57 +09:00
Wengier
25f44afae4 return 6a74 if 0 2021-11-21 05:17:24 -05:00
Wengier
1c49087872 more 2021-11-21 02:53:49 -05:00
Wengier
2186554105 update J3_GetMachineCode() 2021-11-21 02:53:16 -05:00
Wengier
abe859cfa5 update translation 2021-11-21 00:54:39 -05:00
Wengier
38d3e89de8 fix possible crash with getsysfont=true (mentioned by @hlizard) 2021-11-21 00:21:29 -05:00
Wengier
43feede7b5 fix compile issue without FreeType 2021-11-21 00:03:06 -05:00
Wengier
6f185f9025 change video mode when booting from DOS/V 2021-11-20 21:18:25 -05:00
Wengier
3dcfcf3828 fix BIOS screen after DOS/V reset 2021-11-20 20:29:29 -05:00