feat(libSceRazorCpu): add sceRazorCpuPushMarker #3560

Merged
EdouardSence merged 2 commits from upstream-pr/3560 into main 2026-10-11 21:33:25 +00:00
EdouardSence commented 2026-10-11 13:12:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-11T13:12:20Z.


What

Adds sceRazorCpuPushMarker to libSceRazorCpu. Like sceRazorCpuPushMarkerStatic, it does nothing without a capture and returns 0.

  • PPSA04540 (Rise of the Ronin, 01.009.000) imports it (NID zw+celG7zSI) and calls it from 46 sites. On main a11c8f7f it is one of the title's 8 missing imports. The loader reports the first of them, ./app.elf: symbol lookup error: ./app.elf: undefined symbol: uBIN24Tv2MI (sceNgs2ReportRegisterHandler, #3559).
  • With this PR, zw+celG7zSI drops out of the title's undefined symbols that no library exports.
  • The signature (label, color, flags) comes from SharpProspero. The label is copied rather than kept, which is the only difference from the Static variant. With no capture running, nothing is recorded.
  • guest_razor_cpu_tests pushes and pops a marker with it. On main the test does not link (undefined reference to sceRazorCpuPushMarker).

Tested

Linux (CachyOS), RX 9070 XT, GCC, Release, on main a11c8f7f:

  • guest_razor_cpu_tests passes.
  • zw+celG7zSI is in nm -D libSceRazorCpu.prx.
  • PPSA04540 relinked against this build no longer lists it as missing.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes

Tested and written by Claude (AI assistant) on a contributor's machine.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4819300860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3560). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-11T13:12:20Z. --- ### What Adds `sceRazorCpuPushMarker` to libSceRazorCpu. Like `sceRazorCpuPushMarkerStatic`, it does nothing without a capture and returns 0. - PPSA04540 (Rise of the Ronin, 01.009.000) imports it (NID `zw+celG7zSI`) and calls it from 46 sites. On `main` a11c8f7f it is one of the title's 8 missing imports. The loader reports the first of them, `./app.elf: symbol lookup error: ./app.elf: undefined symbol: uBIN24Tv2MI` (`sceNgs2ReportRegisterHandler`, #3559). - With this PR, `zw+celG7zSI` drops out of the title's undefined symbols that no library exports. - The signature (label, color, flags) comes from [SharpProspero](https://github.com/SvenGDK/SharpProspero). The label is copied rather than kept, which is the only difference from the `Static` variant. With no capture running, nothing is recorded. - `guest_razor_cpu_tests` pushes and pops a marker with it. On `main` the test does not link (`undefined reference to sceRazorCpuPushMarker`). ### Tested Linux (CachyOS), RX 9070 XT, GCC, Release, on `main` a11c8f7f: - `guest_razor_cpu_tests` passes. - `zw+celG7zSI` is in `nm -D libSceRazorCpu.prx`. - PPSA04540 relinked against this build no longer lists it as missing. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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 - [x] AI-assisted: yes *Tested and written by Claude (AI assistant) on a contributor's machine.* 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-11 13:12:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T13:12:44Z.


Progress report (a11c8f7 → b4b2e88)

📈 System libraries: 85.82% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceRazorCpu sceRazorCpuPushMarker
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceRazorCpu sceRazorCpuPushMarker
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109389102 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3560#issuecomment-6109389102). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T13:12:44Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → b4b2e88) 📈 **System libraries**: 85.82% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceRazorCpu | `sceRazorCpuPushMarker` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceRazorCpu | `sceRazorCpuPushMarker` | </details>
MarcZX10 commented 2026-10-11 13:13:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T13:13:25Z.


The conventions check is currently failing on sceRazorCpuPushMarker:

Unimplemented exports call NotImplemented_nid_no_patch(__func__); silent stubs are listed in docs/dev/TechnicalDebt.md#silent-stubs ... sceRazorCpuPushMarker

The new TechnicalDebt entry is under “Unknown function info”, so the checker does not count it as documenting this no-op export. Could you add or move the entry into the #silent-stubs section (with the source path/name), then rerun conventions?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109395027 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3560#issuecomment-6109395027). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T13:13:25Z. --- The conventions check is currently failing on `sceRazorCpuPushMarker`: > Unimplemented exports call `NotImplemented_nid_no_patch(__func__)`; silent stubs are listed in `docs/dev/TechnicalDebt.md#silent-stubs` ... `sceRazorCpuPushMarker` The new TechnicalDebt entry is under “Unknown function info”, so the checker does not count it as documenting this no-op export. Could you add or move the entry into the `#silent-stubs` section (with the source path/name), then rerun conventions?
github-actions[bot] commented 2026-10-11 13:27:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T13:27:46Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#1693 core/libs/prx/libSceRazorCpu/Export.cpp L26
core/libs/tests/GuestRazorCpu.cpp L9
#2850 docs/dev/TechnicalDebt.md L46
#3791 docs/dev/TechnicalDebt.md L46
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109519475 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3560#issuecomment-6109519475). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T13:27:46Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #1693 | `core/libs/prx/libSceRazorCpu/Export.cpp` [L26](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/core/libs/prx/libSceRazorCpu/Export.cpp#L26)<br>`core/libs/tests/GuestRazorCpu.cpp` [L9](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/core/libs/tests/GuestRazorCpu.cpp#L9) | | | | #2850 | `docs/dev/TechnicalDebt.md` [L46](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/docs/dev/TechnicalDebt.md#L46) | | | | #3791 | `docs/dev/TechnicalDebt.md` [L46](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/docs/dev/TechnicalDebt.md#L46) | | |
EdouardSence commented 2026-10-11 14:00:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-11T14:00:02Z.


@MarcZX100 thanks. I moved the entry into the Silent stubs section (b4b2e8843), and tools/check_conventions.py --base main now passes locally.

Written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109801479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3560#issuecomment-6109801479). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-11T14:00:02Z. --- @MarcZX100 thanks. I moved the entry into the Silent stubs section (`b4b2e8843`), and `tools/check_conventions.py --base main` now passes locally. *Written by Claude (AI assistant) on a contributor's machine.*
adriadam10 commented 2026-10-11 21:33:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:33:14Z.


Checked on the PR merged onto current main: build and ctest of libs + libSceRazorCpu green (guest_razor_cpu passes; without the export the test does not link), signature matches SharpProspero's RazorCpu.cs, NID zw+celG7zSI matches sceRazorCpuPushMarker, TechnicalDebt entry is under Silent stubs, conventions check green. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114015402 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3560#issuecomment-6114015402). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:33:14Z. --- Checked on the PR merged onto current main: build and ctest of libs + libSceRazorCpu green (`guest_razor_cpu` passes; without the export the test does not link), signature matches SharpProspero's `RazorCpu.cs`, NID `zw+celG7zSI` matches `sceRazorCpuPushMarker`, TechnicalDebt entry is under Silent stubs, conventions check green. Merging.
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!3560
No description provided.