diff mbox

[kvm-unit-tests,2/9] x86: lib: Define const for all ALU flags

Message ID 1529711980-32764-3-git-send-email-liran.alon@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liran Alon June 22, 2018, 11:59 p.m. UTC
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
---
 lib/x86/processor.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/lib/x86/processor.h b/lib/x86/processor.h
index 89ee528a2e36..c06a40d89c9c 100644
--- a/lib/x86/processor.h
+++ b/lib/x86/processor.h
@@ -46,6 +46,9 @@ 
 #define X86_EFLAGS_NT    0x00004000
 #define X86_EFLAGS_AC    0x00040000
 
+#define X86_EFLAGS_ALU (X86_EFLAGS_CF | X86_EFLAGS_PF | X86_EFLAGS_AF | \
+			X86_EFLAGS_ZF | X86_EFLAGS_SF | X86_EFLAGS_OF)
+
 #define X86_IA32_EFER          0xc0000080
 #define X86_EFER_LMA           (1UL << 8)