Skip to content

Commit

Permalink
target/i386: Macro out some unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Dec 30, 2024
1 parent 816c875 commit e0f4f42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions target/i386/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1497,12 +1497,16 @@ static inline bool accel_uses_host_cpuid(void)
return kvm_enabled() || hvf_enabled();
}

#ifndef XBOX

static inline uint64_t x86_cpu_xsave_xcr0_components(X86CPU *cpu)
{
return ((uint64_t)cpu->env.features[FEAT_XSAVE_XCR0_HI]) << 32 |
cpu->env.features[FEAT_XSAVE_XCR0_LO];
}

#endif

/* Return name of 32-bit register, from a R_* constant */
static const char *get_register_name_32(unsigned int reg)
{
Expand All @@ -1512,12 +1516,16 @@ static const char *get_register_name_32(unsigned int reg)
return x86_reg_info_32[reg].name;
}

#ifndef XBOX

static inline uint64_t x86_cpu_xsave_xss_components(X86CPU *cpu)
{
return ((uint64_t)cpu->env.features[FEAT_XSAVE_XSS_HI]) << 32 |
cpu->env.features[FEAT_XSAVE_XSS_LO];
}

#endif

/*
* Returns the set of feature flags that are supported and migratable by
* QEMU, for a given FeatureWord.
Expand Down

0 comments on commit e0f4f42

Please sign in to comment.