]> git.proxmox.com Git - mirror_qemu.git/commit - hw/core/cpu.c
cpu: cpu_by_arch_id() helper
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 26 Jul 2017 18:44:35 +0000 (15:44 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 1 Sep 2017 14:54:24 +0000 (11:54 -0300)
commit5ce46cb34eecec0bc94a4b1394763f9a1bbe20c3
tree7bd400d87bc3fc95068e397bd9f0a947e9e790e8
parent3beacfb98ba5f594dff4a4541401f2849e0a9ec6
cpu: cpu_by_arch_id() helper

The helper can be used for CPU object lookup using the CPU's
arch-specific ID (the one returned by CPUClass::get_arch_id()).

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
[Yi Wang: Added documentation comments]
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Yun Liu <liu.yunh@zte.com.cn>
[ehabkost: extracted cpu_by_arch_id() to a separate patch]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/qom/cpu.h
qom/cpu.c