OBattler
9f200fe2e8
386 Interpreter: Check for debug breakpoint before segment limit and presence checking.
2025-03-16 21:20:15 +01:00
Jasmine Iwanek
5f273265ae
Assorted warning fixes
2025-02-02 03:24:50 -05:00
OBattler
40fd79aeb9
FPU: Properly implement INT 10h FPU exception, fixes #5162 .
2025-01-19 09:06:39 +01:00
OBattler
d594f33cad
Fix a minor bug in cpu/386.c.
2024-08-29 01:31:09 +02:00
OBattler
7c7cc921ee
Non-808x interpreters: fetch the next instruction after a CR0 paging bit toggle with the old CR0 paging bit value, fixes SCO Unix.
2024-08-27 02:34:59 +02:00
Jasmine Iwanek
de851d9173
Compile fix for cpu/386.c logging
2024-08-07 01:07:50 -04:00
OBattler
bbe035b62a
Implement special selector pushing behavior and improve the opcode length heuristic for CS limit checks, fixes #4552 .
2024-06-23 02:28:22 +02:00
OBattler
2273f563a5
Moved the offending SoftFloat-related stuff to x87_sf.h, fixes warnings.
2024-06-10 00:08:48 +02:00
OBattler
6de7c7cd5e
Fixed LOCK legality with prefixes, closes #4189 .
2024-02-23 07:10:15 +01:00
OBattler
30e7a49558
Fix compile-breaking mistakes in cpu/386.c.
2024-02-09 12:15:28 +01:00
OBattler
5a3d74d64f
286/386 interpreter fixes - the correct opcode arrays are now used and fixed the debug registers.
2024-02-09 12:14:35 +01:00
Cacodemon345
911deeab1a
Fix single-step trap flag setting
2024-01-15 01:09:52 +06:00
Cacodemon345
b884ef825c
And 386.c
2024-01-14 20:58:29 +06:00
Cacodemon345
f4f252c0b7
Implement x86 debug registers
2024-01-14 15:26:40 +06:00
Cacodemon345
a13a8efb39
Implement TSS debug trap bit
2024-01-14 04:04:04 +06:00
Jasmine Iwanek
f6a5229a98
Future support for higher clocked CPU's
2023-10-13 17:55:18 -04:00
OBattler
782117dbbd
Fixed some GCC pedantic warnings.
2023-08-25 02:28:51 +02:00
OBattler
1d48363803
The 286/386 interpreter now has its own variant of x86seg.c.
2023-08-21 02:56:33 +02:00
OBattler
6c4a4be6be
Timer clean-ups.
2023-08-19 05:26:49 +02:00
OBattler
44ba846ae6
Reverted some changes and reworked some lines in cpu/386.c.
2023-08-17 02:52:49 +02:00
OBattler
bf38c4adef
More UI work, added Slovak and Catalan translations, and fixed mmutranslate on the 286/386, fixes #3587 , #3591 .
2023-08-17 02:46:37 +02:00
OBattler
e781d4905e
286/386 interpreter fixes.
2023-08-15 22:11:32 +02:00
Jasmine Iwanek
5cd18f3fbb
Clang-formatting in src/cpu
2023-08-11 19:11:37 -04:00
Jasmine Iwanek
be79ea78c7
sonarlinting and formatting in src/cpu
2023-08-11 19:11:32 -04:00
OBattler
b1c5cbaf47
Split the 286/386 interpreter away from the 486+ one (the 286/386 interpreter does not use the pccache's, readlookup's, and writelookup's as the emulated CPU's are too slow for them to be required, and also has more accurate FPU timings), also added a LPT status read function for future-proofing.
2023-08-08 19:39:52 +02:00
OBattler
c76e8ff06c
Replaced the codegen_ops_NULL table references with NULL pointers, as it has the same effect without requiring an extra table of opcodes, also made the new recompiler clear codegen_flags_changed after every interpreted instruction to prevent conditional jumps from occasionally taking the wrong turn (fixes CL-GD 54x6 driver glitches in 24bpp mode on Windows 98 SE), and added instruction length heuristics on fetching the instruction, fixes Jane's US Navy Fighters.
2023-06-09 14:55:13 +02:00
Jasmine Iwanek
83b220cb03
clang format in cpu
2022-11-19 11:53:09 -05:00
Jasmine Iwanek
af9f1abf98
Code/Comments cleanup
...
Tabs to spaces
Whitespace
Normalize clang-format comments
2022-11-13 21:15:58 -05:00
OBattler
535b19a027
Do not raise CPU trap if an exception has occurred, fixes #2577 .
2022-10-28 04:12:31 +02:00
OBattler
cb13ca526a
Handle trap first also on interpreter - makes retf.exe at least run.
2022-10-28 03:27:35 +02:00
Jasmine Iwanek
ece9f7ec72
Fix some compile warns while I'm at it
2022-09-21 19:27:08 -04:00
Jasmine Iwanek
b4673117fd
Some clang-formatting in src/cpu
2022-09-20 01:00:45 -04:00
Cacodemon345
64195df373
386: set bit 14 of DR6 to 1 on INT 01 with TF set
2022-08-04 16:43:21 +06:00
OBattler
da5d451386
Preparation for SMI# and NMI# changes.
2022-07-16 02:45:46 +02:00
RichardG867
f57cbe36b1
GDB Stub: More progress
2022-03-16 00:33:01 -03:00
RichardG867
94be8cdfc6
GDB Stub: Initial commit
2022-03-12 20:20:25 -03:00
OBattler
b3a8d0aaed
And more.
2022-02-02 02:51:18 +01:00
OBattler
25e8801ede
And more.
2022-02-02 02:46:11 +01:00
OBattler
b92d45125e
Temporarily reverted that FPU clock cycles change.
2022-02-01 19:07:22 +01:00
linear cannon
04c89959f8
adjust CLOCK_CYCLES and related macros to handle fpu/iu concurrency
...
add CLOCK_CYCLES_FPU, which does exactly what CLOCK_CYCLES already did.
add CONCURRENCY_CYCLES, which sets fpu_cycles, which is the number of
available concurrent execution cycles that the integer unit can do
"free" work in while the fpu is executing.
adjust CLOCK_CYCLES so that if there are fpu_cycles, the cycle count is
subtracted from fpu_cycles instead of cycles, emulating the behavior of
these concurrent cycles being "free" as on real hardware.
2022-01-29 07:38:41 -08:00
OBattler
bc90f99350
Finally got rid of the AT and PCI global variables.
2021-12-19 20:00:27 +01:00
OBattler
586066d891
Made NMI's always auto-clear, will revert if it makes things worse.
2021-09-02 15:24:17 +02:00
OBattler
897d2f2d97
Removed unused functions from cpu/386.c.
2021-04-29 22:05:13 +02:00
OBattler
c370ae7e18
CPU and MMU cleanups and fixes, and non-Debug builds are now stripped again.
2021-04-10 07:18:47 +02:00
OBattler
b83a32ccf8
Improved STI fix.
2020-11-21 04:02:58 +01:00
OBattler
c10fc05ea6
Ported the CPU fixes from PCem.
2020-11-20 01:28:36 +01:00
OBattler
02e9a3ad55
Reverted a bad change to cpu/386.c, fixes freezes and mysterious behavior on the Interpreter.
2020-11-17 20:00:28 +01:00
OBattler
0faf6692c9
WARNING: CONFIGS MIGHT PARTIALLY BREAK WHERE DEVICE NAMES HAVE CHANGED.
...
Changes to device_t struct to accomodate the upcoming PCI IRQ arbitration rewrite;
Added device.c/h API to obtain name from the device_t struct;
Significant changes to win/win_settings.c to clean up the code a bit and fix bugs;
Ported all the CPU and AudioPCI commits from PCem;
Added an API call to allow ACPI soft power off to gracefully stop the emulator;
Removed the Siemens PCD-2L from the Dev branch because it now works;
Removed the Socket 5 HP Vectra from the Dev branch because it now works;
Fixed the Compaq Presario and the Micronics Spitfire;
Give the IBM PC330 its own list of 486 CPU so it can have DX2's with CPUID 0x470;
SMM fixes;
Rewrote the SYSENTER, SYSEXIT, SYSCALL, and SYSRET instructions;
Changed IDE reset period to match the specification, fixes #929 ;
The keyboard input and output ports are now forced in front of the queue when read, fixes a number of bugs, including the AMI Apollo hanging on soft reset;
Added the Intel AN430TX but Dev branched because it does not work;
The network code no longer drops packets if the emulated network card has failed to receive them (eg. when the buffer is full);
Changes to PCI card adding and renamed some PCI slot types, also added proper AGP bridge slot types;
USB UHCI emulation is no longer a stub (still doesn't fully work, but at least Windows XP chk with Debug no longer ASSERT's on it);
Fixed NVR on the the SMC FDC37C932QF and APM variants;
A number of fixes to Intel 4x0 chipsets, including fixing every register of the 440LX and 440EX;
Some ACPI changes.
2020-11-16 00:01:21 +01:00
OBattler
795a6017d2
PIC rewrite, proper SMRAM API, complete SiS 471 rewrite and addition of 40x, 460, and 461, changes to mem.c/h, disabled Voodoo memory dumping on exit, bumped SDL Hardware scale quality to 2, bumped IDE/ATAPI drives to ATA-6, finally bumped emulator version to 3.0, redid the bus type ID's to allow for planned ATAPI hard disks, made SST flash set its high mappings to the correct address if the CPU is 16-bit, and added the SiS 401 AMI 486 Clone, AOpen Vi15G, and the Soyo 4SA2 (486 with SiS 496/497 that can boot from CD-ROM), assorted 286+ protected mode fixes (for slightly more accuracy), and fixes to 808x emulation (MS Word 1.0 and 1.10 for DOS now work correctly from floppy).
2020-10-14 23:15:01 +02:00
OBattler
a862bda04c
Rewrote the recompiler interrupt checking in assembly (and removed it for the new dynamic compiler because the requires uops are not present), brings performance back up, and also did a number of CPU-related clean-ups (mostly removal of dead variables and associated code).
2020-07-13 19:46:19 +02:00