]> git.proxmox.com Git - mirror_qemu.git/commit
Introduce gic_class_name() instead of repeating condition
authorPavel Fedin <p.fedin@samsung.com>
Thu, 13 Aug 2015 10:26:21 +0000 (11:26 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Aug 2015 10:26:21 +0000 (11:26 +0100)
commite6fbcbc4e57322a8de1307556e68a4cd6d0d8c8b
tree39e13cd535cb305398377adc6d2365eb9f6679e7
parent7926c210ab0c44fc3612461a50f487d16be98dca
Introduce gic_class_name() instead of repeating condition

This small inline returns correct GIC class name depending on whether we
use KVM acceleration or not. Avoids duplicating the condition everywhere.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 4f26901be9b844b563673ce3ad08eeedbb7a7132.1438758065.git.p.fedin@samsung.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
hw/cpu/a15mpcore.c
target-arm/kvm_arm.h