From 736ec4035edf32b1a9fad02d83acc3ba2bb7f958 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 15 Jul 2019 19:51:58 +0300 Subject: [PATCH] Fixup for SPU Recompilers, regression after #6210 --- rpcs3/Emu/Cell/SPURecompiler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index b46a69799d..75bb3df296 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -297,7 +297,11 @@ void spu_cache::add(const std::vector& func) void spu_cache::initialize() { spu_runtime::g_interpreter = spu_runtime::g_gateway; - *spu_runtime::g_dispatcher = spu_runtime::tr_interpreter; + + if (g_cfg.core.spu_decoder == spu_decoder_type::precise || g_cfg.core.spu_decoder == spu_decoder_type::fast) + { + *spu_runtime::g_dispatcher = spu_runtime::tr_interpreter; + } const std::string ppu_cache = Emu.PPUCache();