mirror of https://github.com/xemu-project/xemu.git
target/i386: Macro out some unused functions
This commit is contained in:
parent
816c875ac4
commit
e0f4f42fda
|
@ -1497,12 +1497,16 @@ static inline bool accel_uses_host_cpuid(void)
|
||||||
return kvm_enabled() || hvf_enabled();
|
return kvm_enabled() || hvf_enabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef XBOX
|
||||||
|
|
||||||
static inline uint64_t x86_cpu_xsave_xcr0_components(X86CPU *cpu)
|
static inline uint64_t x86_cpu_xsave_xcr0_components(X86CPU *cpu)
|
||||||
{
|
{
|
||||||
return ((uint64_t)cpu->env.features[FEAT_XSAVE_XCR0_HI]) << 32 |
|
return ((uint64_t)cpu->env.features[FEAT_XSAVE_XCR0_HI]) << 32 |
|
||||||
cpu->env.features[FEAT_XSAVE_XCR0_LO];
|
cpu->env.features[FEAT_XSAVE_XCR0_LO];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Return name of 32-bit register, from a R_* constant */
|
/* Return name of 32-bit register, from a R_* constant */
|
||||||
static const char *get_register_name_32(unsigned int reg)
|
static const char *get_register_name_32(unsigned int reg)
|
||||||
{
|
{
|
||||||
|
@ -1512,12 +1516,16 @@ static const char *get_register_name_32(unsigned int reg)
|
||||||
return x86_reg_info_32[reg].name;
|
return x86_reg_info_32[reg].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef XBOX
|
||||||
|
|
||||||
static inline uint64_t x86_cpu_xsave_xss_components(X86CPU *cpu)
|
static inline uint64_t x86_cpu_xsave_xss_components(X86CPU *cpu)
|
||||||
{
|
{
|
||||||
return ((uint64_t)cpu->env.features[FEAT_XSAVE_XSS_HI]) << 32 |
|
return ((uint64_t)cpu->env.features[FEAT_XSAVE_XSS_HI]) << 32 |
|
||||||
cpu->env.features[FEAT_XSAVE_XSS_LO];
|
cpu->env.features[FEAT_XSAVE_XSS_LO];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns the set of feature flags that are supported and migratable by
|
* Returns the set of feature flags that are supported and migratable by
|
||||||
* QEMU, for a given FeatureWord.
|
* QEMU, for a given FeatureWord.
|
||||||
|
|
Loading…
Reference in New Issue