[xen staging-4.6] x86/emul: Fix emulator test harness build following the backport of ff555d59e8a

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging-4.6] x86/emul: Fix emulator test harness build following the backport of ff555d59e8a

patchbot
commit 5278a9a67d5dd8ef95411f1f130812b1146d7eb6
Author:     Andrew Cooper <[hidden email]>
AuthorDate: Wed May 9 16:54:32 2018 +0100
Commit:     Andrew Cooper <[hidden email]>
CommitDate: Wed May 9 16:55:17 2018 +0100

    x86/emul: Fix emulator test harness build following the backport of ff555d59e8a
   
    Signed-off-by: Andrew Cooper <[hidden email]>
---
 tools/tests/x86_emulator/x86_emulate.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/tests/x86_emulator/x86_emulate.c b/tools/tests/x86_emulator/x86_emulate.c
index 005bc22b1c..1e67d648ad 100644
--- a/tools/tests/x86_emulator/x86_emulate.c
+++ b/tools/tests/x86_emulator/x86_emulate.c
@@ -23,6 +23,9 @@ typedef bool bool_t;
 #define BUILD_BUG_ON(cond) ((void)BUILD_BUG_ON_ZERO(cond))
 #endif
 
+#define MASK_EXTR(v, m) (((v) & (m)) / ((m) & -(m)))
+#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m))
+
 #define cpu_has_amd_erratum(nr) 0
 
 #define __packed __attribute__((packed))
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.6

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog