I have an issue with donpachi on arm (and not on x86) : game segfault after i "insert coin". That did not happen with fba 0.2.97.37
My investigation so far :
- i backported my current libretro's code to fba 0.2.97.37, the game won't crash, so this seems to come from fba codebase.
- i checked for "char" variable in m68k, z80, nmk112 ans msm6295, i didn't find any that should cause an issue.
- i tried bprinting a few things in nmk112, and i got really weird results ! Just adding a few bprint in "NMK112_okibank_write" (nothing else) actually fixed the "insert coin" issue, but the game will then segfault when i "press start", as if adding those bprint actually delayed something which would not be properly initialized without those bprint.
- i tried bprinting "(sekAddress / 2) & 0x1f" and "wordValue & 0xff" in d_donpachi.cpp's "donpachiWriteWord", i got different values on arm/x86 after pressing start (i decided to keep bprint in NMK112_okibank_write for now, makes comparing output easier and both issues must be related anyway), which means musashi returns different results for both arch if i understood well, it sounded like a good start for debugging
- i ported fba 0.2.97.37's musashi to current fba (i had to disable megadrive and define bBurnUseASMCPUEmulation to do that), the game still crash.
- i played around with this bBurnUseASMCPUEmulation value (seemed to me like you changed its default value, and i thought it was kinda related to some x86 asm code), the game still crash.
Any of this ring a bell ? I'm kinda at a loss right now :/
Edit : i also tried enabling/disabling FASTCALL, and playing around with CFLAGS's "-OX"