Pretty sure I have mtmsrd wrong. This likely isn't correct.

This commit is contained in:
Ben Vanik 2015-05-25 21:20:38 -07:00
parent 41cee3d337
commit dcb78cc640
1 changed files with 3 additions and 1 deletions

View File

@ -65,11 +65,13 @@ void HandleGlobalLock(PPCContext* ppc_state, void* arg0, void* arg1) {
volatile bool* global_lock_taken = reinterpret_cast<bool*>(arg1);
uint64_t value = ppc_state->scratch;
if (value == 0x8000) {
global_lock->unlock();
global_lock->lock();
*global_lock_taken = false;
global_lock->unlock();
} else if (value == ppc_state->r[13]) {
global_lock->lock();
*global_lock_taken = true;
global_lock->unlock();
}
}