Skip to content

Commit

Permalink
Merge pull request #4118 from Sonicadvance1/wfe_for_pause
Browse files Browse the repository at this point in the history
FEXCore: Change yield implementation to use wfe
  • Loading branch information
lioncash authored Oct 15, 2024
2 parents 5026bf8 + b967538 commit ff51435
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion FEXCore/Source/Interface/Core/JIT/Arm64/MiscOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ DEF_OP(RDRAND) {
}

DEF_OP(Yield) {
yield();
wfe();
}

#undef DEF_OP
Expand Down
7 changes: 7 additions & 0 deletions unittests/InstructionCountCI/Primary.json
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,13 @@
"Comment": "0x90",
"ExpectedArm64ASM": []
},
"pause": {
"ExpectedInstructionCount": 1,
"Comment": "0xF3 0x90",
"ExpectedArm64ASM": [
"wfe"
]
},
"cbw": {
"ExpectedInstructionCount": 2,
"Comment": "0x98",
Expand Down

0 comments on commit ff51435

Please sign in to comment.