The x86 emulator doesn't need to employ any Spectre v2 mitigations.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
(cherry picked from commit
44c709e6304b199352a8574738cb4a8c549491c2)
Gbp-Pq: Name x86emul-fix-emulator-test-harness-build-.patch1
#define likely(x) __builtin_expect(!!(x), true)
#define unlikely(x) __builtin_expect(!!(x), false)
+/* No Spectre mitigations needed for the test harness. */
+asm (".macro INDIRECT_CALL arg:req\n\t"
+ "call *\\arg\n\t"
+ ".endm");
+
#include "x86_emulate/x86_emulate.c"