SPU: Fix static interpreter requirement with interrupts

Removed a wrong condition in PPU LLVM as a fixup.
This commit is contained in:
Elad Ashkenazi 2023-07-07 22:39:49 +03:00 committed by GitHub
parent 4aec48c2ca
commit 1219e5c244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -4612,9 +4612,9 @@ void spu_thread::set_interrupt_status(bool enable)
// Detect enabling interrupts with events masked
if (auto mask = ch_events.load().mask; mask & SPU_EVENT_INTR_BUSY_CHECK)
{
if (g_cfg.core.spu_decoder != spu_decoder_type::_static)
if (g_cfg.core.spu_decoder != spu_decoder_type::_static && g_cfg.core.spu_decoder != spu_decoder_type::dynamic)
{
fmt::throw_exception("SPU Interrupts not implemented (mask=0x%x): Use static interpreter", mask);
fmt::throw_exception("SPU Interrupts not implemented (mask=0x%x): Use [%s] SPU decoder", mask, spu_decoder_type::dynamic);
}
spu_log.trace("SPU Interrupts (mask=0x%x) are using CPU busy checking mode", mask);