Commit 26cff6f0 authored by Eddie Kohler's avatar Eddie Kohler

Use GCC assembly to generate the `pause` instruction.

Clang complains about the builtin because we disable SSE, etc.
parent b92b8f58
......@@ -423,7 +423,7 @@ static inline uint64_t rdtsc() {
}
static inline void pause() {
__builtin_ia32_pause();
asm volatile("pause" : : : "memory");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment