x86: Extend validity of bsp_to_cpu
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 1 Mar 2010 18:10:32 +0000 (19:10 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 4 Mar 2010 03:29:32 +0000 (00:29 -0300)
commit1d727f3e95a1726b61cc3e13f1f10e94eaef65c0
tree7f421e052ec89144adc966b95b22bd39f6526a34
parent5efee4cbd7cbcfa8158fd557dd6d154d2ec42473
x86: Extend validity of bsp_to_cpu

As we hard-wire the BSP to CPU 0 anyway and cpuid_apic_id equals
cpu_index, bsp_to_cpu can also be based on the latter directly. This
will help an early user of it: KVM while initializing mp_state.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/pc.c