thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-target-i386-remove-tabs-from-target-i386-cpu.h.patch

218e99
From 1f49705e06366e1c2fa2b2c77497ed33ca1c6a30 Mon Sep 17 00:00:00 2001
218e99
From: Paolo Bonzini <pbonzini@redhat.com>
218e99
Date: Mon, 23 Sep 2013 17:06:11 +0200
218e99
Subject: [PATCH 01/29] target-i386: remove tabs from target-i386/cpu.h
218e99
218e99
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
218e99
Message-id: <1379955972-3080-2-git-send-email-pbonzini@redhat.com>
218e99
Patchwork-id: 54486
218e99
O-Subject: [RHEL 7.0 qemu-kvm PATCH 1/2] target-i386: remove tabs from target-i386/cpu.h
218e99
Bugzilla: 928867
218e99
RH-Acked-by: Juan Quintela <quintela@redhat.com>
218e99
RH-Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
218e99
RH-Acked-by: Bandan Das <bsd@redhat.com>
218e99
218e99
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
(cherry-picked from commit e4a09c9637f13a744ad7e2bc5223df05ac582c0d)
218e99
---
218e99
 target-i386/cpu.h | 192 +++++++++++++++++++++++++++---------------------------
218e99
 1 file changed, 96 insertions(+), 96 deletions(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 target-i386/cpu.h |  192 ++++++++++++++++++++++++++--------------------------
218e99
 1 files changed, 96 insertions(+), 96 deletions(-)
218e99
218e99
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
218e99
index 058c57f..74c7899 100644
218e99
--- a/target-i386/cpu.h
218e99
+++ b/target-i386/cpu.h
218e99
@@ -37,9 +37,9 @@
218e99
 #define TARGET_HAS_ICE 1
218e99
 
218e99
 #ifdef TARGET_X86_64
218e99
-#define ELF_MACHINE	EM_X86_64
218e99
+#define ELF_MACHINE     EM_X86_64
218e99
 #else
218e99
-#define ELF_MACHINE	EM_386
218e99
+#define ELF_MACHINE     EM_386
218e99
 #endif
218e99
 
218e99
 #define CPUArchState struct CPUX86State
218e99
@@ -98,10 +98,10 @@
218e99
 #define DESC_TSS_BUSY_MASK (1 << 9)
218e99
 
218e99
 /* eflags masks */
218e99
-#define CC_C   	0x0001
218e99
-#define CC_P 	0x0004
218e99
-#define CC_A	0x0010
218e99
-#define CC_Z	0x0040
218e99
+#define CC_C    0x0001
218e99
+#define CC_P    0x0004
218e99
+#define CC_A    0x0010
218e99
+#define CC_Z    0x0040
218e99
 #define CC_S    0x0080
218e99
 #define CC_O    0x0800
218e99
 
218e99
@@ -109,14 +109,14 @@
218e99
 #define IOPL_SHIFT 12
218e99
 #define VM_SHIFT   17
218e99
 
218e99
-#define TF_MASK 		0x00000100
218e99
-#define IF_MASK 		0x00000200
218e99
-#define DF_MASK 		0x00000400
218e99
-#define IOPL_MASK		0x00003000
218e99
-#define NT_MASK	         	0x00004000
218e99
-#define RF_MASK			0x00010000
218e99
-#define VM_MASK			0x00020000
218e99
-#define AC_MASK			0x00040000
218e99
+#define TF_MASK                 0x00000100
218e99
+#define IF_MASK                 0x00000200
218e99
+#define DF_MASK                 0x00000400
218e99
+#define IOPL_MASK               0x00003000
218e99
+#define NT_MASK                 0x00004000
218e99
+#define RF_MASK                 0x00010000
218e99
+#define VM_MASK                 0x00020000
218e99
+#define AC_MASK                 0x00040000
218e99
 #define VIF_MASK                0x00080000
218e99
 #define VIP_MASK                0x00100000
218e99
 #define ID_MASK                 0x00200000
218e99
@@ -238,28 +238,28 @@
218e99
 #define DR7_TYPE_IO_RW       0x2
218e99
 #define DR7_TYPE_DATA_RW     0x3
218e99
 
218e99
-#define PG_PRESENT_BIT	0
218e99
-#define PG_RW_BIT	1
218e99
-#define PG_USER_BIT	2
218e99
-#define PG_PWT_BIT	3
218e99
-#define PG_PCD_BIT	4
218e99
-#define PG_ACCESSED_BIT	5
218e99
-#define PG_DIRTY_BIT	6
218e99
-#define PG_PSE_BIT	7
218e99
-#define PG_GLOBAL_BIT	8
218e99
-#define PG_NX_BIT	63
218e99
+#define PG_PRESENT_BIT  0
218e99
+#define PG_RW_BIT       1
218e99
+#define PG_USER_BIT     2
218e99
+#define PG_PWT_BIT      3
218e99
+#define PG_PCD_BIT      4
218e99
+#define PG_ACCESSED_BIT 5
218e99
+#define PG_DIRTY_BIT    6
218e99
+#define PG_PSE_BIT      7
218e99
+#define PG_GLOBAL_BIT   8
218e99
+#define PG_NX_BIT       63
218e99
 
218e99
 #define PG_PRESENT_MASK  (1 << PG_PRESENT_BIT)
218e99
-#define PG_RW_MASK	 (1 << PG_RW_BIT)
218e99
-#define PG_USER_MASK	 (1 << PG_USER_BIT)
218e99
-#define PG_PWT_MASK	 (1 << PG_PWT_BIT)
218e99
-#define PG_PCD_MASK	 (1 << PG_PCD_BIT)
218e99
+#define PG_RW_MASK       (1 << PG_RW_BIT)
218e99
+#define PG_USER_MASK     (1 << PG_USER_BIT)
218e99
+#define PG_PWT_MASK      (1 << PG_PWT_BIT)
218e99
+#define PG_PCD_MASK      (1 << PG_PCD_BIT)
218e99
 #define PG_ACCESSED_MASK (1 << PG_ACCESSED_BIT)
218e99
-#define PG_DIRTY_MASK	 (1 << PG_DIRTY_BIT)
218e99
-#define PG_PSE_MASK	 (1 << PG_PSE_BIT)
218e99
-#define PG_GLOBAL_MASK	 (1 << PG_GLOBAL_BIT)
218e99
+#define PG_DIRTY_MASK    (1 << PG_DIRTY_BIT)
218e99
+#define PG_PSE_MASK      (1 << PG_PSE_BIT)
218e99
+#define PG_GLOBAL_MASK   (1 << PG_GLOBAL_BIT)
218e99
 #define PG_HI_USER_MASK  0x7ff0000000000000LL
218e99
-#define PG_NX_MASK	 (1LL << PG_NX_BIT)
218e99
+#define PG_NX_MASK       (1LL << PG_NX_BIT)
218e99
 
218e99
 #define PG_ERROR_W_BIT     1
218e99
 
218e99
@@ -269,32 +269,32 @@
218e99
 #define PG_ERROR_RSVD_MASK 0x08
218e99
 #define PG_ERROR_I_D_MASK  0x10
218e99
 
218e99
-#define MCG_CTL_P	(1ULL<<8)   /* MCG_CAP register available */
218e99
-#define MCG_SER_P	(1ULL<<24) /* MCA recovery/new status bits */
218e99
+#define MCG_CTL_P       (1ULL<<8)   /* MCG_CAP register available */
218e99
+#define MCG_SER_P       (1ULL<<24) /* MCA recovery/new status bits */
218e99
 
218e99
-#define MCE_CAP_DEF	(MCG_CTL_P|MCG_SER_P)
218e99
-#define MCE_BANKS_DEF	10
218e99
+#define MCE_CAP_DEF     (MCG_CTL_P|MCG_SER_P)
218e99
+#define MCE_BANKS_DEF   10
218e99
 
218e99
-#define MCG_STATUS_RIPV	(1ULL<<0)   /* restart ip valid */
218e99
-#define MCG_STATUS_EIPV	(1ULL<<1)   /* ip points to correct instruction */
218e99
-#define MCG_STATUS_MCIP	(1ULL<<2)   /* machine check in progress */
218e99
+#define MCG_STATUS_RIPV (1ULL<<0)   /* restart ip valid */
218e99
+#define MCG_STATUS_EIPV (1ULL<<1)   /* ip points to correct instruction */
218e99
+#define MCG_STATUS_MCIP (1ULL<<2)   /* machine check in progress */
218e99
 
218e99
-#define MCI_STATUS_VAL	(1ULL<<63)  /* valid error */
218e99
-#define MCI_STATUS_OVER	(1ULL<<62)  /* previous errors lost */
218e99
-#define MCI_STATUS_UC	(1ULL<<61)  /* uncorrected error */
218e99
-#define MCI_STATUS_EN	(1ULL<<60)  /* error enabled */
218e99
-#define MCI_STATUS_MISCV (1ULL<<59) /* misc error reg. valid */
218e99
-#define MCI_STATUS_ADDRV (1ULL<<58) /* addr reg. valid */
218e99
-#define MCI_STATUS_PCC	(1ULL<<57)  /* processor context corrupt */
218e99
-#define MCI_STATUS_S	(1ULL<<56)  /* Signaled machine check */
218e99
-#define MCI_STATUS_AR	(1ULL<<55)  /* Action required */
218e99
+#define MCI_STATUS_VAL   (1ULL<<63)  /* valid error */
218e99
+#define MCI_STATUS_OVER  (1ULL<<62)  /* previous errors lost */
218e99
+#define MCI_STATUS_UC    (1ULL<<61)  /* uncorrected error */
218e99
+#define MCI_STATUS_EN    (1ULL<<60)  /* error enabled */
218e99
+#define MCI_STATUS_MISCV (1ULL<<59)  /* misc error reg. valid */
218e99
+#define MCI_STATUS_ADDRV (1ULL<<58)  /* addr reg. valid */
218e99
+#define MCI_STATUS_PCC   (1ULL<<57)  /* processor context corrupt */
218e99
+#define MCI_STATUS_S     (1ULL<<56)  /* Signaled machine check */
218e99
+#define MCI_STATUS_AR    (1ULL<<55)  /* Action required */
218e99
 
218e99
 /* MISC register defines */
218e99
-#define MCM_ADDR_SEGOFF	0	/* segment offset */
218e99
-#define MCM_ADDR_LINEAR	1	/* linear address */
218e99
-#define MCM_ADDR_PHYS	2	/* physical address */
218e99
-#define MCM_ADDR_MEM	3	/* memory address */
218e99
-#define MCM_ADDR_GENERIC 7	/* generic */
218e99
+#define MCM_ADDR_SEGOFF  0      /* segment offset */
218e99
+#define MCM_ADDR_LINEAR  1      /* linear address */
218e99
+#define MCM_ADDR_PHYS    2      /* physical address */
218e99
+#define MCM_ADDR_MEM     3      /* memory address */
218e99
+#define MCM_ADDR_GENERIC 7      /* generic */
218e99
 
218e99
 #define MSR_IA32_TSC                    0x10
218e99
 #define MSR_IA32_APICBASE               0x1b
218e99
@@ -304,10 +304,10 @@
218e99
 #define MSR_TSC_ADJUST                  0x0000003b
218e99
 #define MSR_IA32_TSCDEADLINE            0x6e0
218e99
 
218e99
-#define MSR_MTRRcap			0xfe
218e99
-#define MSR_MTRRcap_VCNT		8
218e99
-#define MSR_MTRRcap_FIXRANGE_SUPPORT	(1 << 8)
218e99
-#define MSR_MTRRcap_WC_SUPPORTED	(1 << 10)
218e99
+#define MSR_MTRRcap                     0xfe
218e99
+#define MSR_MTRRcap_VCNT                8
218e99
+#define MSR_MTRRcap_FIXRANGE_SUPPORT    (1 << 8)
218e99
+#define MSR_MTRRcap_WC_SUPPORTED        (1 << 10)
218e99
 
218e99
 #define MSR_IA32_SYSENTER_CS            0x174
218e99
 #define MSR_IA32_SYSENTER_ESP           0x175
218e99
@@ -319,33 +319,33 @@
218e99
 
218e99
 #define MSR_IA32_PERF_STATUS            0x198
218e99
 
218e99
-#define MSR_IA32_MISC_ENABLE		0x1a0
218e99
+#define MSR_IA32_MISC_ENABLE            0x1a0
218e99
 /* Indicates good rep/movs microcode on some processors: */
218e99
 #define MSR_IA32_MISC_ENABLE_DEFAULT    1
218e99
 
218e99
-#define MSR_MTRRphysBase(reg)		(0x200 + 2 * (reg))
218e99
-#define MSR_MTRRphysMask(reg)		(0x200 + 2 * (reg) + 1)
218e99
-
218e99
-#define MSR_MTRRfix64K_00000		0x250
218e99
-#define MSR_MTRRfix16K_80000		0x258
218e99
-#define MSR_MTRRfix16K_A0000		0x259
218e99
-#define MSR_MTRRfix4K_C0000		0x268
218e99
-#define MSR_MTRRfix4K_C8000		0x269
218e99
-#define MSR_MTRRfix4K_D0000		0x26a
218e99
-#define MSR_MTRRfix4K_D8000		0x26b
218e99
-#define MSR_MTRRfix4K_E0000		0x26c
218e99
-#define MSR_MTRRfix4K_E8000		0x26d
218e99
-#define MSR_MTRRfix4K_F0000		0x26e
218e99
-#define MSR_MTRRfix4K_F8000		0x26f
218e99
+#define MSR_MTRRphysBase(reg)           (0x200 + 2 * (reg))
218e99
+#define MSR_MTRRphysMask(reg)           (0x200 + 2 * (reg) + 1)
218e99
+
218e99
+#define MSR_MTRRfix64K_00000            0x250
218e99
+#define MSR_MTRRfix16K_80000            0x258
218e99
+#define MSR_MTRRfix16K_A0000            0x259
218e99
+#define MSR_MTRRfix4K_C0000             0x268
218e99
+#define MSR_MTRRfix4K_C8000             0x269
218e99
+#define MSR_MTRRfix4K_D0000             0x26a
218e99
+#define MSR_MTRRfix4K_D8000             0x26b
218e99
+#define MSR_MTRRfix4K_E0000             0x26c
218e99
+#define MSR_MTRRfix4K_E8000             0x26d
218e99
+#define MSR_MTRRfix4K_F0000             0x26e
218e99
+#define MSR_MTRRfix4K_F8000             0x26f
218e99
 
218e99
 #define MSR_PAT                         0x277
218e99
 
218e99
-#define MSR_MTRRdefType			0x2ff
218e99
+#define MSR_MTRRdefType                 0x2ff
218e99
 
218e99
-#define MSR_MC0_CTL			0x400
218e99
-#define MSR_MC0_STATUS			0x401
218e99
-#define MSR_MC0_ADDR			0x402
218e99
-#define MSR_MC0_MISC			0x403
218e99
+#define MSR_MC0_CTL                     0x400
218e99
+#define MSR_MC0_STATUS                  0x401
218e99
+#define MSR_MC0_ADDR                    0x402
218e99
+#define MSR_MC0_MISC                    0x403
218e99
 
218e99
 #define MSR_EFER                        0xc0000080
218e99
 
218e99
@@ -549,24 +549,24 @@ typedef uint32_t FeatureWordArray[FEATURE_WORDS];
218e99
 #define CPUID_MWAIT_IBE     (1 << 1) /* Interrupts can exit capability */
218e99
 #define CPUID_MWAIT_EMX     (1 << 0) /* enumeration supported */
218e99
 
218e99
-#define EXCP00_DIVZ	0
218e99
-#define EXCP01_DB	1
218e99
-#define EXCP02_NMI	2
218e99
-#define EXCP03_INT3	3
218e99
-#define EXCP04_INTO	4
218e99
-#define EXCP05_BOUND	5
218e99
-#define EXCP06_ILLOP	6
218e99
-#define EXCP07_PREX	7
218e99
-#define EXCP08_DBLE	8
218e99
-#define EXCP09_XERR	9
218e99
-#define EXCP0A_TSS	10
218e99
-#define EXCP0B_NOSEG	11
218e99
-#define EXCP0C_STACK	12
218e99
-#define EXCP0D_GPF	13
218e99
-#define EXCP0E_PAGE	14
218e99
-#define EXCP10_COPR	16
218e99
-#define EXCP11_ALGN	17
218e99
-#define EXCP12_MCHK	18
218e99
+#define EXCP00_DIVZ     0
218e99
+#define EXCP01_DB       1
218e99
+#define EXCP02_NMI      2
218e99
+#define EXCP03_INT3     3
218e99
+#define EXCP04_INTO     4
218e99
+#define EXCP05_BOUND    5
218e99
+#define EXCP06_ILLOP    6
218e99
+#define EXCP07_PREX     7
218e99
+#define EXCP08_DBLE     8
218e99
+#define EXCP09_XERR     9
218e99
+#define EXCP0A_TSS      10
218e99
+#define EXCP0B_NOSEG    11
218e99
+#define EXCP0C_STACK    12
218e99
+#define EXCP0D_GPF      13
218e99
+#define EXCP0E_PAGE     14
218e99
+#define EXCP10_COPR     16
218e99
+#define EXCP11_ALGN     17
218e99
+#define EXCP12_MCHK     18
218e99
 
218e99
 #define EXCP_SYSCALL    0x100 /* only happens in user only emulation
218e99
                                  for syscall instruction */
218e99
@@ -1085,7 +1085,7 @@ static inline CPUX86State *cpu_init(const char *cpu_model)
218e99
 #define cpu_gen_code cpu_x86_gen_code
218e99
 #define cpu_signal_handler cpu_x86_signal_handler
218e99
 #define cpu_list x86_cpu_list
218e99
-#define cpudef_setup	x86_cpudef_setup
218e99
+#define cpudef_setup x86_cpudef_setup
218e99
 
218e99
 /* MMU modes definitions */
218e99
 #define MMU_MODE0_SUFFIX _kernel
218e99
-- 
218e99
1.7.1
218e99