(Nebuleon dynarec) Backport https://github.com/Nebuleon/mupen64plus-core/commit/827d05966b38cae2e9dd5de2bd473e9da0ba0679