Commit Graph

12506 Commits

Author SHA1 Message Date
TC1995
c00e854fce Fix compile.
See above.
2024-02-24 21:52:06 +01:00
TC1995
21230f933e Temporary solution to a 24bpp issue and hblank.
So that 24bpp color is not discolored anymore as well as hblank bugs being nulled.
2024-02-24 21:50:01 +01:00
rilysh
1dfb6fd111 bswap.h: fix GCC requirements for bswap* builtins
1. __builtin_bswap{32,64} were added in GCC 4.3, and __builtin_bswap16
was added in GCC 4.8, however, currently, the GCC requirements in
bswap.h file has >= 10. This requirement of GCC version is false for
bswap* but true for __has_builtin() (as it first was added in GCC 10.1).
As bswap* builtins were added before GCC 10, the preprocessor check will
always going to be true for bswap but will be false if GCC version is
< 10 as __has_builtin() won't be present. Since the byteswap function,
on x86-64, can boil down to a single bswap instruction, this optimization
may left behind (unless GCC do some pattern matching). To avoid this,
just use the compiler macros (for GCC: __GNUC__, clang: __GNUC__ or
__clang__) and if the compiler is neither GCC or Clang, fall-back to
native implementation.

2. Remove the useless casts (uint{16,32,64}_t) from the constants. These
constants already has their own suffix, and casting to a different type
will just get ignored as the return value already gets casts to it's
appropriate type.

3. Previously, Clang couldn't able to use __builtin_bswap* (even if it was
newer) as LLVM define __GNUC__ macro to a specific constant (usually lower
than GCC's (__GNUC__) and on my system it's 4) which is indeed < 10. The
first comment also fixes this issue.

Link: <https://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Other-Builtins.html>
Link: <https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Other-Builtins.html>
Link: <https://libc-alpha.sourceware.narkive.com/PfaB4BGP/patch-byteswap-h-fix-gcc-ver-test-for-builtin-bswap32>
2024-02-24 23:19:32 +05:30
Miran Grča
9d78fb7474 Merge pull request #4199 from mystuffs/errno
unix_serial_passthrough.c: check errno for EWOULDBLOCK
2024-02-24 16:23:56 +01:00
Miran Grča
845845cadf Merge pull request #4200 from AsciiWolf/metainfo-fix
Fix AppStream metainfo file
2024-02-24 16:23:39 +01:00
AsciiWolf
52ffbe582f Fix AppStream metainfo file 2024-02-24 14:08:26 +01:00
rilysh
6b435088f9 unix_serial_passthrough.c: check errno for EWOULDBLOCK
plat_serpt_write_vcon(): write() returns how much data it has written
to the file descriptor, and in case an error, it returns -1. So the
EWOULDBLOCK never really triggers, as in the following condition we're
not checking the errno, but the return value of the write() function.
2024-02-24 13:59:14 +05:30
OBattler
1d2f8937b7 SiS 5581 machines are not supposed to support AGP. 2024-02-24 04:57:35 +01:00
Miran Grča
d93bd658be Merge pull request #4198 from Cacodemon345/s3_virge_buffer_fixes
S3 ViRGE: Buffer flips no longer trigger recalctimings
2024-02-23 23:08:44 +01:00
Cacodemon345
b49cd0baf4 S3 ViRGE: Buffer flips no longer trigger recalctimings 2024-02-24 02:51:42 +06:00
OBattler
f417a347a6 Revert the default hard disk format change. 2024-02-23 18:13:52 +01:00
OBattler
25203be56a Change the default hard disk image format to fixed-size VHD. 2024-02-23 17:35:54 +01:00
OBattler
2e482bf560 Merge branch 'master' of https://github.com/86Box/86Box 2024-02-23 17:02:50 +01:00
OBattler
9124e8165b Removed the incorrect usage of CRTC register 3 bits 5 and 6. 2024-02-23 17:02:42 +01:00
Miran Grča
89eeb6af39 Merge pull request #4195 from Cacodemon345/patch-164
S3 ViRGE: a bit of cleanup
2024-02-23 16:52:39 +01:00
Miran Grča
8145b96243 Merge pull request #4197 from cartifanwlr/s3fix
Fix the internal name of the S3 Trio64V+ VLB
2024-02-23 16:52:08 +01:00
cartifanwlr
c57dfed4e7 Fix the internal name of the S3 Trio64V+ VLB 2024-02-23 18:41:41 +03:00
Cacodemon345
181ffbcffb S3 ViRGE: a bit of cleanup 2024-02-23 20:47:27 +06:00
Miran Grča
78ff7f4253 Merge pull request #4194 from Cacodemon345/patch-163
S3 ViRGE/GX2: Fix screen overlay staying on Windows XP
2024-02-23 12:32:39 +01:00
Cacodemon345
45dff17d58 S3 ViRGE/GX2: Fix screen overlay staying on Windows XP 2024-02-23 16:25:50 +06:00
Miran Grča
b0e7cbc86f Merge pull request #4193 from Cacodemon345/patch-162
S3 ViRGE: Respect blend control compose modes on pre-GX2 ViRGE
2024-02-23 11:06:38 +01:00
Cacodemon345
a893aba1ca S3 ViRGE: Respect blend control compose modes on pre-GX2 ViRGE
Fixes video overlay staying on-screen on Linux.
2024-02-23 14:27:26 +06:00
OBattler
b55c7b91dd The forgotten version bumped files. 2024-02-23 07:23:52 +01:00
OBattler
5c1cdb3c45 Bump version to 4.1.1. 2024-02-23 07:13:02 +01:00
OBattler
6de7c7cd5e Fixed LOCK legality with prefixes, closes #4189. 2024-02-23 07:10:15 +01:00
OBattler
4ee4e8f2b7 Fixed the flags and classification of some SiS machines, closes #4192. 2024-02-23 06:41:02 +01:00
Miran Grča
b728172edc Merge pull request #4190 from 86Box/tc1995
Video related changes:
2024-02-22 13:36:52 +01:00
TC1995
46fbb3bb9e Video related changes:
IBM/ATI 8514/A side:
Made mode switches more immediate when actually switching from VGA to 8514/A and viceversa.

Tseng ET4000AX/W32 series side:
Actually use bit 2 of index 0x3f for the horizontal blank start bit 8 instead of bit 4 (horizontal retrace start), fixes skew issues with the et4000w32i rev B. card with resolutions like 1024x768 at 15 or 16bpp and others.
2024-02-22 13:35:04 +01:00
OBattler
2fe92a2f26 Fixed a typo in chipset/umc_8890.c. 2024-02-22 12:22:07 +01:00
OBattler
8cf8ccf3b3 Added the STB PowerGraph 64 Video (S3 Trio64V+ VLB). 2024-02-22 01:08:21 +01:00
OBattler
fcabd353d9 Check IOPL on 286 task segments. 2024-02-22 00:56:28 +01:00
OBattler
58a0c840c1 Added SiS 550x, 558x, 559x, (5)600, UMC UM8890, UMC UM8663 Super I/O Chips, UMC UM8673F and Winbond W83769F IDE Contollers, and a number of machines, and fixes to the UM888x 486 chipset. 2024-02-22 00:52:20 +01:00
Miran Grča
c902282dbf Merge pull request #4182 from Cacodemon345/chips_69000_black_cursor_64x64_fix
C&T 69000: DPMS
2024-02-20 22:42:00 +01:00
Cacodemon345
1b5d84f366 C&T 69000: DPMS
Also draw black overscan when monitor is turned off via DPMS.
2024-02-21 02:25:40 +06:00
Miran Grča
3f65aedc58 Merge pull request #4181 from Cacodemon345/chips_69000_black_cursor_64x64_fix
C&T 69000: Fix black cursor on Red Hat Linux 8
2024-02-20 20:45:42 +01:00
Cacodemon345
80adef5ee6 C&T 69000: Fix black cursor on Red Hat Linux 8 2024-02-21 01:43:36 +06:00
Miran Grča
49b7c6140c Merge pull request #4180 from 86Box/tc1995
TVP3026: remove excess logs.
2024-02-20 19:57:17 +01:00
TC1995
8b4fb1b2ab TVP3026: remove excess logs.
See above.
2024-02-20 19:11:47 +01:00
Miran Grča
a0901efc1c Merge pull request #4179 from 86Box/tc1995
Some temporary video changes regarding the horizontal display.
2024-02-20 18:45:54 +01:00
TC1995
963b7eec04 Some temporary video changes regarding the horizontal display.
S3 side:
Temporary changes to match the release (due to tomorrow) of 86box. Said changes are about the horizontal display of the tvp3026-based S3 chips.

IBM/ATI 8514-based:
Temporarily commented out the hblank side of it due to htotal bugs.

TVP3026 side:
When the upper clock selection bits are 0 and when extended VGA modes are set, double the hdisp.
2024-02-20 18:41:51 +01:00
OBattler
78dd603951 Minor change to FDC37C6xx. 2024-02-20 07:26:44 +01:00
OBattler
733c26d04a Return no mask when the TSS type is 286, closes #4177. 2024-02-19 19:09:35 +01:00
OBattler
e3e30e7536 Fixed a very stupid typo in the 286/386 version of the LOCK instruction that was breaking OS/2 Warp 3.0. 2024-02-19 15:41:49 +01:00
OBattler
19f6954410 Reverted some CPU-related changes. 2024-02-19 15:20:59 +01:00
Miran Grča
c5f39507a8 Merge pull request #4178 from Cacodemon345/chips_69000_16bpp_pat_fix
C&T 69000: Fix pattern drawing in 16-bpp modes
2024-02-19 13:30:01 +01:00
Cacodemon345
10c744d665 Remove frequency logging 2024-02-19 16:07:14 +06:00
Cacodemon345
6f22d58a4f C&T 69000: Fix pattern drawing in 16-bpp modes 2024-02-19 16:01:49 +06:00
Miran Grča
10b1a95225 Merge pull request #4175 from Cacodemon345/patch-160
C&T 69000: avoid stale linear mappings
2024-02-18 23:43:38 +01:00
Cacodemon345
91aa53d8a6 More correct linear mapping behaviour 2024-02-19 04:31:08 +06:00
Cacodemon345
cfebf4439b C&T 69000: avoid stale linear mappings 2024-02-19 04:19:55 +06:00