Commit Graph

127 Commits

Author SHA1 Message Date
OBattler
0821f7ea41 Fixed the accumulate function on the 64-bit recompiler. 2020-05-06 04:09:33 +02:00
OBattler
3dd3396a2c Backported the codegen_accumulate functionality to the old recompiler, so Windows 98 first edition on i686 CPU's can stay fixed without i686 timings getting messed up. 2020-05-06 03:41:46 +02:00
OBattler
23739b3dc6 Some CPU fixes, fixes #736. 2020-05-06 00:22:21 +02:00
OBattler
20cf306d44 Better fix for the P6 timings. 2020-04-25 22:14:43 +02:00
OBattler
6033f4480c Fixed P6 timings so they no longer fatal (and removed the 3DNow! stuff from them), and also fixed the Distributed DMA bug reported by TheCollector1995. 2020-04-25 22:02:48 +02:00
nerd73
fe6df042be Implement a proper P6 timing model 2020-04-25 03:24:59 -06:00
OBattler
d20c5d525c Fixed the old dynarec's MOD R/M tables to include the 3DNow! instructions, and both dynarec's MOD R/M tables to include the i686 hintable NOP's. 2020-04-23 01:07:11 +02:00
OBattler
f29f6de245 Redid the x87 merger, now the x87 interpreter is basically the same across both recompilers, and there's several newly introduced bugs less. 2020-04-10 14:07:25 +02:00
OBattler
2a0b3eb9c5 Added PAE, ported K6, P6, and WinChip 2 timings to the old recompiler, added a bunch of CPU's to the old recompiler, done some x87 fixes for both recompilers, added PAE, and fixed root directory entries for single-sided 5.25" DD floppies in the New Floppy Image dialog. 2020-04-10 01:08:52 +02:00
David Hrdlička
a505894a10 Move all include files to src/include
- 86Box's own headers go to /86box
- munt's public interface goes to /mt32emu
- all slirp headers go to /slirp (might want to consider using only its public inteface)
- single file headers from other projects go in include root
2020-03-29 19:53:29 +02:00
OBattler
66e159e0bf Fixed SMM, now it works correctly, and is now also operating on all CPU's from 386 onwards. 2020-03-29 18:12:43 +02:00
Daniel Gurney
0c509fd551 Remove version tree-wide 2020-03-25 00:46:02 +02:00
OBattler
490c04fcae Current WIP code. 2020-02-29 19:12:23 +01:00
OBattler
f662b9f342 Fixed the 286+ CPU timer running. 2020-01-21 02:00:04 +01:00
OBattler
7506b4667e Fixed the HLT instruction on 286+ and Intel Flash aliasing. 2020-01-21 01:23:35 +01:00
OBattler
995e2f0c61 Fixed the fpu_log() function, it should now link correctly. 2020-01-18 04:53:30 +01:00
OBattler
124347b72a Removed some stuff, hopefully the K6 with the old recompiler can compile now. 2020-01-17 04:06:03 +01:00
OBattler
6678ac1c83 Fixed an undeclared variable. 2020-01-17 04:00:46 +01:00
OBattler
2b890e290c Removed K6_2 stuff from cpu/cpu.c. 2020-01-17 03:56:05 +01:00
OBattler
ebf0d1ef3a Fixed MSR's on AMD CPU's - the VIA machine now works without issues with the high-speed AMD CPU's. 2020-01-16 20:49:58 +01:00
OBattler
d516716b38 Changed the way device timers are run, fixes DesqView/X. 2020-01-16 05:48:36 +01:00
OBattler
e44e60c660 Fixed the fourth batch of problems. 2020-01-15 05:24:33 +01:00
OBattler
932ad5595a Fixed the third batch of problems. 2020-01-15 04:58:28 +01:00
OBattler
a2867e6978 Added fall-through comments to several fall-throughs. 2020-01-15 02:43:25 +01:00
OBattler
8e566a1ad7 Merge pull request #523 from nerd73/master
CPU table revamp
2020-01-12 18:48:42 +01:00
Melissa Goad
fa6adf3b90 Make it work for the old dynarec too 2020-01-12 10:10:13 -06:00
nerd73
43816991b6 Patch for the revamp
- Delinked CPU bus speed from PCI speed
- Changed the CPU multiplier from an integer to a double
- Changed the CPU cache/mem cycles on the K6-2s from fractions to integers
- Fixed cache/mem cycles on the faster Cyrix MIIs
- Fixed some spacing issues that I created
2020-01-05 15:56:52 -07:00
nerd73
8e1c0f5337 CPU table revamp
- Added IBM 486SLC2/40 because somehow I didn't know it existed
- Revoked Dynarec support on the IBM 486 CPUs after several PS/2 machines were buggy with it
- Disallowed Pentium OverDrive and 3.3V 486 CPUs on the AMI 486 clone, Award 486 clone, IBM PS/1 2133, and IBM PS/2 model 70 Type 4 due to discovery that they used either Socket 1 or the original 486 socket
- Disallowed split-rail voltage CPUs (P55C, 6x86L/6x86MX, K6) on all Socket 7 FX and some HX motherboards that don't support it
- Fixed a lot of wrong multipliers on 5th-generation CPUs
- Added mem and cache cycles for the faster K6-2s/K6-3s above 300 MHz
2020-01-03 22:59:49 -07:00
nerd73
0a20ac9570 Update cpu_table.c 2019-12-17 06:51:07 -07:00
nerd73
fb050149e3 Update 808x.c 2019-12-17 06:45:53 -07:00
nerd73
3d112cc2db Update cpu.h 2019-12-17 06:41:23 -07:00
nerd73
4ac2769e3e Indenting fixes 2019-12-17 06:37:57 -07:00
nerd73
4e8bcfd6ad Add files via upload 2019-12-16 18:10:19 -07:00
OBattler
0d13366e59 Removed some incorrect CPU table entries. 2019-10-21 05:43:19 +02:00
OBattler
c6ee6f48de Removed an unused table from the XT MFM controller code;
808x prefetch queue is now always cleared on soft reset (as it should be due the changing CS:IP).
2019-10-21 03:24:36 +02:00
OBattler
e967603e59 On 808x, timers are no longer run on every cycle decrease from other devices, properly fixes the stack corruption that was crashing MasterWrite, consequently, the previous fix has been removed;
Committed the machine files I forgot to commit before.
2019-10-20 20:33:59 +02:00
OBattler
544eb0f1c9 The 486SX2 CPU's no longer have the CPUID instruction, fixes #432;
86Box-Dev is now compiled with the new dynamic recompiler, 86Box-Debug is the new debug job the old one and no Dev branch features.
2019-10-15 20:52:39 +02:00
OBattler
64c4a9946e Removed the Pentium II 75 from cpu_table.c that should not have been there in the first place. 2019-09-22 21:46:55 +02:00
OBattler
e65e11fe9a Reworked CPU instruction segment limit and page fault checking a bit, fixes #406;
Implemented the MCA enable/disable bit for the MCA WD NIC's, fixes #407;
A small bug fix in dma.c.
2019-09-21 03:33:05 +02:00
OBattler
552a87ea3d Added the IBM 5161 ISA expansion for PC and XT;
Cleaned up the parallel port emulation, added IRQ support, and made enabling/disabling per port;
Added the Award 430NX and the Intel Classic/PCI (Alfredo, 420TX);
Finished the 586MC1;
Added 8087 emulation;
Moved Cyrix 6x86'es to the Dev branch;
Sanitized/cleaned up memregs.c/h and intel.c/h;
Split the chipsets from machines and sanitized Port 92 emulation;
Added support for the 15bpp mode to the Compaq ATI 28800;
Moved the MR 386DX and 486 machines to the Dev branch;
Ported the new dynamic recompiler from PCem, but it remains in Dev branch until after v2.00;
Ported the new timer code from PCem;
Cleaned up the CPU table of unused stuff and better optimized its structure;
Ported the Open-XT and Open-AT from VARCem, the Open-AT is in the Dev branch;
Ported the XT MFM controller rewrite and adding of more controllers (incl. two RLL ones), from VARCem;
Added the AHA-1540A and the BusTek BT-542B;
Moved the Sumo SCSI-AT to the Dev branch;
Minor IDE, FDC, and floppy drive code clean-ups;
Made NCR 5380/53C400-based cards' BIOS address configurable;
Got rid of the legacy romset variable;
Unified (video) buffer and buffer32 into one and make the unified buffer 32-bit;
Added the Amstead PPC512 per PCem patch by John Elliott;
Switched memory mapping granularity from 16k to 4k (less than 1k not possible due to internal pages);
Rewrote the CL-GD 54xx blitter, fixes Win-OS/2 on the 54x6 among other thing;
Added the Image Manager 1024 and Professional Graphics Controller per PCem patch by John Elliott and work done on VARCem;
Added Headland HT-216, GC-205 and Video 7 VGA 1024i emulation based on PCem commit;
Implemented the fuction keys for the Toshiba T1000/T1200/T3100 enhancement;
Amstrad MegaPC does now works correctly with non-internal graphics card;
The SLiRP code no longer casts a packed struct type to a non-packed struct type;
The Xi8088 and PB410a no longer hang on 86Box when PS/2 mouse is not present;
The S3 Virge on BeOS is no longer broken (was broken by build #1591);
OS/2 2.0 build 6.167 now sees key presses again;
Xi8088 now work on CGA again;
86F images converted from either the old or new variants of the HxC MFM format now work correctly;
Hardware interrupts with a vector of 0xFF are now handled correctly;
OPTi 495SX boards no longer incorrectly have 64 MB maximum RAM when 32 MB is correct;
Fixed VNC keyboard input bugs;
Fixed AT RTC periodic interrupt - Chicago 58s / 73f / 73g  / 81 MIDI play no longer hangs with the build's own VTD driver;
Fixed mouse polling with internal mice - Amstrad and Olivetti mice now work correctly;
Triones ATAPI DMA driver now correctly reads a file at the end of a CD image with a sectors number not divisible by 4;
Compaq Portable now works with all graphics cards;
Fixed various MDSI Genius bugs;
Added segment limit checks and improved page fault checks for several CPU instructions - Memphis 15xx WINSETUP and Chicago 58s WINDISK.CPL no longer issue a GPF, and some S3 drivers that used to have glitches, now work correctly;
Further improved the 808x emulation, also fixes the noticably choppy sound when using 808x CPU's, also fixes #355;
OS/2 installer no logner locks up on splash screen on PS/2 Model 70 and 80, fixes #400.
Fixed several Amstead bugs, GEM no longer crashes on the Amstrad 1640, fixes #391.
Ported John Elliott's Amstrad fixes and improvement from PCem, and fixed the default language so it's correctly Engliish, fixes #278, fixes #389.
Fixed a minor IDE timing bug, fixes #388.
Fixed Toshiba T1000 RAM issues, fixes #379.
Fixed EGA/(S)VGA overscan border handling, fixes #378;
Got rid of the now long useless IDE channel 2 auto-removal, fixes #370;
Fixed the BIOS files used by the AMSTRAD PC1512, fixes #366;
Ported the Unicode CD image file name fix from VARCem, fixes #365;
Fixed high density floppy disks on the Xi8088, fixes #359;
Fixed some bugs in the Hercules emulation, fixes #346, fixes #358;
Fixed the SCSI hard disk mode sense pages, fixes #356;
Removed the AMI Unknown 386SX because of impossibility to identify the chipset, closes #349;
Fixed bugs in the serial mouse emulation, fixes #344;
Compiled 86Box binaries now include all the required .DLL's, fixes #341;
Made some combo boxes in the Settings dialog slightly wider, fixes #276.
2019-09-20 14:02:30 +02:00
driver1998
fecbec13cf Use _M_IX86 and _M_X64 to indicate MSVC x86/x64
_WIN32 is defined on ARM MinGW as well, which breaks current assumptions
2019-03-20 02:00:12 +08:00
OBattler
c1f18d9abc More 808x fixed - fixed (kind of) the 8086 lock ups and the DRAM refresh wait states, also further fixed (and cleaned up) prefetch queue operation, applied a few warning fixes, and fixed the behavior of PUSH SP - anything that uses it to tell 808x apart from 286 is now fixed;
Re-added the higher-clocked 8088's;
Fixed PIT timings for 808x CPU's that don't run off an 14.3 MHz crystal;
Fixed CGA cursor half blink rate setting - fixes insane cursor blinking speed in several cases;
DMA now issues DMA refresh DRAM states on every channel;
Gave the 1982 years to the previously emulated PC and XT's names, and added the 1981 IBM PC and 1986 IBM XT;
Redid the PPI DIP switch redout for the PC/XT keyboard controller;
Fixed a segmentation fault in hdc_ide.c that tended to occur on hard reset after switching machines;
Implemented the port 3B8 color disable on the Hercules, Hercules Plus, and Hercules InColor cards;
Fixed the joystick configuration dialog strings;
Fixed a problem that would have prevented win_sdl.c from compiling with logging enabled.
2019-02-11 01:33:15 +01:00
OBattler
46d0ed2baa Rewritten 808x CPU emulation core based on reenigne's XTCE, VisiOn, SnatchIt, and 8088 MPH now work correctly;
Fixed PC speaker sound volume in PIT mode 0;
A few CPU emulation clean-ups;
Hard disk controller changing redone in a less messy way;
Re-added the long-missing key send delay handling to the XT keyboard handler;
Fixed a bug that was causing SLiRP not to work when compiled with MingW/GCC 7.3.0-2 or newer;
Some serial mouse and port fixes;
A lot of changes to printer emulation, mostly based on DOSBox-X;
Printer PNG writer now uses statically linked libpng;
Added support for the HxC MFM floppy image format and upped 86F format version to 2.12;
Ported various things from PCem and some from VARCem;
Added the S3 86c801/805 emulation (patch from TheCollector1995);
Fixed and renamed the EGA monitor options;
Better synchronized the 808x to the PIT and the CGA;
Fixed the CGA wait state calculation;
Cleaned up some things in mem.c;
Fixed some things in the floppy emulation to make VisiOn get the correct errors from the copy protection disk;
Fixed several renderer-related bugs, including the SDL2 renderer's failure to take screenshots;
The Jenkins builds are now compiled with MingW/GCC 7.4.0-1 and include all the required DLL's.
2019-02-06 03:34:39 +01:00
OBattler
cfc626f111 Change to logging - when logging is disabled, the logging functions are now #define'd to nothing, so the compiler ignores the lines that call them completely, seems to slightly speed up the emulator; note that the logging in vid_table.c has not been changed yet, because this file on my local tree currently contains other WIP changes. 2018-10-19 00:39:32 +02:00
OBattler
0c602a8d26 Fixed the fixes of the 64-bit recompiler;
Updated the ROM set link in README.md.
2018-10-08 04:40:12 +02:00
OBattler
45731dbaa0 Fixed some minor things. 2018-10-07 15:05:14 +02:00
OBattler
706e819ca2 And the truly last file. 2018-10-04 03:42:56 +02:00
OBattler
415c396163 Removed hopefully all the remaining excess files. 2018-10-04 03:35:16 +02:00
OBattler
ed92602dad Fixes for the (S)VGA common DAC and some card-specific DAT's (ATi 68860, BT48x family, and the Cirrus Logic DAC), fixes Star Control II among other things. 2018-10-04 01:19:43 +02:00
OBattler
647d78e4c2 Removed a lot of useless #include's from a lot of files and reworked the SCSI #include's a bit to resolve the problem of scsi.h being a mess. 2018-10-02 22:54:28 +02:00