diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-06-19 10:42:34 +0300 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-06-19 10:42:34 +0300 |
commit | 0e26b7b892e1369d66da63b748acbfb6b3819a59 (patch) | |
tree | 4a67dca5b6529bebac524e757f99eb987dd0c653 /target-i386/cpuid.c | |
parent | 4a942ceac7e38c259116960e45ba9619611d1df9 (diff) |
apic: avoid using CPUState internals
Move the actual CPUState contents handling to cpu.h and cpuid.c.
Handle CPU reset and set env->halted in pc.c.
Add a function to get the local APIC state of the current
CPU for the MMIO.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-i386/cpuid.c')
-rw-r--r-- | target-i386/cpuid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 7a112159ce..6a0f7ca82e 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -944,6 +944,12 @@ static int cpudef_register(QemuOpts *opts, void *opaque) x86_defs = def; return (0); } + +void cpu_clear_apic_feature(CPUX86State *env) +{ + env->cpuid_features &= ~CPUID_APIC; +} + #endif /* !CONFIG_USER_ONLY */ /* register "cpudef" models defined in configuration file. Here we first |