Skip to content
  • Thomas Huth's avatar
    3d81e8cf
    hw/misc: Move some arm-related files from specific_ss into softmmu_ss · 3d81e8cf
    Thomas Huth authored
    
    
    The header target/arm/kvm-consts.h checks CONFIG_KVM which is marked as
    poisoned in common code, so the files that include this header have to
    be added to specific_ss and recompiled for each, qemu-system-arm and
    qemu-system-aarch64. However, since the kvm headers are only optionally
    used in kvm-constants.h for some sanity checks, we can additionally
    check the NEED_CPU_H macro first to avoid the poisoned CONFIG_KVM macro,
    so kvm-constants.h can also be used from "common" files (without the
    sanity checks - which should be OK since they are still done from other
    target-specific files instead). This way, and by adjusting some other
    include statements in the related files here and there, we can move some
    files from specific_ss into softmmu_ss, so that they only need to be
    compiled once during the build process.
    
    Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
    Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
    Message-id: 20221202154023.293614-1-thuth@redhat.com
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    3d81e8cf
    hw/misc: Move some arm-related files from specific_ss into softmmu_ss
    Thomas Huth authored
    
    
    The header target/arm/kvm-consts.h checks CONFIG_KVM which is marked as
    poisoned in common code, so the files that include this header have to
    be added to specific_ss and recompiled for each, qemu-system-arm and
    qemu-system-aarch64. However, since the kvm headers are only optionally
    used in kvm-constants.h for some sanity checks, we can additionally
    check the NEED_CPU_H macro first to avoid the poisoned CONFIG_KVM macro,
    so kvm-constants.h can also be used from "common" files (without the
    sanity checks - which should be OK since they are still done from other
    target-specific files instead). This way, and by adjusting some other
    include statements in the related files here and there, we can move some
    files from specific_ss into softmmu_ss, so that they only need to be
    compiled once during the build process.
    
    Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
    Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
    Message-id: 20221202154023.293614-1-thuth@redhat.com
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Loading