13663 Commits

Author SHA1 Message Date
Stanislav Shwartsman
e68b7c36ed rename ATTR_VEX_L0 to ATTR_VL128 in fetchdecode_evex.h 2024-11-09 16:41:49 +02:00
Volker Ruppert
29b63b2cb3 Banshee/Voodoo3: Some optimizations for the desktop / overlay mode.
- Redraw the overlay region only instead of full screen.
- Set up overlay parameters at register writes.
TODO list:
- 24 / 32 bpp desktop support
- Overlay color conversion YUV -> RGB
- Overlay scaling support
2024-11-09 13:47:51 +01:00
Stanislav Shwartsman
ebf7b92243 fix disasm after EVEX opcode handlers rename 2024-11-09 12:39:28 +02:00
Stanislav Shwartsman
b232272a97 simplify AMX code for checking tile consistency to avoid code duplications 2024-11-09 12:31:19 +02:00
Volker Ruppert
365c45bd80 Rewrite of the Voodoo update code.
- Moved Banshee/Voodoo3 desktop update code to banshee.cc.
- Added desktop / overlay mode testing code for the 16 bpp case.
- Added basic UYUV format decoding for black and white output.
- Only the fullscreen overlay mode is handled in voodoo.cc.
- Reduce BX_ERROR messages when writing to vidProcCfg register.
2024-11-08 21:48:10 +01:00
Stanislav Shwartsman
e9cdc92542 allow changing of AC and ID bits in EFLAGS only if 486 or newer CPU model 2024-11-08 01:02:43 +02:00
Stanislav Shwartsman
42c985ec09 allow updating VIP and VIF in EFLAGS only if VME features is enabled 2024-11-08 00:58:24 +02:00
Stanislav Shwartsman
f30cdc367a Added i486DX4 CPUID model which could be enabled even if compiled with CPU_LEVEL=4 only 2024-11-06 15:51:17 +02:00
Stanislav Shwartsman
890cc3acdf added one more rule CPUID sanity checks 2024-11-06 07:23:29 +02:00
Stanislav Shwartsman
ca8daea663 move BRAND STRING parameter from CPUID to CPU option
CPUID option will be removed soon
2024-11-06 07:16:37 +02:00
Stanislav Shwartsman
6409fd68de added more CPUID sanity checks on the way to generic_cpuid removal 2024-11-06 00:36:31 +02:00
Stanislav Shwartsman
605840b6f2 rename macro for better spelling 2024-11-06 00:01:17 +02:00
Stanislav Shwartsman
adc373859c move some AVX512 functions definitions to avx_cvt.cc to avoid code duplication 2024-11-05 23:46:54 +02:00
Stanislav Shwartsman
4648bdfc05 use macroses to implement AVX convert functions
helps to reduce code duplication
2024-11-05 23:42:05 +02:00
Stanislav Shwartsman
9114302129 fix "ADD_FEATURES" implementation 2024-11-05 21:14:40 +02:00
Vort
5daba7ed43
Use more precise timestamps for slowdown_timer (#377)
Should fix #228.

Co-authored-by: Volker Ruppert <Volker.Ruppert@t-online.de>
2024-11-05 09:19:58 +01:00
Jonas Termansen
905293b6f2
Fix printf format issues. (#379)
These issues appear when -Werror=format on 32-bit platforms depending on
the exact definitions of uint64_t and size_t.

It doesn't appear that bochs uses %zu for size_t -- since you support
Windows platforms, unclear if that would work for you. If so, that's
definitely correct rather than the unsigned long cast.
2024-11-05 06:29:45 +02:00
Jonas Termansen
3932aeac12
Get DESTDIR from the environment and add distclean target. (#378)
autoconf-based packages conventionally respect the DESTDIR environment
variable rather needing to explicitly override it.

Likewise the distclean target is conventionally named distclean rather
than dist-clean. This change adds a top-level alias to be compatible.

These changes are needed to build bochs on my infrastructure without
having to special case bochs or locally patch it.
2024-11-04 22:35:07 +02:00
Volker Ruppert
5767dd64ab Banshee/Voodoo3: Report some more unsupported features.
The most important unimplemented feature is the combined desktop / overlay
display mode as shown in issue #369.
2024-11-04 16:30:25 +01:00
Stanislav Shwartsman
0c33c6153e implement ADD_FEATURES similar to EXCLUDE_FEATURES
it allows to add any feature to selected pre-defined CPUID model
2024-11-03 23:01:00 +02:00
Stanislav Shwartsman
35001a23ae small coding style update 2024-11-03 22:42:19 +02:00
Volker Ruppert
f5717a9340 Added some documentation for the VBE memory size option. 2024-11-03 21:36:23 +01:00
Volker Ruppert
c511f3f270 Added VBE memory size option (requires latest VGABIOS).
Setting VBE memory size to 4, 8, 16 and 32 MB is now possible. Since a memory
size change can also change the number of available modes and the value for
"number of image pages" in the mode info it is required to use the latest
VGABIOS binary.
Related changes:
- Make sure the VBE entry appears at index 1 of VGA extension option list.
- Removed all memory size constants and use BX_VGA_THIS s.memsize instead.

TODO: Remove the static mode info table and create it dynamicly similar to
      Banshee and Cirrus.
2024-11-03 19:44:55 +01:00
Volker Ruppert
8562c955bf Updated LGPL'd VGABIOS from GitHub repository.
This change is required for implementing VBE memory size option.
New official release of the LGPL'd VGABIOS coming soon.
2024-11-03 19:11:49 +01:00
Stanislav Shwartsman
c09656db29 according to SDM for VSCALEF* instructions, denormal is not reported for Src2 2024-11-01 18:42:48 +02:00
Stanislav Shwartsman
b1ea77be65 update comment for min/max functions in softfloat3e 2024-11-01 15:59:25 +02:00
Volker Ruppert
87eeb9dcfa Cirrus: In text mode always use the standard VGA update code. 2024-10-31 18:52:09 +01:00
Stanislav Shwartsman
47b05e55e1 revert lock handling change
after checking agains Intel reference decoder (Xed) it shown few mismatches.
The mismatches are not functionally important - some very long instructions with lock prefix would cause #UD (due to badly placed lock prefix) insetad of #GP due to excessive opcode length
Seems like Xed evaluates entire instruction to the end and only then converts it to #UD due to lock prefix
2024-10-30 06:18:46 +02:00
Volker Ruppert
2ddb701433 Cirrus: Fixed lags caused by incorrect redraw value for backward BitBlt. 2024-10-29 22:00:36 +01:00
Stanislav Shwartsman
42e7c31e93 fixed typo 2024-10-29 07:31:27 +02:00
Stanislav Shwartsman
94df2e8694 change the way lock prefix is handled in Bochs decoder
this solves issue with ALT_MOV_CR0 AMD's feature (where lock mov cr0 is treated as mov cr8)
and also speeds up decoding a bit
2024-10-28 23:00:17 +02:00
Stanislav Shwartsman
ce839132ab rename all EVEX opcodes from BX_IA_V512_* to BX_IA_EVEX_*
they are EVEX not necessary V512
2024-10-28 20:28:53 +02:00
Stanislav Shwartsman
52a39639f0 enable x86 debugger extensions by default 2024-10-28 18:47:25 +02:00
Stanislav Shwartsman
052a2c640d add missing \n 2024-10-27 07:42:21 +02:00
Stanislav Shwartsman
dc7de097b8 simplify code for AVX-512 masked merges 2024-10-26 23:49:04 +03:00
Stanislav Shwartsman
884d8983eb rename/simplify names of BF16 instruction handlers 2024-10-26 22:26:13 +03:00
Stanislav Shwartsman
8d1f2e1731 simplify prepare_ne_softfloat_status_helper function 2024-10-26 18:33:55 +03:00
Stanislav Shwartsman
2a9ff9e959 opcode naming style fix 2024-10-26 14:40:27 +03:00
Stanislav Shwartsman
056e1c52bf fixed disasm of VDPBF16PS instruction 2024-10-26 14:25:08 +03:00
Stanislav Shwartsman
a80bcba55d VDBPSADBW must be encoded with EVEX.W0 2024-10-26 14:11:00 +03:00
Stanislav Shwartsman
747f703bd8 fixed decoding of AVX-VNNI-INT8 instructions
instructions VPDPBSSDS and VPDPBSUDS were swapped in decoder tables
2024-10-26 10:16:11 +03:00
Stanislav Shwartsman
50c505224f unify handlers for VCOMISH and VUCOMISH instructions 2024-10-26 09:25:27 +03:00
Volker Ruppert
a94ebf9990 BIOS workaround to fix network boot after adding USB boot option in Bochs.
CHANGES: removed duplicate line.
2024-10-24 23:33:00 +02:00
Stanislav Shwartsman
b3bd4a7eca simplify AMD CPUDB definitions reusing generic function for leaf 0x80000001.ECX
remove specialized function from bx_generic cpuid
add some basics cpuid sanity checks from bx_generic
next step: to remove entire bx_generic cpuid
2024-10-24 21:39:57 +03:00
Stanislav Shwartsman
80019a34c0 Support for disabling of one of more CPU feature from CPUID configuration (see "exclude_features" in bochsrc sample and documentation) 2024-10-24 20:48:53 +03:00
Stanislav Shwartsman
39414b6e62 more updates to CHANGES 2024-10-24 20:20:14 +03:00
Volker Ruppert
bb90786fca Update CHANGES. 2024-10-24 18:18:33 +02:00
Benjamin David Lunt
8fda7423d3
Allow the boot usb option (#209)
This allows the `usb` option to be used in the `boot:` parameter. Of
course there is not support for booting from a USB, but this allows for
a (probably much) further down the road addition.

This will break the current bios when booting from a network. However,
the bios is already broken in this manner, especially when
`BX_ELTORITO_BOOT` is not defined. The current bios code assumes and
hard codes the BEV entry to 4. However, if the `BX_ELTORITO_BOOT` define
is missing, the BEV will be added to the third entry, not the fourth
entry.

For the BIOS to be updated correctly, things like the following will
need to be updated instead of hard coded to `[4]`.

54961f0326/bochs/bios/rombios.c (L2205)

The following will need to be not hard coded to 4.

54961f0326/bochs/bios/rombios.c (L2253-L2257)

The following will need "usb" added.

54961f0326/bochs/bios/rombios.c (L2102)

The following assumes the next entry will be the fourth entry, not
checking to see if `BX_ELTORITO_BOOT` was defined.

54961f0326/bochs/bios/rombios.c (L10851-L10857)

The following comment will need to be updated.

54961f0326/bochs/bios/rombios.c (L8365-L8371)

As well as a few other fixes and updates.

This PR simply allows the value of '4' (`BX_BOOT_USB`) to be placed in
the boot sequence options, moving the network (`BX_BOOT_NETWORK`) to the
next number.

The boot sequence option still only allows three parameters.
`boot: cdrom, floppy, disk`
or
`boot: cdrom, usb, disk`
I don't think it is necessary to add a fourth.

---------

Co-authored-by: Volker Ruppert <Volker.Ruppert@t-online.de>
2024-10-24 17:02:07 +02:00
Volker Ruppert
15badf06c4 Preparing Bochs code for accepting USB boot option PR.
The current code would panic if booting from network is selected.
Added two empty items for PCMCIA and USB as a workaround.
FIXME 1: The config interfaces win32paramdialog and wxdialog now showing
         two empty lines in combo box.
FIXME 2: The Bochs BIOS can only boot from network if selected in boot menu
         (press F12).
2024-10-24 16:48:43 +02:00
Volker Ruppert
7373c19c78 Banshee: added host-to-screen stretching BitBlt support (#365). 2024-10-24 10:07:51 +02:00