feat(ces): add eight sparse single-byte profiles #10056

Merged
atharvjairath merged 1 commit from upstream-pr/10056 into main 2026-11-02 07:59:56 +00:00
atharvjairath commented 2026-10-23 07:25:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by atharvjairath on 2026-10-23T07:25:09Z.


What

The eight profile getters for ISO-8859-3/6/7/8/11 and CP857/869/874 currently throw. They now return profiles usable by the existing scalar UTF-8/UCS-2/UTF-16/UTF-32 converters and MBCS string/length APIs. Undefined bytes return UNASSIGNED_CODE. UTF-8 scalar output/length handling and string termination/partial counts use the console-measured shared paths now merged into main. Reverse lookup excludes the undefined-entry marker, so U+FFFF cannot encode to a hole.

Mappings are regenerated from the Unicode-hosted ISO tables, Microsoft PC tables and CP874.TXT. Getter signatures follow the Orbital type database at b321fcd. CP874 uses the strict mapping, without Windows best-fit substitutions. Opaque profile layout, unmeasured error precedence and physical-console verification remain open in the library debt entry. The added mappings have the attributed firmware-module checks below; those checks do not validate string paths or every error contract.

tools/progress.py reports 8 additional completed exports (CES: 261 to 269 of 287). The actual unsupported-export count is 26 on the tested main base and 18 on this branch. Main's ISO 646 and ISO-2022 functions are upstream work, separate from this PR's eight getters. Export coverage is not game compatibility.

Integration with main: Based on ba627802e2210187d417deb64c8f2fed8e33011f, this refresh resolves the debt-document conflict while retaining every main entry and the existing sparse-profile debt. All owned production/API/CMake/fixture additions and deletions are identical to prior head 75585974a83a4a1957b23c176ac50d2917c774ad. Main's Cp1254/Cp1258 corrections (16 undefined bytes mapped to FFFF) and sceCesUtf32ToSbc surrogate rejection are retained alongside the earlier ISO-2022, ISO 646/JIS X 0201 and wide/string conversions and fixtures. These upstream corrections are not contributions of this eight-getter PR.

The enum, high-byte tables, low-byte remappings, seven-bit flags and unassigned-graphics flags remain aligned across all 48 entries, including CP858. All 40 main rows and eight added rows are retained. The complete table file changes with main's Cp1254/Cp1258 corrections; this PR's added table payload remains unchanged. Main's decoder error distinctions and undefined-marker decode guard remain; our reverse-lookup sentinel guard remains.

The sparse, Chinese and DBCS fixture changes retain scalar and string counts, optional lengths, zero capacity, prefix preservation, terminators, canaries and U+FFFF rejection. Main's null-input assertions and expanded wide fixture are retained. GB18030-2000 remains BMP-only; GB18030-2005 retains the plane-2 supplementary range, 24 PUA mappings and A8BC/8135F437 swap. The Chinese fixture retains supported-input coverage and UCS-2 supplementary rejection. Earlier measured decoder/string, strict JIS, EUC-KR/UHC, Big5, JIS2004, generic encoder, four-byte-buffer and UTF-16 adapter work is preserved. No assertion or production check was disabled.

The public-header review remains addressed: the eight canonical getter declarations return const uint8_t*, and fixtures use the umbrella header without local export declarations.

Landing order: No open prerequisites remain. Previously merged dependencies, including #10739, #10430 and #10428, are integrated main history.

Tested

Exact tested head a6d4ce5a6411a3a55f8e2a4f19ef29a7d83e9966, parent/main base ba627802e2210187d417deb64c8f2fed8e33011f, tree 86986cbde67b712a3935c3166fd96e44a63f6168. Recovery ref backup/pr-10056-before-cp1254-refresh-20261101-1750 preserves prior remote 75585974a83a4a1957b23c176ac50d2917c774ad. Both author and committer are atharvjairath <[email protected]>.

  • Linux x86-64, Ubuntu 24.04/GCC 13.3 Release under native ARM QEMU 11.0.3: 22/22 passed, 50.98 s.
  • Windows x64 PE, WinLibs GCC 15.2.0 UCRT r7 Release through Wine 9/QEMU 11.0.3: 22/22 passed, 115.57 s.
  • Complete real libc and both CES variants were rebuilt. All 22 registrations and emulators were verified. Both ISO-2022 and ISO 646 variants pass alongside sparse profiles, Chinese/GB18030, Korean/Big5, Japanese, Unicode/wide APIs, generic MBCS helpers and JIS2004. The main Cp1254/Cp1258 holes and UTF-32 surrogate regression assertions are retained and pass. Upstream firmware sweep hashes remain attributed; passing those fixtures is not independent console execution. No new runtime workaround was used.
  • After-commit conventions, whitespace checks and the public-header audit pass (399 libraries, 26,227 exports). The canonical CES umbrella compiles standalone, included twice, with Linux C++20 and -Werror.
  • The exact tools/pr_overlap.py --branch feat/ces-single-byte-profiles CLI returned 2, requiring manual comparison of base-conflicted peers; this is not an automated pass. All eight external report peers were independently verified OPEN/current, with full/shared patches and all merge bases retained: #9912, #10431, #10751, #11614, #12946, #13573, #14085 and #14212. Exact prior payloads or their changed shared-file deltas were manually compared. Other tables, MBCS setters/replacements, JIS helpers/conversions, GB range/UDA setters and debt corrections remain distinct from these eight getters. No open prerequisite or independent duplicate was found. No unmerged implementation was imported; broader non-shared peer fixtures/production and firmware/runtime claims were not independently validated. Future integration must preserve indexed rows, APIs, fixtures and debt and recount actual pending exports.
  • Earlier sparse-sentinel negative controls and the original GBK-selector diagnostic remain historical evidence and were not rerun for this refresh.

JUnit, full logs, registrations, harnesses and artifact hashes are retained in /private/tmp/anyps5-monitor-20261101-1002/ces. Focused builds use complete real libraries and libc with repository-pinned dependencies. Relevant upstream CES/shared libc/build changes were reviewed; other paths received path-level scope review only. This is not an all-libc or whole-project run. Native Windows desktop, title and PS5 console validation were not performed. Full product CI requires maintainer dispatch. The attributed firmware-module report below covers selected scalar paths and is not current-head approval.

Both owned patches also merge cleanly with later observed main 500b0252ec8c8800d35f77219d45e8c21d32ada2, preserving all own changes. The later root CMake change adds a shader-scan tool test; progress-tool changes add shader reporting and leave library counting unchanged. Other later UserService/NKWebKit/workflow/docs/tool paths received scope-only review. These checks do not extend the pinned runtime coverage.

Attributed firmware-module evidence: BunnyFl reports three identical runs of firmware 13.42 libSceCesCs.sprx (SHA-256 00c01529bc13223be8afabbde566fcbdc027a0366c6d6224effc86ba6cba3173) loaded natively on an x86-64 PC. Their SBC-to-UTF32/UTF8 sweep over all 256 bytes and UTF32-to-SBC sweep over U+0000–U+10FFFF matched all eight tables. Undefined cells returned 0x805C0020, had no reverse encoding, and U+FFFF was rejected. Reported hole counts were 7/45/3/36/8 for ISO-8859-3/6/7/8/11 and 3/9/31 for CP857/869/874. This is attributed firmware-module execution on a PC, not independently reproduced here or physical-console validation. It did not cover MBCS strings/lengths or general error precedence and is not an approval.

Focused build reproduction

Save the following as CMakeLists.txt in a separate harness directory. Initialize the checkout's 3rdparty/ZArchive and 3rdparty/zstd, and place copies or symlinks to those directories under the harness's 3rdparty/. They match the base pins 965b66c8d67b6b7e30fd63b3b75aa91a99ff303b and f8745da6ff1ad1e7bab384bd1f9d742439278e99.

cmake_minimum_required(VERSION 3.20)
project(CesValidation LANGUAGES CXX)
enable_testing()
set(CMAKE_CXX_STANDARD 20)
set(BUILD_TESTING ON)
set(ANYPS5_SOURCE_ROOT /src CACHE PATH "AnyPS5 source checkout")
set(LIBS_INCLUDE_DIR ${ANYPS5_SOURCE_ROOT}/core/libs)
set(ANYPS5_TEST_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
set(ANYPS5_WINDOWS_TEST_EXIT ${ANYPS5_SOURCE_ROOT}/cmake/WindowsTestExit.cpp)
add_compile_options(-ffunction-sections -fdata-sections)
add_link_options(-Wl,--gc-sections)
function(add_test_executable target)
    add_executable(${target} ${ARGN})
    set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<1:${ANYPS5_TEST_OUTPUT_DIRECTORY}>")
    if(MINGW)
        target_sources(${target} PRIVATE "${ANYPS5_WINDOWS_TEST_EXIT}")
        target_link_options(${target} PRIVATE LINKER:--wrap=main)
    endif()
endfunction()
function(add_asan_test_options test options)
    if(ANYPS5_ENABLE_ASAN)
        set_property(TEST ${test} APPEND PROPERTY ENVIRONMENT_MODIFICATION "ASAN_OPTIONS=string_append::${options}")
    endif()
endfunction()
function(configure_windows_unwind target)
    if(MINGW)
        if(NOT EXISTS "${CMAKE_OBJCOPY}")
            message(FATAL_ERROR "Windows DWARF unwinding requires objcopy")
        endif()
        add_custom_command(TARGET ${target} POST_BUILD
                COMMAND "${CMAKE_OBJCOPY}" --rename-section .eh_frame=.ehfram --rename-section .eh_fram=.ehfram "$<TARGET_FILE:${target}>"
                VERBATIM
        )
    endif()
endfunction()
if(MINGW)
    add_compile_options(-fno-asynchronous-unwind-tables)
endif()
include(${ANYPS5_SOURCE_ROOT}/cmake/ZArchive.cmake)
set(BUILD_TESTING OFF)
add_library(libc SHARED)
add_subdirectory(${ANYPS5_SOURCE_ROOT}/core/libs/prx/libc libc)
configure_windows_unwind(libc)
if(WIN32)
    target_compile_options(libc PRIVATE "SHELL:-include \"${LIBS_INCLUDE_DIR}/prx/libc/include/HostStandardStreams.hpp\"")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
    target_link_options(libc PRIVATE LINKER:-z,now)
    target_link_options(libc INTERFACE LINKER:--no-as-needed)
endif()
set(BUILD_TESTING ON)
add_subdirectory(${ANYPS5_SOURCE_ROOT}/core/libs/prx/libSceCesCs-module ces-module)
add_subdirectory(${ANYPS5_SOURCE_ROOT}/core/libs/prx/libSceCesCs ces)
foreach(target IN ITEMS libSceCesCs libSceCesCs-module)
    target_link_libraries(${target} PUBLIC libc)
    if(WIN32)
        target_compile_options(${target} PRIVATE "SHELL:-include \"${LIBS_INCLUDE_DIR}/prx/libc/include/HostStandardStreams.hpp\"")
    endif()
endforeach()

On an x86-64 Linux host:

cmake -S /path/to/harness -B /path/to/ces-build -G Ninja -DANYPS5_SOURCE_ROOT=/path/to/checkout -DCMAKE_BUILD_TYPE=Release
cmake --build /path/to/ces-build --parallel 4
ctest --test-dir /path/to/ces-build -R '^guest_ces' --output-on-failure --timeout 30

The reported ARM-host Linux run additionally sets CMAKE_CROSSCOMPILING_EMULATOR to QEMU 11.0.3's native ARM qemu-x86_64. The Windows build uses the same harness with WinLibs cmake.exe, ninja.exe, gcc.exe and g++.exe; all twenty-two generated test programs are run through QEMU/Wine. WINELOADERNOEXEC=1 preserves QEMU execution, and WINEPATH includes the libc, CES, CES-module and compiler-runtime DLL directories. A host-side CTest manifest runs each executable with the same 30-second timeout.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4979348764 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10056). Originally posted by [atharvjairath](https://github.com/atharvjairath) on 2026-10-23T07:25:09Z. --- ### What The eight profile getters for ISO-8859-3/6/7/8/11 and CP857/869/874 currently throw. They now return profiles usable by the existing scalar UTF-8/UCS-2/UTF-16/UTF-32 converters and MBCS string/length APIs. Undefined bytes return `UNASSIGNED_CODE`. UTF-8 scalar output/length handling and string termination/partial counts use the console-measured shared paths now merged into main. Reverse lookup excludes the undefined-entry marker, so U+FFFF cannot encode to a hole. Mappings are regenerated from the Unicode-hosted [ISO tables](https://www.unicode.org/Public/MAPPINGS/ISO8859/), [Microsoft PC tables](https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/) and [CP874.TXT](https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP874.TXT). Getter signatures follow the [Orbital type database at b321fcd](https://github.com/AlexAltea/orbital/blob/b321fcdbd700cc02da1cb1ad25412781d5ec73c6/tools/ida/db_types.json). CP874 uses the strict mapping, without Windows best-fit substitutions. Opaque profile layout, unmeasured error precedence and physical-console verification remain open in the library debt entry. The added mappings have the attributed firmware-module checks below; those checks do not validate string paths or every error contract. `tools/progress.py` reports **8 additional completed exports** (CES: **261 to 269 of 287**). The actual unsupported-export count is **26 on the tested main base and 18 on this branch**. Main's ISO 646 and ISO-2022 functions are upstream work, separate from this PR's eight getters. Export coverage is not game compatibility. **Integration with main:** Based on `ba627802e2210187d417deb64c8f2fed8e33011f`, this refresh resolves the debt-document conflict while retaining every main entry and the existing sparse-profile debt. All owned production/API/CMake/fixture additions and deletions are identical to prior head `75585974a83a4a1957b23c176ac50d2917c774ad`. Main's Cp1254/Cp1258 corrections (16 undefined bytes mapped to `FFFF`) and `sceCesUtf32ToSbc` surrogate rejection are retained alongside the earlier ISO-2022, ISO 646/JIS X 0201 and wide/string conversions and fixtures. These upstream corrections are not contributions of this eight-getter PR. The enum, high-byte tables, low-byte remappings, seven-bit flags and unassigned-graphics flags remain aligned across all 48 entries, including CP858. All 40 main rows and eight added rows are retained. The complete table file changes with main's Cp1254/Cp1258 corrections; this PR's added table payload remains unchanged. Main's decoder error distinctions and undefined-marker decode guard remain; our reverse-lookup sentinel guard remains. The sparse, Chinese and DBCS fixture changes retain scalar and string counts, optional lengths, zero capacity, prefix preservation, terminators, canaries and U+FFFF rejection. Main's null-input assertions and expanded wide fixture are retained. GB18030-2000 remains BMP-only; GB18030-2005 retains the plane-2 supplementary range, 24 PUA mappings and A8BC/8135F437 swap. The Chinese fixture retains supported-input coverage and UCS-2 supplementary rejection. Earlier measured decoder/string, strict JIS, EUC-KR/UHC, Big5, JIS2004, generic encoder, four-byte-buffer and UTF-16 adapter work is preserved. No assertion or production check was disabled. The [public-header review](https://github.com/boykopovar/AnyPS5/pull/10056#issuecomment-6391361559) remains addressed: the eight canonical getter declarations return `const uint8_t*`, and fixtures use the umbrella header without local export declarations. **Landing order:** No open prerequisites remain. Previously merged dependencies, including #10739, #10430 and #10428, are integrated main history. ### Tested Exact tested head `a6d4ce5a6411a3a55f8e2a4f19ef29a7d83e9966`, parent/main base `ba627802e2210187d417deb64c8f2fed8e33011f`, tree `86986cbde67b712a3935c3166fd96e44a63f6168`. Recovery ref `backup/pr-10056-before-cp1254-refresh-20261101-1750` preserves prior remote `75585974a83a4a1957b23c176ac50d2917c774ad`. Both author and committer are `atharvjairath <54663702+[email protected]>`. - Linux x86-64, Ubuntu 24.04/GCC 13.3 Release under native ARM QEMU 11.0.3: **22/22 passed**, 50.98 s. - Windows x64 PE, WinLibs GCC 15.2.0 UCRT r7 Release through Wine 9/QEMU 11.0.3: **22/22 passed**, 115.57 s. - Complete real libc and both CES variants were rebuilt. All 22 registrations and emulators were verified. Both ISO-2022 and ISO 646 variants pass alongside sparse profiles, Chinese/GB18030, Korean/Big5, Japanese, Unicode/wide APIs, generic MBCS helpers and JIS2004. The main Cp1254/Cp1258 holes and UTF-32 surrogate regression assertions are retained and pass. Upstream firmware sweep hashes remain attributed; passing those fixtures is not independent console execution. No new runtime workaround was used. - After-commit conventions, whitespace checks and the public-header audit pass (**399 libraries, 26,227 exports**). The canonical CES umbrella compiles standalone, included twice, with Linux C++20 and `-Werror`. - The exact `tools/pr_overlap.py --branch feat/ces-single-byte-profiles` CLI returned **2**, requiring manual comparison of base-conflicted peers; this is not an automated pass. All **eight external report peers** were independently verified OPEN/current, with full/shared patches and all merge bases retained: #9912, #10431, #10751, #11614, #12946, #13573, #14085 and #14212. Exact prior payloads or their changed shared-file deltas were manually compared. Other tables, MBCS setters/replacements, JIS helpers/conversions, GB range/UDA setters and debt corrections remain distinct from these eight getters. No open prerequisite or independent duplicate was found. No unmerged implementation was imported; broader non-shared peer fixtures/production and firmware/runtime claims were not independently validated. Future integration must preserve indexed rows, APIs, fixtures and debt and recount actual pending exports. - Earlier sparse-sentinel negative controls and the original GBK-selector diagnostic remain historical evidence and were not rerun for this refresh. JUnit, full logs, registrations, harnesses and artifact hashes are retained in `/private/tmp/anyps5-monitor-20261101-1002/ces`. Focused builds use complete real libraries and libc with repository-pinned dependencies. Relevant upstream CES/shared libc/build changes were reviewed; other paths received path-level scope review only. This is not an all-libc or whole-project run. Native Windows desktop, title and PS5 console validation were not performed. Full product CI requires maintainer dispatch. The attributed firmware-module report below covers selected scalar paths and is not current-head approval. Both owned patches also merge cleanly with later observed main `500b0252ec8c8800d35f77219d45e8c21d32ada2`, preserving all own changes. The later root CMake change adds a shader-scan tool test; progress-tool changes add shader reporting and leave library counting unchanged. Other later UserService/NKWebKit/workflow/docs/tool paths received scope-only review. These checks do not extend the pinned runtime coverage. **Attributed firmware-module evidence:** [BunnyFl](https://github.com/boykopovar/AnyPS5/pull/10056#issuecomment-6403897466) reports three identical runs of firmware 13.42 `libSceCesCs.sprx` (SHA-256 `00c01529bc13223be8afabbde566fcbdc027a0366c6d6224effc86ba6cba3173`) loaded natively on an x86-64 PC. Their SBC-to-UTF32/UTF8 sweep over all 256 bytes and UTF32-to-SBC sweep over U+0000–U+10FFFF matched all eight tables. Undefined cells returned `0x805C0020`, had no reverse encoding, and U+FFFF was rejected. Reported hole counts were 7/45/3/36/8 for ISO-8859-3/6/7/8/11 and 3/9/31 for CP857/869/874. This is attributed firmware-module execution on a PC, not independently reproduced here or physical-console validation. It did not cover MBCS strings/lengths or general error precedence and is not an approval. <details> <summary>Focused build reproduction</summary> Save the following as `CMakeLists.txt` in a separate harness directory. Initialize the checkout's `3rdparty/ZArchive` and `3rdparty/zstd`, and place copies or symlinks to those directories under the harness's `3rdparty/`. They match the base pins `965b66c8d67b6b7e30fd63b3b75aa91a99ff303b` and `f8745da6ff1ad1e7bab384bd1f9d742439278e99`. ```cmake cmake_minimum_required(VERSION 3.20) project(CesValidation LANGUAGES CXX) enable_testing() set(CMAKE_CXX_STANDARD 20) set(BUILD_TESTING ON) set(ANYPS5_SOURCE_ROOT /src CACHE PATH "AnyPS5 source checkout") set(LIBS_INCLUDE_DIR ${ANYPS5_SOURCE_ROOT}/core/libs) set(ANYPS5_TEST_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests) set(ANYPS5_WINDOWS_TEST_EXIT ${ANYPS5_SOURCE_ROOT}/cmake/WindowsTestExit.cpp) add_compile_options(-ffunction-sections -fdata-sections) add_link_options(-Wl,--gc-sections) function(add_test_executable target) add_executable(${target} ${ARGN}) set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<1:${ANYPS5_TEST_OUTPUT_DIRECTORY}>") if(MINGW) target_sources(${target} PRIVATE "${ANYPS5_WINDOWS_TEST_EXIT}") target_link_options(${target} PRIVATE LINKER:--wrap=main) endif() endfunction() function(add_asan_test_options test options) if(ANYPS5_ENABLE_ASAN) set_property(TEST ${test} APPEND PROPERTY ENVIRONMENT_MODIFICATION "ASAN_OPTIONS=string_append::${options}") endif() endfunction() function(configure_windows_unwind target) if(MINGW) if(NOT EXISTS "${CMAKE_OBJCOPY}") message(FATAL_ERROR "Windows DWARF unwinding requires objcopy") endif() add_custom_command(TARGET ${target} POST_BUILD COMMAND "${CMAKE_OBJCOPY}" --rename-section .eh_frame=.ehfram --rename-section .eh_fram=.ehfram "$<TARGET_FILE:${target}>" VERBATIM ) endif() endfunction() if(MINGW) add_compile_options(-fno-asynchronous-unwind-tables) endif() include(${ANYPS5_SOURCE_ROOT}/cmake/ZArchive.cmake) set(BUILD_TESTING OFF) add_library(libc SHARED) add_subdirectory(${ANYPS5_SOURCE_ROOT}/core/libs/prx/libc libc) configure_windows_unwind(libc) if(WIN32) target_compile_options(libc PRIVATE "SHELL:-include \"${LIBS_INCLUDE_DIR}/prx/libc/include/HostStandardStreams.hpp\"") endif() if(CMAKE_SYSTEM_NAME STREQUAL "Linux") target_link_options(libc PRIVATE LINKER:-z,now) target_link_options(libc INTERFACE LINKER:--no-as-needed) endif() set(BUILD_TESTING ON) add_subdirectory(${ANYPS5_SOURCE_ROOT}/core/libs/prx/libSceCesCs-module ces-module) add_subdirectory(${ANYPS5_SOURCE_ROOT}/core/libs/prx/libSceCesCs ces) foreach(target IN ITEMS libSceCesCs libSceCesCs-module) target_link_libraries(${target} PUBLIC libc) if(WIN32) target_compile_options(${target} PRIVATE "SHELL:-include \"${LIBS_INCLUDE_DIR}/prx/libc/include/HostStandardStreams.hpp\"") endif() endforeach() ``` On an x86-64 Linux host: ```sh cmake -S /path/to/harness -B /path/to/ces-build -G Ninja -DANYPS5_SOURCE_ROOT=/path/to/checkout -DCMAKE_BUILD_TYPE=Release cmake --build /path/to/ces-build --parallel 4 ctest --test-dir /path/to/ces-build -R '^guest_ces' --output-on-failure --timeout 30 ``` The reported ARM-host Linux run additionally sets `CMAKE_CROSSCOMPILING_EMULATOR` to QEMU 11.0.3's native ARM `qemu-x86_64`. The Windows build uses the same harness with WinLibs `cmake.exe`, `ninja.exe`, `gcc.exe` and `g++.exe`; all twenty-two generated test programs are run through QEMU/Wine. `WINELOADERNOEXEC=1` preserves QEMU execution, and `WINEPATH` includes the libc, CES, CES-module and compiler-runtime DLL directories. A host-side CTest manifest runs each executable with the same 30-second timeout. </details> <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-10-23 13:17:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:17:12Z.

Review: CHANGES_REQUESTED


Reviewed exact head 93050a9a0c1bea1dd2d1db32c8b7af717592ce9e29.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5628762198 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10056#pullrequestreview-5628762198). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T13:17:12Z. **Review:** CHANGES_REQUESTED --- Reviewed exact head `93050a9a0c1bea1dd2d1db32c8b7af717592ce9e29`.
MarcZX10 commented 2026-10-23 13:17:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:17:23Z.

Review: CHANGES_REQUESTED


Correction and complete review on exact head 93050a9a0c1bea1dd2d1db32c7e3eda86a9be8: my immediately preceding review had a mistyped head hash and did not state the finding; this review replaces it. The sparse-profile implementation has broad coverage and the description reports exact-head Linux 16/16 and Windows 16/16 focused runs, plus baseline regression controls. Hosted eligibility, conventions, labels and report checks pass; product jobs are path-skipped. I have not independently run the CES test suite.

A contribution-rule sequencing issue remains. Direct merge previews of this PR with #10183, #10185 and #10186 produce content conflicts in core/libs/prx/libSceCesCs/Export.cpp; the #10056/#10184 preview is clean. These are real shared-helper conflicts, not duplicate implementations of the profile getters. Please coordinate with the affected author and declare the agreed landing order with Depends on, then ensure the rebased second change preserves both the sparse-profile semantics and the console-measured conversion behavior. #10185 already depends on #10183 and #10184, and #10186 depends on #10185, so please keep that stack coherent. This is a keep-both integration request; no PR should be closed because of queue size.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5628764351 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10056#pullrequestreview-5628764351). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T13:17:23Z. **Review:** CHANGES_REQUESTED --- Correction and complete review on exact head `93050a9a0c1bea1dd2d1db32c7e3eda86a9be8`: my immediately preceding review had a mistyped head hash and did not state the finding; this review replaces it. The sparse-profile implementation has broad coverage and the description reports exact-head Linux 16/16 and Windows 16/16 focused runs, plus baseline regression controls. Hosted eligibility, conventions, labels and report checks pass; product jobs are path-skipped. I have not independently run the CES test suite. A contribution-rule sequencing issue remains. Direct merge previews of this PR with #10183, #10185 and #10186 produce content conflicts in `core/libs/prx/libSceCesCs/Export.cpp`; the #10056/#10184 preview is clean. These are real shared-helper conflicts, not duplicate implementations of the profile getters. Please coordinate with the affected author and declare the agreed landing order with `Depends on`, then ensure the rebased second change preserves both the sparse-profile semantics and the console-measured conversion behavior. #10185 already depends on #10183 and #10184, and #10186 depends on #10185, so please keep that stack coherent. This is a keep-both integration request; no PR should be closed because of queue size.
MarcZX10 commented 2026-10-23 13:54:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:54:28Z.

Review: APPROVED


Approved exact head b4670f6e8a915b3f5715e0885102109e83ecc5d4. The author-to-author landing order is now explicit: #10183/#10184, then #10185, then #10186, then this PR; the checklist declares Depends on: #10186, and this branch contains the exact current #10186 head. The sparse follow-up rejects undefined-byte sentinels in both decode and reverse lookup, keeps the shared measured conversion behavior, and adds broad profile/conversion/canary coverage. I independently compiled and ran the exact-head Export.cpp plus GuestCesSparseProfiles.cpp fixture with GCC C++20 and section garbage collection; it passed. Exact-head conventions and git diff --check pass, and current upstream main is an ancestor of the reviewed head. The author separately reports 16/16 Linux and 16/16 Windows focused CES runs with negative controls; hosted eligibility/conventions/labels/report checks pass and product build jobs are skipped by path policy. The full project build and console validation were not run here; the debt entry accurately leaves sparse mappings unverified on console.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5629224178 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10056#pullrequestreview-5629224178). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T13:54:28Z. **Review:** APPROVED --- Approved exact head `b4670f6e8a915b3f5715e0885102109e83ecc5d4`. The author-to-author landing order is now explicit: #10183/#10184, then #10185, then #10186, then this PR; the checklist declares `Depends on: #10186`, and this branch contains the exact current #10186 head. The sparse follow-up rejects undefined-byte sentinels in both decode and reverse lookup, keeps the shared measured conversion behavior, and adds broad profile/conversion/canary coverage. I independently compiled and ran the exact-head `Export.cpp` plus `GuestCesSparseProfiles.cpp` fixture with GCC C++20 and section garbage collection; it passed. Exact-head conventions and `git diff --check` pass, and current upstream `main` is an ancestor of the reviewed head. The author separately reports 16/16 Linux and 16/16 Windows focused CES runs with negative controls; hosted eligibility/conventions/labels/report checks pass and product build jobs are skipped by path policy. The full project build and console validation were not run here; the debt entry accurately leaves sparse mappings unverified on console.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10056
No description provided.