macOS: anchor the guest address space in full-emulator test targets #143
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!143
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/143/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Stepz97 on GitHub · 2026-08-01 09:39 UTC · original
Stepz97:macos-test-address-space→main· +3 −1 · 1 files · 1 commits · merged 2026-08-02 00:27 UTCWhat changed
Move the
configure_macos_guest_address_space()call intoadd_kyty_full_emulator_test()itself, so every target that function creates gets the linker flags that anchor the guest address-space segments. Drop the now-redundant explicit call onvirtual_memory_allocation_tests. Thekyty_emulatortarget is untouched.Why
Every target created by
add_kyty_full_emulator_testcompileskernel/macosGuestAddressSpace.cpp, so it carries the ~620 GiB of.zerofillsegments (SYSTEM_MANAGED, SYSTEM_RESERVED, USER_AREA). Onlykyty_emulatorandvirtual_memory_allocation_testsalso received the-segaddr/-no_pie/-pagezero_sizeflags that anchor those segments; every other full-emulator test binary got the segments at default placement, and macOS kills those binaries at load:main()runsposix_spawnfails with EIOProcess not started [i/o error], soshader_recompiler_compute_testsand the 9 test entries that reuse that binary show up as BAD_COMMANDCI does not catch this because the macOS job neither builds these test targets nor runs ctest.
How verified
On Apple Silicon (M3 Ultra, macOS 26, x86_64 build under Rosetta 2):
shader_recompiler_compute_testskilled on exec; 10 ctest entries BAD_COMMAND.ctest -R 'compute|scheduler|tiler|texture'passes 7/7 (withDYLD_LIBRARY_PATHpointing at the install dir for MoltenVK).virtual_memory_allocation_testsstill passes (19/19) after removing the duplicate call.otool -lconfirms the segments are unchanged and now anchored in every full-emulator test binary.@Nmzik on GitHub · 2026-08-02 00:27 UTC · original
@Stepz97 Thanks!