match(sd_drv): pfd_st_removal_callback #546

Merged
coah80 merged 1 commits from matcher/pfd_st_removal_callback into main 2026-10-01 22:38:28 +00:00
coah80 commented 2026-10-01 22:22:51 +00:00 (Migrated from github.com)

Summary

Exact-match pfd_st_removal_callback in sd_drv.

MWCC was emitting li r4,0 / load-device / store-media_inserted. Target wants li r0,0 / store / load. Reading media_inserted back in the device check forces store-before-load and the r0 schedule.

Progress

functions code bytes
before 20/26 8676/11760
after 21/26 8940/11760

Unit stays NonMatching (other sd_drv funcs still open).

DOL

sha1 must remain 26116613f624061ba99c8d1a299aaa6efa85670d (function is byte-identical to target).

Test plan

  • ctxdiff / objdiff: pfd_st_removal_callback 0 diffs
  • Confirm DOL sha1 unchanged on a clean build
## Summary Exact-match `pfd_st_removal_callback` in `sd_drv`. MWCC was emitting `li r4,0` / load-device / store-`media_inserted`. Target wants `li r0,0` / store / load. Reading `media_inserted` back in the device check forces store-before-load and the `r0` schedule. ## Progress | | functions | code bytes | |--|--:|--:| | before | 20/26 | 8676/11760 | | after | 21/26 | 8940/11760 | Unit stays NonMatching (other sd_drv funcs still open). ## DOL `sha1` must remain `26116613f624061ba99c8d1a299aaa6efa85670d` (function is byte-identical to target). ## Test plan - [ ] `ctxdiff` / objdiff: `pfd_st_removal_callback` 0 diffs - [ ] Confirm DOL sha1 unchanged on a clean build
coah80 commented 2026-10-01 22:38:26 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.