Commit Graph

100780 Commits

Author SHA1 Message Date
Matt Borgerson b5015e99b7 target/i386: Check CR0.TS before enter_mmx
When CR0.TS=1, execution of x87 FPU, MMX, and some SSE instructions will
cause a Device Not Available (DNA) exception (#NM). System software uses
this exception event to lazily context switch FPU state.

Before this patch, enter_mmx helpers may be generated just before #NM
generation, prematurely resetting FPU state before the guest has a
chance to save it.
2023-07-15 17:17:27 -07:00
Matt Borgerson 71c8cb62af savevm: Save extra data with iothread lock 2023-06-18 14:53:19 -07:00
Matt Borgerson e10ad42caa xemu-snapshots.c: Drop qemu-common.h include 2023-06-18 01:30:38 -07:00
Matt Borgerson 976319b391 Merge remote-tracking branch 'origin/master' into sync/qemu-7.2.0 2023-06-18 01:19:02 -07:00
Matt Borgerson 0ee7502c23 ui: Make aspect ratio config independent, add autodetect 2023-06-18 00:58:39 -07:00
mborgerson 129c48dd6e
ui: Blank screen when VGA SCREEN_OFF is set 2023-06-14 03:36:47 -07:00
Fabx af3f832fd7
ui: Get Windows product and build number 2023-06-12 11:04:02 -07:00
Matt Borgerson bb05a4f181 nv2a: Fix SET_ANTI_ALIASING_CONTROL
- Rename from SET_SMOOTHING_CONTROL
- Use correct register
2023-06-11 22:52:32 -07:00
Erik Abair 5cd1e3cbca nv2a: (Probably partial) handling for `1D7C`
Implements handling for the unknown 0x1D7C command in order to match observed
behavior in the MS Dashboard and Tenchu: Return from Darkness.

Setting 1D7C's low bit appears to disable the line and poly smoothing commands.

Fixes #1162

[Test](https://github.com/abaire/nxdk_pgraph_tests/blob/main/src/tests/three_d_primitive_tests.cpp)
[HW Results](https://github.com/abaire/nxdk_pgraph_tests_golden_results/wiki/Results-3D_primitive)
2023-06-11 22:44:13 -07:00
Matt Borgerson d557a294fe ui: Move dvd path settings update to lower level for now 2023-06-04 20:24:43 -07:00
Matt Borgerson 5ac1dd1e98 ui: Fix MainMenuSnapshotsView member visibility 2023-06-04 20:24:43 -07:00
Matt Borgerson 7e6ca1097b ui: Only check for xbe if snapshot xbe filter is on 2023-06-04 20:24:43 -07:00
Matt Borgerson 487cc7f591 ui: Make snapshot Replace button red 2023-06-04 20:24:43 -07:00
Matt Borgerson 386a114c01 ui: Show placeholder text when no snapshots are displayed 2023-06-04 20:24:43 -07:00
Matt Borgerson df7e8c23a2 ui: Use larger font for snapshot search text and create button 2023-06-04 20:24:43 -07:00
Matt Borgerson 6fbb0dfbcd ui: Clarify snapshot search/name placeholder text 2023-06-04 20:24:43 -07:00
Matt Borgerson 0155721cfe ui: Create SnapshotManager, check snapshot disc image path 2023-06-04 20:24:43 -07:00
Matt Borgerson 756e423eac ui: Also clear search regex after creating snapshot 2023-06-04 20:24:43 -07:00
Matt Borgerson 2cc2df0be7 ui: Move all snapshot actions into a context menu 2023-06-04 20:24:43 -07:00
Matt Borgerson a96d0c5f79 ui: Stretch snapshot search box 2023-06-04 20:24:43 -07:00
Matt Borgerson 86cdc0a9ab ui: Use stylized toggle for snapshot filter by title 2023-06-04 20:24:43 -07:00
Matt Borgerson 458de1758a ui: Unify snapshot filter and title name search box 2023-06-04 20:24:43 -07:00
Matt Borgerson 4104b3d540 ui: Change snapshot 'Save' button to 'Replace' for clarity 2023-06-04 20:24:43 -07:00
Matt Borgerson d147280cd1 ui: Drop extra snapshot create button 2023-06-04 20:24:43 -07:00
Matt Borgerson d7cbda5081 ui: Allow clicking snapshot Create button without name 2023-06-04 20:24:43 -07:00
Matt Borgerson f62bfc95e3 ui: Improve extra snapshot data storage
- Store snapshot extra data in BE, per convention
- Add a version field for back compat
- Some minor refactoring and renaming for clarity
2023-06-04 20:24:43 -07:00
Matt Borgerson 60a7f55ac4 ui: Scale snapshot thumbnail placeholder properly 2023-06-04 20:24:43 -07:00
Matt Borgerson 348b45b436 ui: Support widescreen thumbnails 2023-06-04 20:24:43 -07:00
Antonio Abbatangelo 9c9f1e83eb ui: Add snapshot management UI 2023-06-04 20:24:43 -07:00
Erik Abair fe5160e859 build: Discover latest macOS SDK instead of hardcoding. 2023-06-04 11:38:38 -07:00
Antonio Abbatangelo 546fe068de nv2a: Ignore nop draws in SET_BEGIN_END_OP_END 2023-05-17 00:15:47 +08:00
Matt Borgerson 8bea1e38e5 ui: Fix FilePicker UAF 2023-05-16 22:01:11 +08:00
Florin9doi 9e1f5f2f19 Set correct version for macOS bundles
Closes #1344
2023-05-02 14:53:13 -07:00
Erik Abair 9723b435fb nv2a: Make multiplication by 0 match HW behavior.
Fixes #1008

The nv2a returns 0 for anything multiplied by zero, including exceptional
values such as Inf and NaN. Desktop GPUs do not enforce this, leading to
conditions where NaNs wipe out calculations and lead to erroneous behavior.

[Test](https://github.com/abaire/nxdk_vsh_tests/blob/main/src/tests/americasarmyshader.cpp)
[HW Results](https://github.com/abaire/nxdk_vsh_tests_golden_results/wiki/Results-AmericasArmyShader)
2023-05-01 13:58:48 -07:00
Antonio Abbatangelo 4a99fd0f18 ui: Add clear button to file picker 2023-03-26 22:20:11 -07:00
wutno 065c74a00f nv2a: Don't manually set NV_PFB_CFG0 reg 2023-03-06 14:02:41 -07:00
Dustin Holden d8fa50e524 smc: Implement read/write of SMC error code storage 2023-02-14 17:10:40 -07:00
Matt Borgerson 7cbe9d337a util/osdep.c: Fix qemu_mkdir missing return value 2023-01-23 12:47:25 -07:00
Matt Borgerson 3c836586be ci: Update xemu-win64-toolchain image tag 2023-01-23 12:39:36 -07:00
Matt Borgerson d0d3e7b4fa xemu-win64-toolchain/sdl2.mk: Specify PKG_FILE 2023-01-23 10:37:06 -07:00
Matt Borgerson c08183c54d xemu-win64-toolchain: Add libslirp v4.7.0 2023-01-23 10:37:06 -07:00
Matt Borgerson d14e3360d3 scripts/download-macos-libs.py: Add libslirp 2023-01-23 02:17:32 -07:00
Matt Borgerson e1cd23213f configure, meson: Use legacy gl/epoxy detection for now 2023-01-23 02:17:32 -07:00
Matt Borgerson 577c469ae1 scripts/gen-license.py: Update libslirp 2023-01-23 02:06:46 -07:00
Matt Borgerson 9c3e05ded4 configure: Add back fortify source option 2023-01-23 00:30:40 -07:00
Matt Borgerson 03ba4ecad2 ci: Drop QEMU GH mirror's lockdown.yml workflow 2023-01-23 00:30:40 -07:00
Matt Borgerson 861492d62a meson: Use optimization level 3 2023-01-23 00:30:40 -07:00
Matt Borgerson 3afd8456d5 xbox.c: Fix null string warning 2023-01-23 00:30:40 -07:00
Matt Borgerson 38f294c58a softmmu/runstate.c: Fix unused variable warning 2023-01-23 00:30:40 -07:00
Matt Borgerson 637a37dd02 target/i386: Fix unused function warning 2023-01-23 00:30:40 -07:00