mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-08 22:00:19 +02:00
IR: Convert FenceType to an enum class
Same thing minus an extra struct lingering around.
This commit is contained in:
1 parent
c64d6f2b36
commit
863d1e0007
6 files changed
+24
-34
No files matched your search
@@ -4793,7 +4793,7 @@ void OpDispatchBuilder::CLFLUSHOPT(OpcodeArgs) {
|
||||
void OpDispatchBuilder::LoadFenceOrXRSTOR(OpcodeArgs) {
|
||||
// 0xE8 signifies LFENCE
|
||||
if (Op->ModRM == 0xE8) {
|
||||
_Fence(IR::Fence_Load);
|
||||
_Fence(FenceType::Load);
|
||||
} else {
|
||||
XRstorOpImpl(Op);
|
||||
}
|
||||
@@ -4802,7 +4802,7 @@ void OpDispatchBuilder::LoadFenceOrXRSTOR(OpcodeArgs) {
|
||||
void OpDispatchBuilder::MemFenceOrXSAVEOPT(OpcodeArgs) {
|
||||
if (Op->ModRM == 0xF0) {
|
||||
// 0xF0 is MFENCE
|
||||
_Fence(FEXCore::IR::Fence_LoadStore);
|
||||
_Fence(FenceType::LoadStore);
|
||||
} else {
|
||||
XSaveOp(Op);
|
||||
}
|
||||
@@ -4811,7 +4811,7 @@ void OpDispatchBuilder::MemFenceOrXSAVEOPT(OpcodeArgs) {
|
||||
void OpDispatchBuilder::StoreFenceOrCLFlush(OpcodeArgs) {
|
||||
if (Op->ModRM == 0xF8) {
|
||||
// 0xF8 is SFENCE
|
||||
_Fence({FEXCore::IR::Fence_Store});
|
||||
_Fence(FenceType::Store);
|
||||
} else {
|
||||
// This is a CLFlush
|
||||
Ref DestMem = MakeSegmentAddress(Op, Op->Dest);
|
||||
|
||||
Reference in new issue
Block a user