From e0f4f42fda1f5bf4844189f5687bdebde05053d3 Mon Sep 17 00:00:00 2001 From: Matt Borgerson <contact@mborgerson.com> Date: Sun, 29 Dec 2024 17:30:07 -0700 Subject: [PATCH] target/i386: Macro out some unused functions --- target/i386/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 2330a8d902..9664e1bd96 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -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) { @@ -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.