Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
bylaws committed Dec 9, 2024
1 parent 10ce868 commit 7a153e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unittests/FEXLinuxTests/tests/signal/trap_flag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ extern "C" void PopInstruction();
#if __SIZEOF_POINTER__ == 4
__attribute__((naked, nocf_check)) static void TestTF() {
__asm volatile(R"(
pushfl;
orl dword [esp], 0x100;
popfl;
pushfd;
or dword [esp], 0x100;
popfd;
nop;
nop;
nop;
pushfl;
andl dword [esp], ~0x100;
pushfd;
and dword [esp], ~0x100;
PopInstruction:
popfl;
popfd;
ret;
)");
}
Expand Down

0 comments on commit 7a153e7

Please sign in to comment.