Correct intersection check
This commit is contained in:
@@ -563,7 +563,7 @@ void SPUThread::do_dma_transfer(const spu_mfc_cmd& args, bool from_mfc)
|
|||||||
auto faddr = func.contents->addr;
|
auto faddr = func.contents->addr;
|
||||||
auto fsize = func.contents->size;
|
auto fsize = func.contents->size;
|
||||||
|
|
||||||
if (faddr >= eal && faddr + fsize < eal + args.size)
|
if (fsize + faddr > eal && eal + args.size > faddr)
|
||||||
{
|
{
|
||||||
func.dirty_bit = true;
|
func.dirty_bit = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user