[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC v2 4/7] x86emul/test: remove unused macros
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- Cc: Jan Beulich <jbeulich@xxxxxxxx> Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Cc: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/tests/x86_emulator/test_x86_emulator.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/tools/tests/x86_emulator/test_x86_emulator.c b/tools/tests/x86_emulator/test_x86_emulator.c index 6099401..bcdbdff 100644 --- a/tools/tests/x86_emulator/test_x86_emulator.c +++ b/tools/tests/x86_emulator/test_x86_emulator.c @@ -23,15 +23,6 @@ static const struct { #endif }; -/* EFLAGS bit definitions. */ -#define EFLG_OF (1<<11) -#define EFLG_DF (1<<10) -#define EFLG_SF (1<<7) -#define EFLG_ZF (1<<6) -#define EFLG_AF (1<<4) -#define EFLG_PF (1<<2) -#define EFLG_CF (1<<0) - static unsigned int bytes_read; static int read( @@ -116,13 +107,6 @@ static int cmpxchg( (edx & (1U << 26)) != 0; \ }) -#define cpu_has_xsave ({ \ - unsigned int eax = 1, ecx = 0; \ - emul_test_cpuid(&eax, &eax, &ecx, &eax, NULL); \ - /* Intentionally checking OSXSAVE here. */ \ - (ecx & (1U << 27)) != 0; \ -}) - static inline uint64_t xgetbv(uint32_t xcr) { uint32_t lo, hi; @@ -140,18 +124,6 @@ static inline uint64_t xgetbv(uint32_t xcr) (ecx & (1U << 28)) != 0; \ }) -#define cpu_has_avx2 ({ \ - unsigned int eax = 1, ebx, ecx = 0; \ - emul_test_cpuid(&eax, &ebx, &ecx, &eax, NULL); \ - if ( !(ecx & (1U << 27)) || ((xgetbv(0) & 6) != 6) ) \ - ebx = 0; \ - else { \ - eax = 7, ecx = 0; \ - emul_test_cpuid(&eax, &ebx, &ecx, &eax, NULL); \ - } \ - (ebx & (1U << 5)) != 0; \ -}) - int get_fpu( void (*exception_callback)(void *, struct cpu_user_regs *), void *exception_callback_arg, -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |