1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 11:13:19 +01:00

spu: Fix MMIO index checking

This commit is contained in:
eladash 2018-09-17 16:45:32 +03:00 committed by Ivan
parent 4cebf431fd
commit 05cd3712a3

View File

@ -716,7 +716,7 @@ void SPUThread::do_dma_transfer(const spu_mfc_cmd& args)
{ {
fmt::throw_exception("SPU MMIO used for RawSPU (cmd=0x%x, lsa=0x%x, ea=0x%llx, tag=0x%x, size=0x%x)" HERE, args.cmd, args.lsa, args.eal, args.tag, args.size); fmt::throw_exception("SPU MMIO used for RawSPU (cmd=0x%x, lsa=0x%x, ea=0x%llx, tag=0x%x, size=0x%x)" HERE, args.cmd, args.lsa, args.eal, args.tag, args.size);
} }
else if (group && index < group->num && group->threads[index]) else if (group && group->threads[index])
{ {
auto& spu = static_cast<SPUThread&>(*group->threads[index]); auto& spu = static_cast<SPUThread&>(*group->threads[index]);