mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target-i386: Move CPUX86State.cpuid_apic_id to X86CPU.apic_id
The field doesn't need to be inside CPUState, and it is not specific for the CPUID instruction, so move and rename it. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
18b0e4e771
commit
9e9d3863ad
4 changed files with 10 additions and 11 deletions
|
@ -430,7 +430,7 @@ static void cpu_update_state(void *opaque, int running, RunState state)
|
|||
unsigned long kvm_arch_vcpu_id(CPUState *cs)
|
||||
{
|
||||
X86CPU *cpu = X86_CPU(cs);
|
||||
return cpu->env.cpuid_apic_id;
|
||||
return cpu->apic_id;
|
||||
}
|
||||
|
||||
#ifndef KVM_CPUID_SIGNATURE_NEXT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue