diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-11-22 17:17:16 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-12-10 13:28:49 +0000 |
commit | 3541addc888413b84fb309e3f4abf210c0c5eb57 (patch) | |
tree | 0ae1485418dab6bac1727eb121d2cecc01e74b94 /target-arm/kvm-consts.h | |
parent | f5fdcd6e58ec35b4463569694fc15d28c505c4d0 (diff) |
target-arm: Don't hardcode KVM target CPU to be A15
Instead of assuming that a KVM target CPU must always be a
Cortex-A15 and hardcoding this in kvm_arch_init_vcpu(),
store the KVM_ARM_TARGET_* value in the ARMCPU class,
and use that.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Message-id: 1385140638-10444-10-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target-arm/kvm-consts.h')
-rw-r--r-- | target-arm/kvm-consts.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target-arm/kvm-consts.h b/target-arm/kvm-consts.h index 4062f11f86..2bba0bd198 100644 --- a/target-arm/kvm-consts.h +++ b/target-arm/kvm-consts.h @@ -48,6 +48,17 @@ MISMATCH_CHECK(PSCI_FN_CPU_OFF, KVM_PSCI_FN_CPU_OFF) MISMATCH_CHECK(PSCI_FN_CPU_ON, KVM_PSCI_FN_CPU_ON) MISMATCH_CHECK(PSCI_FN_MIGRATE, KVM_PSCI_FN_MIGRATE) +#define QEMU_KVM_ARM_TARGET_CORTEX_A15 0 + +/* There's no kernel define for this: sentinel value which + * matches no KVM target value for either 64 or 32 bit + */ +#define QEMU_KVM_ARM_TARGET_NONE UINT_MAX + +#ifndef TARGET_AARCH64 +MISMATCH_CHECK(QEMU_KVM_ARM_TARGET_CORTEX_A15, KVM_ARM_TARGET_CORTEX_A15) +#endif + #undef MISMATCH_CHECK #endif |