This commit is contained in:
Nekotekina 2017-04-13 18:32:27 +03:00
parent b1f1a5885b
commit db1b012a26
2 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,8 @@ void mfc_thread::cpu_task()
cmd.size = 0;
no_updates = 0;
vm::reservation_acquire(cmd.eal, 128);
// Store unconditionally
vm::writer_lock lock(0);
data = to_write;

View File

@ -586,6 +586,8 @@ void SPUThread::process_mfc_cmd()
auto& data = vm::ps3::_ref<decltype(rdata)>(ch_mfc_cmd.eal);
const auto to_write = _ref<decltype(rdata)>(ch_mfc_cmd.lsa & 0x3ffff);
vm::reservation_acquire(ch_mfc_cmd.eal, 128);
// Store unconditionally
// TODO: vm::check_addr
vm::writer_lock lock(0);