mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
[a64] Implement OPCODE_MEMORY_BARRIER
This commit is contained in:
parent
8836eb2892
commit
8a1e343c3b
1 changed files with 4 additions and 0 deletions
|
|
@ -1101,7 +1101,11 @@ EMITTER_OPCODE_TABLE(OPCODE_CACHE_CONTROL, CACHE_CONTROL);
|
|||
struct MEMORY_BARRIER
|
||||
: Sequence<MEMORY_BARRIER, I<OPCODE_MEMORY_BARRIER, VoidOp>> {
|
||||
static void Emit(A64Emitter& e, const EmitArgType& i) {
|
||||
// mfence on x64 flushes all writes before any later instructions
|
||||
// e.mfence();
|
||||
|
||||
// This is equivalent to DMB SY
|
||||
e.DMB(BarrierOp::SY);
|
||||
}
|
||||
};
|
||||
EMITTER_OPCODE_TABLE(OPCODE_MEMORY_BARRIER, MEMORY_BARRIER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue