Revision 487414f1 hw/apic.c
b/hw/apic.c | ||
---|---|---|
898 | 898 |
if (last_apic_id >= MAX_APICS) |
899 | 899 |
return -1; |
900 | 900 |
s = qemu_mallocz(sizeof(APICState)); |
901 |
if (!s) |
|
902 |
return -1; |
|
903 | 901 |
env->apic_state = s; |
904 | 902 |
s->id = last_apic_id++; |
905 | 903 |
env->cpuid_apic_id = s->id; |
... | ... | |
1124 | 1122 |
int io_memory; |
1125 | 1123 |
|
1126 | 1124 |
s = qemu_mallocz(sizeof(IOAPICState)); |
1127 |
if (!s) |
|
1128 |
return NULL; |
|
1129 | 1125 |
ioapic_reset(s); |
1130 | 1126 |
s->id = last_apic_id++; |
1131 | 1127 |
|
Also available in: Unified diff