Commit Graph

136 Commits

Author SHA1 Message Date
Jasmine Iwanek
f2e6f26bb3 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-10-24 10:00:53 -04:00
OBattler
88934ab0ca IDE fixes and finished the SiS 5511. 2023-10-20 02:57:50 +02:00
Jasmine Iwanek
f85d9de9a5 Merge branch 'master' into feature/ich2 2023-10-11 16:59:13 -04:00
Jasmine Iwanek
197e817ea3 Remove several unused variables 2023-10-08 13:32:43 -04:00
Jasmine Iwanek
179c919c63 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-10-07 16:13:18 -04:00
OBattler
488e066e8c Reapplied the PCjr PIC fix from build 4785, fixes #3707. 2023-10-04 05:38:07 +02:00
OBattler
7fed7c1510 Made the condition for asserting an IRQ stricter. 2023-10-03 20:03:13 +02:00
OBattler
71d4c4837f Revert to not updating pending IRQ's if the request results in no effective change. 2023-10-03 19:39:28 +02:00
OBattler
b363cbf884 Another PIC fix. 2023-10-03 06:28:22 +02:00
OBattler
1c8ad0b7e8 Another PIC fix. 2023-10-03 03:28:21 +02:00
OBattler
ebd5f950bc A slight PIC rework. 2023-10-01 20:37:30 +02:00
OBattler
76160c4d1d Do a spurious IRQ 7 or IRQ 15 instead, per the specification. 2023-10-01 18:00:58 +02:00
OBattler
8634cffb98 Replaced the fatal for 286+ with an error correction mechanism (clear IRQ 2 and find best PIC 1 interrupt again). 2023-10-01 17:55:31 +02:00
OBattler
ed119ed163 And another. 2023-10-01 17:33:53 +02:00
OBattler
b03df6bdd1 Attempted PIC fix. 2023-10-01 17:26:44 +02:00
OBattler
b1c7834476 Another small PIC fix. 2023-09-28 07:34:20 +02:00
OBattler
d7bc7b302d Always clear IRR on clear if the specified interrupt is not set to level-triggered on the PIC or ELCR. 2023-09-28 01:15:07 +02:00
OBattler
8bdecb1f59 Some PIC and ACPI IRQ fixes. 2023-09-28 00:20:15 +02:00
OBattler
95c9c1dc95 Reverted the PIC code to basically the old code with the new way of handing level-triggered IRQ's, fixes IDE hard disk and ATAPI CD-ROM problems. 2023-09-04 04:55:09 +02:00
Jasmine Iwanek
07e7e26374 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-08-25 15:15:08 -04:00
Jasmine Iwanek
b8c4dee3bf More linting in src 2023-08-23 04:15:58 -04:00
Jasmine Iwanek
09d54f94b1 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-08-21 23:04:23 -04:00
OBattler
66db65e69b The PIC now once again returns IRR in invalid modes, fixes #3602. 2023-08-20 02:04:42 +02:00
Jasmine Iwanek
bc4e96e527 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-08-14 07:17:36 -04:00
OBattler
7e76e8b28d PIC and Hercules Plus compile warning fixes. 2023-08-11 21:02:15 +02:00
OBattler
782015a923 More mouse and PIC fixes and the mouse now takes of the ration between guest resolution and actual render area size, multiplied by the DPI, when returning coordinate deltas, also unified the delta return function across the various emulated mice. 2023-08-11 04:45:32 +02:00
OBattler
0e22fa6d0f Fixed a compile-breaking mistake in pic.c. 2023-08-10 05:04:24 +02:00
OBattler
f771e9e612 PIC fixes: poll mode is no longer broken. 2023-08-10 05:03:11 +02:00
Jasmine Iwanek
215bd55451 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-08-09 15:41:54 -04:00
OBattler
fdac446d25 The PCjr now correctly supports 64 kB of RAM, also other fixes and added support to PCjr ports 11h and 12h to the POST card (it now supports up to 4 different ports in the range). 2023-08-09 06:26:59 +02:00
OBattler
ce5e21f870 More warning and compile fixes. 2023-08-08 15:38:40 +02:00
OBattler
b4aea2f768 The PIC timer is no longer used to latch all IRQ updates on XT, but only those after writes to the mask register, which are now delayed for the duration of 1 CPU cycles, making the PCjr boot again, fixes #3500. 2023-08-08 03:52:09 +02:00
OBattler
c30d5d90b7 PCI and IRQ rework, pci.c rewritten from ground up, fixes numerous issues such as the bridge being added when the number of normal PCI devices equals the number of normal PCI slots, Windows 95 PCI operation on Intel 430NX, sharing of PCI IRQ's with non-PCI level-triggered devices, having both configuration mechanisms operating at the same time (ALi M1435), etc., and makes the code much more readable. 2023-08-07 03:04:52 +02:00
Jasmine Iwanek
9435ae10e4 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-08-01 15:41:20 -04:00
Jasmine Iwanek
998cfe5cc8 Constification 2023-07-25 17:59:24 -04:00
Jasmine Iwanek
96c57d72be Fix compile failure 2023-07-05 13:06:16 -04:00
Jasmine Iwanek
737802758b Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-07-05 12:02:57 -04:00
Jasmine Iwanek
1116aadb6f Another round of sonarlint work 2023-07-04 10:53:44 -04:00
OBattler
5b58fcfab2 The Lucky Star LS-486E and Rise R418 are now marked as having the PS/2 keyboard controller IRQ latch (new machine bus flag!) without actually having the PS/2 ports. 2023-07-02 16:58:31 +02:00
Jasmine Iwanek
0355a0e2bb Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-05-30 23:58:31 -04:00
Jasmine Iwanek
ed1b369abd Yet more sonarlint fixes 2023-05-29 06:21:17 -04:00
Jasmine Iwanek
cf2a8b8d6d Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-05-16 15:44:04 -04:00
Jasmine Iwanek
6c1e4a8e2c Some code smell fixes from sonarlint 2023-05-15 19:25:56 -04:00
OBattler
1863b72f67 Changed the way the PIC keyboard and mouse IRQ latches operate to avoid spurious IRQ's. 2023-05-16 00:38:28 +02:00
Jasmine Iwanek
c2531baec9 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-05-09 15:40:55 -04:00
OBattler
0554b8c785 Explicitly reset the latches to disabled before attempting to enable them, fixes the latches failing to enable after a hard reset. 2023-05-04 02:20:50 +02:00
Jasmine Iwanek
af0d1b29ea Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-05-01 04:14:16 -04:00
OBattler
8fca57aa79 Universalize the keyboard and mouse latches again, fixes #3280. 2023-05-01 01:35:16 +02:00
Jasmine Iwanek
05d1dbf205 Merge remote-tracking branch 'upstream/master' into feature/ich2 2023-04-27 21:51:10 -04:00
OBattler
78a897f07a Some minor fixes, the PS/2 mouse command F0h (set remote mode) is now implemented, the PS/2 mouse command F3h (set sample rate) now actually changes the host mouse polling rate, and the Intel SIO IB and ZB now forcibly initialize a keyboard and mouse IRQ latch if the board has a PS/2 keyboard controller, to simulate the presence of a latch external to the chip. 2023-04-26 01:42:23 +02:00