mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
5278a9a67d
commit
6a74f4e31d
1 file changed
+5
@@ -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"
|
||||