mirror of
https://github.com/ptitSeb/box64.git
synced 2026-11-07 09:26:11 -10:00
* [BOX64EC] Add the ARM64EC register mapping to the Dynarec x18 is the TEB and x6 is guest R9 there, so the scratch registers are x1 to x5. * [BOX64EC] Keep guest R9 out of the Dynarec scratch registers x6 is R9 in the ARM64EC mapping, so the emitters use x1 to x5 only, with the same code on every target where it is the same size. * [BOX64EC] Pass PCMPESTRx REX.W without clobbering guest R9 REX.W goes in bit 8 of the imm8 argument, which a small wrapper unpacks. * [BOX64EC] Adapt Dynarec helper calls to the ARM64EC register map C calls use LR for the call address, spill R10 and R11 and reload x18 as the TEB, and checkCRC keeps emu on the stack instead of in x6. * [BOX64EC] Compile Dynarec sources without linking them The DLL still runs the interpreter.