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 <andrew.cooper3@citrix.com>
This commit is contained in:
Andrew Cooper committed 2018-05-09 18:08:36 +01:00
1 parent 5278a9a67d
commit 6a74f4e31d
1 file changed
+5
+5
View File
@@ -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"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.