mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 14:45:04 -06: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
@ -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…
Reference in New Issue
Block a user