Senryoku / Deecy

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

Shenmue crashes after the first cutscene #26

Closed Senryoku closed 1 month ago

Senryoku commented 2 months ago
info(gdrom_hle):   GDROM Mainloop - DMARead
info(gdrom_hle):     GDROM DMARead sector=203587 size=1 destination=0x0C204E20
info(syscall_log):   GDROM_DMA_END (R7=5) R4=00000000 R5=00000000
info(syscall_log):   GDROM_CHECK_COMMAND R4=554 R5=0C04A864 | Ret : 00000002, Result: 00000000 00000000 00000800 00000000
warning(sh4): Unimplemented _get_memory to Area 5 (G2 Expansion Devices): 159CD519
Unknown opcode: 0x4780 0b0100011110000000
  CPU State: PC=359CD519
thread 28088 panic: Unknown opcode
H:\Source\Deecy\src\sh4_interpreter.zig:27:5: 0x82ee27 in unknown (Deecy.exe.obj)
    @panic("Unknown opcode");

(Note: 0100011110000000 would be a mulr instruction which is exclusive to SH2A)

Senryoku commented 1 month ago

This was a an issue with the JIT cache. Checking for invalidation on GD-DMA seems to fix the issue (e2972eb).