mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-31 23:19:44 +08:00
90651f26a9
The PS5 image loader requires guest images to land at fixed virtual addresses (e.g. the 32 GiB main image base). On macOS the exact-address mmap path only ever passed that address as a hint, never MAP_FIXED, to avoid clobbering untracked host mappings (dyld, JIT heap, Rosetta). On Apple Silicon under Rosetta 2 the kernel does not reliably honor that hint, so the allocation failed deterministically before a single guest instruction ran (reported in #194). Retry with true MAP_FIXED as a fallback only when the hint-only attempt doesn't land at the requested address, so the safer hint path is still tried first.