Senryoku / Deecy

Experimental Dreamcast emulator written in Zig
10 stars 0 forks source link

mov.l Rm, @-Rn broken in the SH4 JIT #58

Closed Senryoku closed 1 month ago

Senryoku commented 2 months ago

mov.l Rm, @-Rn cause grave issues in Virtua Tennis 2 when using the JIT. Switching only this instruction to use the interpreter fallback fixes the issue, but I have no idea why. This instruction isn't that complicated... Disabling all JIT optimizations or clearing register allocations before and after doesn't help.

I don't see any issue with the generated code. VirtuaTennis2_JIT_trace_movRm@-Rn_issue.zip

Senryoku commented 1 month ago

Fixed by b503000