Commit Graph
8311 Commits
Author SHA1 Message Date
JJenkxandClaude Opus 5.5 8b5c02ca61 fix(libc): store EDOM and raise FE_INVALID from acosf and asinf domain errors
For |x| > 1, the infinities and NaN, titles' libc.prx stores EDOM and
raises FE_INVALID from acosf, quiet NaN included, and asinf also
raises FE_INVALID for a quiet NaN. acosf returned the same NaN bits
without either, and asinf set errno but raised nothing for a quiet NaN.
Both now call _Feraise with the invalid exception, which stores EDOM
and raises the flag in both units; the results are unchanged.

The acosf test asserted the old errno-preserving behaviour from a
FreeBSD reading; it now checks the titles' EDOM and FE_INVALID.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 05:17:22 -04:00
Adrià ab168194d4 Merge pull request #11732 from milescoviello/docs/virtualquery-title-reads
docs(libkernel): note the sceKernelVirtualQuery fields seven titles read
2026-10-28 10:09:05 +01:00
Adrià 3b979d42a9 Merge pull request #11412 from blawesom/feat/host-test-executable-helper
build: add configure_host_test_executable for host-only test executables
2026-10-28 10:06:08 +01:00
Dean 871517aaee Merge pull request #11521 from Lindamea1/fix/font-writing-non-owning
fix(libSceFont): stop a font writing from owning its string's characters
2026-10-28 22:02:06 +13:00
Adrià cc672fdfc6 Merge pull request #11366 from guglia001/test/relinker-conversion-fuzzer
test(relinker): add a libFuzzer target for the whole conversion
2026-10-28 09:56:49 +01:00
Adrià e2e27a3ba9 Merge pull request #11717 from xXPBSXx/docs-agc-alpha-to-coverage-round
docs(agc): record the unsupported DB_ALPHA_TO_MASK value 0x1aa01
2026-10-28 09:54:18 +01:00
Adrià 4c4fce3d82 Merge pull request #10502 from frankea/fix/net-show-ifconfig-netstat
fix(libSceNet): print the interface and socket tables from sceNetShowIfconfig and sceNetShowNetstat
2026-10-28 09:49:51 +01:00
Adrià 5b8ba7b929 Merge pull request #11443 from JJenkx/feat/agc-compute-inspection-20261026
feat(agc): inspect captured compute pipeline statistics
2026-10-28 09:41:21 +01:00
Adrià aa159b2f24 Merge pull request #9399 from Felipebmaitan/feat/freetype-advance-queries
feat(libSceFreeType): implement advance queries
2026-10-28 09:21:16 +01:00
frankea 2129d1f7b5 fix(libSceNet): print the interface and socket tables from sceNetShowIfconfig and sceNetShowNetstat
Since #9137 both throw after sceNetInit. A PS5 on firmware 13.40
returns 0 from each and prints plain-text tables to stdout. They now
print the console's layout with what the emulator knows: ifconfig an
eth0 block from the host interface sceNetCtlGetInfo reports (the same
MAC, address, netmask and MTU), the console's lo0 block and the DNS
servers; netstat the header and one entry per socket and epoll of the
title, with the self and non-blocking flags, addresses, buffer sizes and
the names given to sceNetSocket and sceNetEpollCreate, which are now
kept. The debt entry lists what the console prints that is left out.

guest_sce_net captures both outputs: the lo0 block and DNS section, a
named unbound UDP socket, a non-blocking listening TCP socket bound to
127.0.0.1, an epoll, a 40-character name cut to 31, and the entries gone
after close.
2026-10-28 09:05:58 +01:00
Adrià d7fd416992 Merge pull request #11231 from Gruzzberry/feat/kldsym
feat(libkernel_sys): implement kldsym argument checks
2026-10-28 08:56:23 +01:00
Adrià 7fc0ae6008 Merge pull request #11199 from QRMOE/fix/shader-pixel-helper-lane-masks
fix(shader): keep pixel helper lanes out of guest lane masks
2026-10-28 08:54:16 +01:00
Adrià 660a0b306d Merge pull request #11032 from Gruzzberry/feat/kenv
feat(libkernel_sys): implement kenv
2026-10-28 08:39:51 +01:00
JJenkx b971004857 feat(agc): inspect captured compute pipeline statistics 2026-10-28 08:27:11 +01:00
Dean da6b0ea8dd Merge pull request #11884 from JJenkx/windows/libc-strtof-nan-payload
fix(libc): keep NaN payloads in strtof and wcstof as titles' libc.prx does
2026-10-28 20:11:27 +13:00
Adrià fddf0ffb75 Merge pull request #9129 from EagleBearerYS/fix/agc-draw-cache-byte-budget
fix(agc): bound the draw cache by bytes
2026-10-28 08:07:42 +01:00
Adrià d5140548fc Merge pull request #11051 from simnJS/claude/usb-storage-system-service
feat(libSceSystemService): call libSceUsbStorage from the USB storage aliases
2026-10-28 08:06:39 +01:00
Adrià e611e7719f Merge pull request #11005 from harisibrar1/fix/map-undefined-protection-einval
fix(libkernel): refuse undefined protection bits in the map calls with EINVAL
2026-10-28 08:04:38 +01:00
GruzzberryandClaude Sonnet 5.5 762a280ee3 feat(libkernel_sys): implement kenv
Follow FreeBSD 11.4 sys_kenv: KENV_GET, KENV_SET, KENV_UNSET and KENV_DUMP over
an in-memory kernel environment of at most 512 variables, with the 128-byte
name and value limits, ENOENT, EINVAL, ENAMETOOLONG and EFAULT.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-28 07:50:01 +01:00
harisibrar1andClaude Opus 5.5 5bb96d08ad docs(libkernel): keep the map protection debt entry under the length limit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 01:28:34 -04:00
harisibrar1 6413eacf9d Merge remote-tracking branch 'origin/main' into fix/map-undefined-protection-einval
# Conflicts:
#	docs/dev/debt/libkernel.md
2026-10-28 01:28:03 -04:00
Dean 00e85fea39 Merge pull request #10348 from oneandonlydean/perf-D2-v47
fix(agc): clamp an exported pixel depth to the viewport depth range
2026-10-28 18:25:05 +13:00
Dean ccfb96757f Merge pull request #11307 from dantdmdarealguy/perf/agc-depth-plane-copies-recent-presents
perf(agc): keep recently sampled depth plane copies up to twice the budget
2026-10-28 18:17:14 +13:00
Adrià 5576dd18a9 Merge pull request #11401 from ErenYeager1836/feat/vrtracker2-resolve-mesh-size-nid
feat(libSceVrTracker2): identify sceVrTracker2GetRawCameraMeshSize export
2026-10-28 05:52:08 +01:00
Dean adbcdcdd58 Merge pull request #11463 from Mherberts/codex/feat-elf-relr-relocations
feat(relinker): support packed ELF64 relative relocations
2026-10-28 17:50:40 +13:00
Dean 5ab8acf45f Merge pull request #11309 from Danigamer05/feat/libc-signed-min32
feat(libc): implement signed 32-bit minimum value helper
2026-10-28 17:50:21 +13:00
Dean c9cc3b34db Merge pull request #11304 from Danigamer05/feat/libc-unsigned-max32
feat(libc): implement unsigned 32-bit maximum
2026-10-28 17:50:05 +13:00
Dean 24795c0f56 Merge pull request #10529 from JJenkx/fix/libc-expm1-scaling-association
fix(libc): preserve expm1 rounding during exponent scaling
2026-10-28 17:49:49 +13:00
Dean dbbe99aeb0 Merge pull request #9772 from UnhealthyKraken/feat/libc-floating-prefix
feat(libc): implement floating-point prefix helpers
2026-10-28 17:49:14 +13:00
Adrià 0c5401dcbd Merge pull request #9735 from mazen320/feat/libc-ctype-vtable
feat(libc): export the ctype facet vtable as data
2026-10-28 05:36:29 +01:00
Adrià 2d7af25e62 Merge pull request #11398 from iAbdulrrahman/feat/posix-arc4random-uniform
feat(libScePosixForWebKit): implement arc4random_uniform
2026-10-28 05:23:59 +01:00
Adrià c51d6c226a Merge pull request #11714 from akkadbakkad89/fix/psml-mfsr-enable-flags
fix(libScePsml): answer console-measured MFSR enable flags and Context1300 size check
2026-10-28 05:11:39 +01:00
Dean facac6a4c5 Merge pull request #12192 from oneandonlydean/revert-10809-direct-memory
Revert "report 12 GiB of direct memory" (#10809): PPSA21564 runs out of direct memory
2026-10-28 16:29:14 +13:00
Adrià 439d03db38 Merge pull request #11663 from Danigamer05/feat/libc-stdc-count-ones
feat(libc): add C23 count-ones exports
2026-10-28 04:19:47 +01:00
Felipebmaitan c4e614037b Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into feat/freetype-advance-queries 2026-10-28 00:15:18 -03:00
Yunus Shaikh 332b5f3d28 Merge main into fix/agc-draw-cache-byte-budget
# Conflicts:
#	core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCacheStatistics.cpp
2026-10-27 20:08:17 -07:00
Adrià f1f1737371 Merge pull request #11647 from B-Howell/codex/libc-strtoq
feat(libc): implement strtoq
2026-10-28 04:06:20 +01:00
Adrià a37797da92 Merge pull request #11637 from B-Howell/codex/videoout-display-index-current-main
feat(libSceVideoOut): allow selecting the initial display
2026-10-28 03:49:48 +01:00
Dean Galvin 97f1d41a2c Revert "Merge pull request #10809 from frankea/fix/direct-memory-12gib"
This reverts commit 780b33aea3, restoring the 13824 MiB direct memory pool.

With the pool at 12288 MiB, Astro Bot (PPSA21564) can no longer load its
level: DirectMemoryAllocator asserts "Can't allocate direct memory" for a
64 MB VideoPlayerTexture with 12228 of 12288 MB in use, then the process
faults about 26 s in (2 of 2 runs, RTX 4090, Linux, main cccdaa2734).
The same tree with only this merge reverted runs the full 150 s with no
direct memory assert (2 of 2 runs).
2026-10-28 15:45:26 +13:00
Adrià 3a4206eb64 Merge pull request #11635 from AlexFigas/feat/npcppwebapi-sessionmanager-parameter-lifecycles
feat(libSceNpCppWebApi): track the SessionManager V1 parameter lifecycles as the module does
2026-10-28 03:27:48 +01:00
Dean Galvin c116f4f2f0 Merge branch 'main' into perf-D2-v47
# Conflicts:
#	docs/dev/debt/libSceAgcDriver.md
2026-10-28 13:52:37 +13:00
Dean bf4860b6ce Merge pull request #11098 from edubox/fix/agc-single-level-depth-view
fix(agc): select the first level of a single-level depth view
2026-10-28 13:50:57 +13:00
Dean 780b33aea3 Merge pull request #10809 from frankea/fix/direct-memory-12gib
fix(libkernel): report 12 GiB of direct memory, as a PS5 does
2026-10-28 13:49:57 +13:00
Dean c3f49ea299 Merge pull request #10654 from akkadbakkad89/feat/agc-acb-workload
feat(libSceAgc): emit ACB workload packets for complete, active and stream-inactive
2026-10-28 13:49:41 +13:00
Dean 4c6fcfcb5c Merge pull request #9763 from rooklz/fix/libc-freopen-closed-stream
fix(libc): reopen a closed stream in freopen instead of aborting
2026-10-28 13:48:50 +13:00
Dean b3b449cfe4 Merge pull request #8916 from Henryisdjfunkyho/fix/cancellable-timed-sleeps
fix(libkernel): wake timed sleeps for thread cancellation
2026-10-28 13:48:32 +13:00
Dean 1068cd6b76 Merge pull request #7780 from savvaniss/fix/savedata-ps4-modules
fix(savedata): build libSceSaveData and libSceSaveDataDialog from the native sources
2026-10-28 13:48:05 +13:00
Dean b643e2a6b8 Merge pull request #11363 from JJenkx/feat/agc-selected-image-readback-20261026
feat(agc): capture selected live storage images without writeback
2026-10-28 13:46:57 +13:00
Dean e778405b5b Merge pull request #11592 from alvaroelpob/fix/libkernel-condattr-getclock-einval
fix(libkernel): fail pthread_condattr_getclock with EINVAL for a null attribute
2026-10-28 13:04:04 +13:00
Dean 057de19313 Merge pull request #11556 from xXPBSXx/libm/sinh-msun
fix(libc): compute sinh with FreeBSD msun's algorithm
2026-10-28 13:03:47 +13:00