aboutsummaryrefslogtreecommitdiff
path: root/hw/apic_internal.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-10-10 14:10:07 +0200
committerAndreas Färber <afaerber@suse.de>2012-10-30 22:38:37 +0100
commit60671e583c2bfb09746f59268fdc7d88eaa24deb (patch)
tree8e90c7df32f115eb47410166ff4839db9dfcb1bf /hw/apic_internal.h
parent449994eb58a4175a2e7656175b18c65ead6c09ca (diff)
downloadqemu-60671e583c2bfb09746f59268fdc7d88eaa24deb.zip
qemu-60671e583c2bfb09746f59268fdc7d88eaa24deb.tar.gz
qemu-60671e583c2bfb09746f59268fdc7d88eaa24deb.tar.bz2
apic: Store X86CPU in APICCommonState
Prepares for using a link<> property to connect APIC with CPU and for changing the CPU APIs to CPUState. Resolve Coding Style warnings by moving the closing parenthesis of foreach_apic() macro to next line. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/apic_internal.h')
-rw-r--r--hw/apic_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/apic_internal.h b/hw/apic_internal.h
index 30932a3..79e2de2 100644
--- a/hw/apic_internal.h
+++ b/hw/apic_internal.h
@@ -95,8 +95,9 @@ typedef struct APICCommonClass
struct APICCommonState {
SysBusDevice busdev;
+
MemoryRegion io_memory;
- void *cpu_env;
+ X86CPU *cpu;
uint32_t apicbase;
uint8_t id;
uint8_t arb_id;