pixrt10: match build 19041 worker processor affinity #246

Closed
bambermf wants to merge 1 commit from upstream-pr/246 into main
bambermf commented 2026-11-23 07:18:24 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by bambermf on 2026-11-23T07:18:24Z.


Library / area — pixrt10 worker thread affinity, based on upstream 6a1a4b1.

Exports changed — None. The 19041 title initializer is still missing. This ports the mask selection its two worker entry points use.

Source of the behaviour — Build 19041 console pixrt10.dll. Headless IDA shows both worker entry points call RVA 0x1aa64, which gets the mask from RVA 0x1aa18 and passes it to SetThreadAffinityMask.

What was wrong

The shared worker helper selected 0x3000 for any process mask above 0x7f. Build 19041 tests bit six, including for sparse masks.

Measurements

I executed the console instructions at RVAs 0x1aa49 through 0x1aa5b in Unicorn, supplying the process mask after the Windows query. All 256 low-byte values plus three high-bit cases matched the ported rule.

Process mask Main 19041 console and port
0 0x60 0x30
0x40 0x60 0x60
0x80 0x3000 0x30
0xff 0x3000 0x60

Change and tests

The shared worker pinning path selects the measured rule for build 19041. The regression checks eight process masks across builds 19041, 22000 and 22621. Release tests for pixrt and pixrt10 passed (39 tests), and the PR gate passed. The mask comparison exercised the console calculation independently of host CPU availability. End-to-end startup on 19041 remains pending.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:issue:6554315696 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/246). Originally posted by [bambermf](https://github.com/bambermf) on 2026-11-23T07:18:24Z. --- **Library / area** — pixrt10 worker thread affinity, based on upstream 6a1a4b1. **Exports changed** — None. The 19041 title initializer is still missing. This ports the mask selection its two worker entry points use. **Source of the behaviour** — Build 19041 console pixrt10.dll. Headless IDA shows both worker entry points call RVA 0x1aa64, which gets the mask from RVA 0x1aa18 and passes it to SetThreadAffinityMask. ### What was wrong The shared worker helper selected 0x3000 for any process mask above 0x7f. Build 19041 tests bit six, including for sparse masks. ### Measurements I executed the console instructions at RVAs 0x1aa49 through 0x1aa5b in Unicorn, supplying the process mask after the Windows query. All 256 low-byte values plus three high-bit cases matched the ported rule. | Process mask | Main | 19041 console and port | |---|---|---| | 0 | 0x60 | 0x30 | | 0x40 | 0x60 | 0x60 | | 0x80 | 0x3000 | 0x30 | | 0xff | 0x3000 | 0x60 | ### Change and tests The shared worker pinning path selects the measured rule for build 19041. The regression checks eight process masks across builds 19041, 22000 and 22621. Release tests for pixrt and pixrt10 passed (39 tests), and the PR gate passed. The mask comparison exercised the console calculation independently of host CPU availability. End-to-end startup on 19041 remains pending.
bambermf commented 2026-11-23 07:31:54 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by bambermf on 2026-11-23T07:31:54Z.


Continued in #250

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7094426286 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/246#issuecomment-7094426286). Originally posted by [bambermf](https://github.com/bambermf) on 2026-11-23T07:31:54Z. --- Continued in #250

Pull request closed

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
omonkeyz/xbox-emulator!246
No description provided.