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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Liran Alon <liran.alon@xxxxxxxxxx>
Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx>
---
 lib/x86/processor.h | 3 +++
 1 file changed, 3 insertions(+)

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)
 
-- 
1.9.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux