Fixup for fixup (#6153)

* Fixup for fixup

* Fix memory ordering for MTRSX

volatile doesnt block reordering.

* ugh
This commit is contained in:
Eladash 2019-06-30 12:47:42 +03:00 committed by Ivan
parent 43f919c04b
commit 2bce367488
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,7 @@
#include "RSXOffload.h"
#include <thread>
#include <atomic>
namespace rsx
{
@ -57,6 +58,7 @@ namespace rsx
fmt::throw_exception("Unreachable" HERE);
}
std::atomic_thread_fence(std::memory_order_release);
++m_processed_count;
}
}

View file

@ -116,7 +116,7 @@ namespace rsx
if (LIKELY(g_use_rtm))
{
vm::_ref<atomic_t<u32>>(addr) = arg;
vm::_ref<atomic_be_t<u32>>(addr) = arg;
}
else
{