aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-08-26 17:33:08 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-08-26 17:33:08 +0000
commitbe0164f2e0af7968c6cba02085f3f54ef8683e91 (patch)
tree0d25d9385dc49bec24276d3137b26e6c4f549932
parent70744b3ab889cd0d16992e1ad13fbde157c416ba (diff)
downloadqemu-be0164f2e0af7968c6cba02085f3f54ef8683e91.zip
qemu-be0164f2e0af7968c6cba02085f3f54ef8683e91.tar.gz
qemu-be0164f2e0af7968c6cba02085f3f54ef8683e91.tar.bz2
Set apic instance number for savevm, by Ari Kivity.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3144 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/apic.c b/hw/apic.c
index f964360..d503d45 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -832,7 +832,7 @@ int apic_init(CPUState *env)
}
s->timer = qemu_new_timer(vm_clock, apic_timer, s);
- register_savevm("apic", 0, 2, apic_save, apic_load, s);
+ register_savevm("apic", s->id, 2, apic_save, apic_load, s);
qemu_register_reset(apic_reset, s);
local_apics[s->id] = s;