diff options
author | Igor Mammedov <imammedo@redhat.com> | 2013-04-23 10:29:41 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-05-01 13:04:18 +0200 |
commit | 997395d3888fcde6ce41535a8208d7aa919d824b (patch) | |
tree | 5e6d2bd054bdb7b1f1914916f97dbdd06a7b3374 /exec.c | |
parent | b8b7456d6ab7edb450ae5ec6473d3cd9a80412f4 (diff) | |
download | qemu-997395d3888fcde6ce41535a8208d7aa919d824b.zip |
cpu: Introduce get_arch_id() method and override it for X86CPU
get_arch_id() adds possibility for generic code to get a guest-visible
CPU ID without accessing CPUArchState.
If derived classes don't override it, it will return cpu_index.
Override it on target-i386 in X86CPU to return the APIC ID.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: liguang <lig.fnst@cn.fujitsu.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions