mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
vm.cpp: Fix emulation stopping on SPU access violation (#12586)
This commit is contained in:
parent
58e3232710
commit
5a0a5d9ff1
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include "vm_locking.h"
|
||||
#include "vm_ptr.h"
|
||||
#include "vm_ref.h"
|
||||
|
@ -200,7 +200,7 @@ namespace vm
|
|||
break;
|
||||
}
|
||||
|
||||
u32 test = 0;
|
||||
u32 test = umax;
|
||||
|
||||
for (u32 i = begin / 4096, max = (begin + size - 1) / 4096; i <= max; i++)
|
||||
{
|
||||
|
@ -211,13 +211,13 @@ namespace vm
|
|||
}
|
||||
}
|
||||
|
||||
if (test)
|
||||
if (test != umax)
|
||||
{
|
||||
range_lock->release(0);
|
||||
|
||||
// Try triggering a page fault (write)
|
||||
// TODO: Read memory if needed
|
||||
vm::_ref<atomic_t<u8>>(test) += 0;
|
||||
vm::_ref<atomic_t<u8>>(test / 4096 == begin / 4096 ? begin : test) += 0;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue