[xen stable-4.10] x86emul/test: fix build after "x86emul: fix 3-operand IMUL"

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

[xen stable-4.10] x86emul/test: fix build after "x86emul: fix 3-operand IMUL"

patchbot
commit 80c2955777ad0756dae5f0d31af9e531eb27c4d2
Author:     Jan Beulich <[hidden email]>
AuthorDate: Mon Feb 4 11:32:42 2019 +0100
Commit:     Jan Beulich <[hidden email]>
CommitDate: Mon Feb 4 11:32:42 2019 +0100

    x86emul/test: fix build after "x86emul: fix 3-operand IMUL"
   
    Introduce the missing #define (and another one likely to be needed by
    possible subsequent backports).
   
    Signed-off-by: Jan Beulich <[hidden email]>
---
 tools/tests/x86_emulator/test_x86_emulator.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/tests/x86_emulator/test_x86_emulator.c b/tools/tests/x86_emulator/test_x86_emulator.c
index f561c5a37d..11a9300721 100644
--- a/tools/tests/x86_emulator/test_x86_emulator.c
+++ b/tools/tests/x86_emulator/test_x86_emulator.c
@@ -296,6 +296,9 @@ static struct x86_emulate_ops emulops = {
     .put_fpu    = emul_test_put_fpu,
 };
 
+#define EFLAGS_ALWAYS_SET (X86_EFLAGS_IF | X86_EFLAGS_MBS)
+#define EFLAGS_MASK (X86_EFLAGS_ARITH_MASK | EFLAGS_ALWAYS_SET)
+
 int main(int argc, char **argv)
 {
     struct x86_emulate_ctxt ctxt;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.10

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