Repository navigation
Conversation
…vice-displaysafearea-unmapped docs(libSceSystemService): record the valid-buffer and unmapped-pointer results of sceSystemServiceGetDisplaySafeAreaInfo on firmware 11.60
…r-profile-dirty-state fix(input-mapper): track unsaved profile title IDs
…queuelevel-depth-measured docs(libSceAudioOut): record the queue level and result of sceAudioOut2ContextGetQueueLevel at full depth
…sfs-mount-retry fix(libSceUsbStorage): mark sysfs device seen only after valid mount probe
fix(libkernel): sceKernelUuidCreate returns a time based version 1 UUID
…ll-descriptors test(agc): skip the null image size check without nullDescriptor
…n-memory-decode test(shader): pin the fields GCN SMRD, MUBUF and MIMG keep in RDNA
…am-broadcast fix(libkernel): keep the socket options Winsock refuses for a socket type, as FreeBSD 11.4's sosetopt does
…ows-pipe-sigpipe fix(libkernel): raise SIGPIPE for a Windows write to a pipe without a reader, as FreeBSD 11.4's dofilewrite does
…cos-rename-over-unreadable-dir fix(libc): replace an unreadable empty directory on rename on macOS
…ide-store-32bit-ea fix(relinker): guard wide-store 32-bit spill frame and test 4 GiB boundary
…length-changing-rewriter feat(relinker): adjust relocations, FDEs, and jump tables on length-changing rewrites
…ped-bytes fix(tools): count skipped frame replay bytes exactly
…ounter-from-main test(agc): bound the PM4 system counter by the time since main
…utline-reverse-check fix(libSceFreeType): match the console for FT_Outline_Reverse and FT_Outline_Check
…n-scalar-decode test(shader): pin GCN SOP1, SOPC and SOPP decoding
…n-vop1-export-decode test(shader): pin GCN VOP1 and export decoding
…rst-lane-table-column-addend test(shader): plan an image table column from first-lane offsets through a select
fix(libkernel): read a socket number as closed while its close releases it
…t-fault-pointers fix(libcairo): fault context pointers that Cairo dereferences
…an unchanged tail Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…everse Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…le store sees their results (boykopovar#20132)
…missing-vulkan-loader fix(video-out): skip tests without Vulkan loader
…x-stringbuf-getter feat(libc): implement libc++ string buffer contents getter
…-thread-cpu-time fix(libkernel): read the calling thread's CPU time in nanoseconds on macOS
…-recipe fix(libc): record a repeated ANYPS5 variable once in the run recipe
…x-wide-string-grow feat(libc): implement libc++ wide string growth
…-fix-agc-keep-read-trapped-pages-in-linux fix(agc): keep read-trapped pages in Linux frame captures
…ate-console docs(debt): record that a PS5 does not check the key pointer of pthread_key_create
…er-load-addressing test(hw-oracle): probe buffer swizzle and lane-adjusted addressing
* feat(libSceLibcInternal): implement inet_neta * test(libSceLibcInternal): cover the inet_neta buffer boundary * fix(libSceLibcInternal): restore the full ISC notice in inet_neta * ci: rerun checks * fix(libSceLibcInternal): report inet_neta EMSGSIZE through the guest errno Co-authored-by: Dean <158058829+oneandonlydean@users.noreply.github.com>
…siginfo-sigfpe-faults feat(libkernel): run SA_SIGINFO SIGFPE handlers for guest divide errors, as FreeBSD 11.4 does
…play-cache-diagnostics test(agc): show what the replays logged when the cold pipeline check fails
…opovar#28126) * fix(tools): read frame replay logs up to the recipe's log bound * fix(tools): parse the host report without keeping every log line
…-environment fix(tools): recognize literal SwitchOn environment reads
…er-store-formats test(hw-oracle): probe buffer store conversion and bounds
…fios2-archive-mount-throw fix(libSceFios2): throw from the archive mount exports and record the cache decisions
…oykopovar#27887) * fix(shader): emulate image atomics on 8- and 16-bit integer texels * fix(shader): offer no multisampled mode for 8- and 16-bit image atomics * test(agc): check narrow image atomics on two neighbours of one word and from one lane * docs(shader): state that narrow image atomics are not atomic against plain image stores * fix(shader): keep helper invocations out of texel and qword lock loops * test(agc): run narrow image atomics in whole quad mode with helper lanes * test(agc): skip the pixel helper image atomics test without formatless storage image access
…e-load-formats test(hw-oracle): probe image load formats and destination selection
fix(libSceLibreSsl3): report OCSP_resp_find_status guest-input throws as faults
…bressl3-reject-oversized-x509-der fix(libSceLibreSsl3): reject oversized X509 DER inputs
…erence-array-constants fix(tools): resolve environment names held in character array constants
…erence-suffixless-names fix(tools): read computed environment names that end with to_string
…-executable-dtpmod64 fix(relinker): resolve an executable's dynamic TLS in macOS output
fix(relinker): preserve RELRO with nonconflicting lazy slots
…udit-safe-wrappers fix(tools): recognize checked guest copy wrappers
…etbuf feat(libc): configure narrow libc++ filebuf storage
…ntries fix(agc): look up guest ranges and residency only for memory-address fault entries
…eline-present-title-text fix(trace_timeline): escape invalid XML characters in present titles
…ace-address-bare-cr-lines fix(memory_trace_address): count only line feeds as line breaks
…rt-pending-fragments fix(debt_report): apply pending debt fragments
…nter-audit-more-dereferences fix(guest_pointer_audit): report dereferences after more operators and else
…nter-audit-restrict-parameters fix(guest_pointer_audit): accept restrict and volatile after the asterisk
…n-sync-long-pathspec fix(check_main_sync): query merged pull requests in path chunks
…ence-named-defaults fix(env_reference): read integer readers whose default is not a literal
…dit-extended-path fix(import_audit): keep already-extended Windows paths unchanged
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings boykopovar/AnyPS5
mainfrom 809a271 (where #209 stopped) to f5bba24: 2481 commits, with the fork's macOS changes kept on top. The reason for this merge now is upstream boykopovar#27590 (be0dc25, "fix(libkernel): place the AMM ranges in a reserved window outside the guest arena"), which removes the GTA VI start-up abortfixed mapping ... overlaps a registered guest allocation.tools/dev/merge-checks.pyreports 0 problems (165 C/C++ files both sides changed), on the work tree before the commit and on the merge commit.boykopovar#27590 on macOS
0x80000000000inArena::SeedHostUsedRanges, which is shared by Linux and macOS. On macOS itsReserveNoReplaceis themach_vm_map(VM_FLAGS_FIXED, VM_PROT_NONE)path the guest arena already uses, so upstream did not leave macOS out and nothing had to be ported for the reservation itself. If the host cannot reserve the window,sceAmprAmm*throws with the OS error, as upstream does.Apr.cpp: the fork's "no guest arena (macOS)" fallback, which put the AMM range wherever the host placed it, is replaced by upstream's window. It dates from before the macOS guest arena existed; since thenGuestArenaRangenever returned a zero base on macOS.DirectMemory.cppPlaceMapping: the arena-containment check (now upstream'sGuestArenaFixedTarget) stays Linux-only, as before. On macOS the fixed branch callsGuestArenaRequireMapperAccessinstead, so a title's own fixed map into the AMM window stops withNotImplementedthere too (upstream does the same on Windows before its no-overwrite walk). A fixed map that the arena contains, now including the window, is marked used and committed in the arena on macOS as before.PosixMemory.cpp: upstream'sGuestArenaRequireMapperAccessfor fixed anonymous maps runs on every platform; the containment check stays Linux-only and macOS keeps its page-zero check.guest_amm_placementwas skipped on macOS (if(NOT APPLE), from the time before the macOS arena). It now builds and runs there as upstream has it (skip code 77 when the window is not reserved), so CI shows whether the window reserves under Rosetta.Conflicts (67 files)
libc/include/GuestArena.hppGuestArenaBeginImportWriteandHostWrite(…, Import)GuestArenaTryBeginHostWrite,HostWrite::Try(4131f51), the AMM mapper window declarationslibc/src/GuestArena.cppAPS5_NO_HOST_WRITE_FLUSH,TraceHostWrite, theBeginHostWrite/BeginImportWritesplitGuestArenaBeginHostWritebefore the import part, so the fork's partial-write handling in the write watch only sees directGuestWriteWatchBeginHostWritecallerslibc/include/GuestWriteWatch.hpp,libc/src/GuestWriteWatch.cppBeginUntrappedand its detached trap resolution (#226, #233),OpenImport/CloseImport,HostWrites,ChainSignal, the lock sites, the host write that leaves unwritable pages alone and opens the writable ones compared (openCompared, #213, #216),resolveDetachedwithDetachedSlotsand_resolverRunningTryBeginHostWriteandopenHostWrite(4131f51), which now hold the fork's partial-write body;BeginOwnStore/EndOwnStoreand the fault-ahead stop at a driver's own store (422efbb). Both sides addedresolveDetached: the fork's is kept and takes upstream's skip of a page already queued. Upstream's newLockuses get the fork's lock sites (SiteBeginHost,SiteEndHost)libSceAgcDriver/Execution/src/GuestMemory.cppHostWrite::TryinImportWatched(both sides built the refusal of an import over read-trapped pages: the fork in #226/#233 for #201 viaUntrappedImport, which stays, upstream in boykopovar#26221);std::min<std::size_t>inCompareMapped(both fixed the same type mismatch). The hookTrycalls is a no-op there (OwnHostWrite), so the fork's reason forImportno longer applies;Importis now unusedlibc/include/GuestAllocations.hppGuestAllocationsHeldByThisThreadGuestAllocationsMapGenerationlibkernel/DirectMemory/DirectMemory.cppMapPlaced(kind, …)with its failure trace (#199),PlaceMapping, the macOS fixed-mapping pathGuestArenaFixedTarget(Linux only, see above),MapAligned'swatchargument and!InMapperWindowfor reservationslibkernel/DirectMemory/PosixMemory.cppGuestArenaRequireMapperAccess,GuestArenaFixedTargeton Linuxlibkernel/Apr/src/Apr.cpplibSceAmpr/CMakeLists.txtguest_amm_placementon every platform,SKIP_RETURN_CODE 77 TIMEOUT 60libs/tests/GuestAmpr.cpplibs/tests/guest_arena/CMakeLists.txtexhaustedmapper-windowlibc/include/General.hpp,libc/src/General.cppUnresolvedImport_nid_no_patchGuestFault_nid_no_patch,GuestFaultAt_nid_no_patchlibc/include/specifics/itanium/CxxAbi.hpp__sub_kindvalues; upstream's enum (same values)libc/src/specifics/linux/CrashReport.cppripfor SIGILLripreport out ofReportRegistersAndStack; the fork's byte dump moved with itlibc/src/specifics/windows/CrashReport.cppHandleCacheFlushHandleClzero, after itlibkernel/System/src/Exception.cppHostRip,mainImageand the early write watch start on macOSSiginfoFault(const Fault&)(the macOS call sites use it too),FaultAction()libkernel/Socket/src/Udp.cppNoteConnectErroron macOS, the INADDR_ANY commentDroppedTcpConnection(a9af1f2): a reconnect after a dropped connection returns ECONNREFUSED; it is checked first, then the fork's never-connected EISCONN caselibkernel/Time/Time.cppCLOCK_THREAD_CPUTIME_IDunder Rosetta; upstream's unit probe (HostMachThreadCpuNanos) replaces the fork'sthread_inforeaderlibSceNet/Export.cppUnmodelledPeerDescriptorNET_SOCKET_BUFFER_LIMIT/RESERVATION_LIMIT(the fork'sNET_SOCK_RAWstays where it moved), the multicast stream bind refusal, zero-length receives,MSG_WAITALL(ReceiveAll), the#endifupstream dropped inReceiveMessagelibSceNpManager/Export.cppOnline::Callwrappers,requestResults, the sign-in helpersRequestKindandliveRequestsas a map;sceNpPollAsyncrefuses a sync request withINVALID_IDlibSceUserService/Export.cpp,libSceAppContent/Export.cpp<algorithm>,DiskAddons.hppGuestArena.hpp,File.hpp,KernelStatfs.hpplibSceFont/src/Text.cppReadCharacter/ClusterStartreplaces the fork'sPrevTextCharacter/NextTextCharacter(removed, unused)libSceFreeTypeOl/Export.cppFT_Attach_Stream_nid_postfix. The fork kept the old stub off macOS because the bundled FreeType's own symbols were exported; the library now exports only*_nid_*on macOS (25832a5), so there is one export of that NIDlibSceVideoOut/src/PadInput.cppcontrollerSubsystem = truelibSceVideoOut/src/VideoOutDriver.cpphdrProbe.Pollon the main threadlibSceVideoOut/tests/PadSdl.cppstick0PadInputsubsystem check, before itlibSceAgc/DcbState/src/Display.cpp,libSceAgc/Acb/src/Control.cppWriteFlip, shared by DCB and ACBWriteFliplibSceAgc/tests/Commands.cpptestAcbFlip(runs while the outputs are registered)testUnregisteredFlipHandleafterunregisterOutputslibSceAgcDriver/Execution/src/Driver/Draw/Draw.cppDrawVerdict::Split),splitPreparelibSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cppLeaveOutTableCalleeand the unlinked callees it leaves out,traced.descriptorAddressLinkedTableCallees, the!splitrecord flags,SplitTableCallMaxCalleeBytes(counted outside the fork's try block)libSceAgcDriver/Graphics/include/Pipeline.hppBarycentricPatchStagesReadsFrontFacinglibSceAgcDriver/Graphics/include/ShaderResources.hpp,Graphics/src/ShaderResources.cpp[draw-bindings]profile,writeDrawSetsreturning its write count and timings, the previous draw's sets reusedselectedforSnapshot::allocation(bb1670a). The reuse check now compares each snapshot'sallocation, andlastDrawSelectedis gonelibSceAgcDriver/Graphics/include/VertexInput.hppIndexedFetchRecords,RedirectIndicesPastRecords,LastVertexFirstListSoloZeroPaddedFetchIndiceswith binding endslibSceAgcDriver/Graphics/src/Draw.cppinputs.emulatedMesh == nullptrin the recipe checklibSceAgcDriver/Graphics/src/GuestSamplerResource.cppUnrenderableDrawwrapperlibSceAgcDriver/Graphics/src/Recorder.cppWrittenSinceOnValidatedlibSceAgcDriver/Graphics/src/Sampler.cppvalidateSamplerwithrefuseSampler, the LOD bias clampvalidateSamplerlibSceAgcDriver/tests/Recorder.cpp,tests/execution/F16ScalarArithmeticNan.cpp,tests/execution/SampleMultisampleTarget.cpplibSceAgcDriver/tools/ShaderReplay.cpp--relaxedarguments)shader/recompiler/ControlFlow/src/RequestSerializer.cppsubgroupStages,meshAsCompute)windowSelects) and 66 (eleven target and context flags). The fork's fields move to version 67, after themshader/recompiler/tests/RequestSerializerTests.cpp,libSceAgcDriver/tests/ShaderMemory.cppStripForkTail/stripForkTail, now from 67 to 66, also on upstream's new decodes (VerifySampleContexts,VerifyReplayOptions, the version 65 checks,VerifySplitState)Version65Bytes/Version64Bytesand its version 66 cuts (- 26u). The "unsupported version" probes move to 68shader/recompiler/SpirvBackend/src/SpirvEmitter.cppsingleLane,singleSampleImageswindowSelectsRequestedshader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpplevels,inRange)shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cppmeshAsComputenarrowImageAtomicLocksrelinker/elfpatcher/include/elfpatcher/macos/MacOsMachOPatcher.hppDefaultFixedBaserelinker/elfpatcher/src/macos/MacOsGuestModuleWriter.cpp,MacOsMachOPatcher.cppFallbacks)PlatformTlsResolverImports, and the executable's__tls_get_addrimport bound toAps5GuestTlsGetAddr_nid_no_patch(5237bf4)relinker/relinker/src/guest/GuestModuleBuilder.cppdeclaresHost(macOS stub exports)--executable-module(d1ecb3c). The fork'sguestModuleImportalso counts an import from a module bound to the executable, so those imports keep their plain NID as upstream keeps themrelinker/relinker/tests/test_macos_output.pyLOAD_RVA, the segment-limit fixturesIMAGE_BASE = 0x3F0000libcurl/CMakeLists.txtlibs/tests/GuestAgcDriverResources.cpp,GuestShmOpen.cpp,GuestSystemService.cpp,libSceIcu/tests/DataMemoryClose.cpplibSceNKWebKit/tests/HistoryItem.cpptools/frame_capture_minimize.pyreturnon macOS EPERMREADME.mddocs/dev/ENVIRONMENT.mdAPS5_GUEST_COPY_SYSCALLon macOSAPS5_HANG_DUMP_SECSon Linuxdocs/user/USAGE.mdripbytes sentenceinstall_name_tooltext, cache flushes as NOPs on every relinkUpstream behaviour the fork now has
0x400000by default (df1aab2, upstream fix(relinker): load macOS executables at 0x400000 by default boykopovar/AnyPS5#24967), with a no-access__APS5LOWreserve up to 4 GiB. It came in without a conflict inMacOsImage.cppandConversion.cpp. The fork's packaging and launcher pass no--macos-fixed-base, so every relinked title moves from0x140010000to0x400000; the macOS guest arena starts at0x200000000, above the reserve. Upstream measured it on macOS 27 / M4 (94 homebrew titles, DOOM Native Port).On our side
--executable-module <name>. It joinswithValueintools/macos/launcher/Sources/AnyPS5Core/CustomOptions.swift. AnyTogether/AnyPS5-Desktoplib/core/custom_options.dartneeds the same line in a PR there.ctest-known-failures.txt.CI