(Nebuleon dynarec) Backport https://github.com/Nebuleon/mupen64plus-core/commit/0697bda9b520610acdc986d0426f524f118f7868