mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
Fixup for fixup (#6153)
* Fixup for fixup * Fix memory ordering for MTRSX volatile doesnt block reordering. * ugh
This commit is contained in:
parent
43f919c04b
commit
2bce367488
2 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include "RSXOffload.h"
|
#include "RSXOffload.h"
|
||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
#include <atomic>
|
||||||
|
|
||||||
namespace rsx
|
namespace rsx
|
||||||
{
|
{
|
||||||
|
@ -57,6 +58,7 @@ namespace rsx
|
||||||
fmt::throw_exception("Unreachable" HERE);
|
fmt::throw_exception("Unreachable" HERE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::atomic_thread_fence(std::memory_order_release);
|
||||||
++m_processed_count;
|
++m_processed_count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace rsx
|
||||||
|
|
||||||
if (LIKELY(g_use_rtm))
|
if (LIKELY(g_use_rtm))
|
||||||
{
|
{
|
||||||
vm::_ref<atomic_t<u32>>(addr) = arg;
|
vm::_ref<atomic_be_t<u32>>(addr) = arg;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue