From: Andrew Cooper Date: Wed, 9 May 2018 17:06:46 +0000 (+0100) Subject: x86/emul: Fix emulator test harness build following a backport of 7c508612 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6a74f4e31dc28fb0d5c9e56b54d4b2aaf9b46bbe;p=xen.git x86/emul: Fix emulator test harness build following a backport of 7c508612 The x86 emulator doesn't need to employ any Spectre v2 mitigations. Signed-off-by: Andrew Cooper --- diff --git a/tools/tests/x86_emulator/x86_emulate.c b/tools/tests/x86_emulator/x86_emulate.c index 1e67d648ad..c91d436a63 100644 --- a/tools/tests/x86_emulator/x86_emulate.c +++ b/tools/tests/x86_emulator/x86_emulate.c @@ -35,4 +35,9 @@ typedef bool bool_t; #define get_stub(stb) ((void *)((stb).addr = (uintptr_t)(stb).buf)) #define put_stub(stb) +/* 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"