mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
target-arm: Convert TCG to using (index,value) list for cp migration
Convert the TCG ARM target to using an (index,value) list for migrating coprocessors. The primary benefit of the (index,value) list is for passing state between KVM and QEMU, but it works for TCG-to-TCG migration as well and is a useful self-contained first step. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d4e6df6379
commit
721fae1253
6 changed files with 341 additions and 47 deletions
|
@ -23,6 +23,15 @@
|
|||
#include "cpu.h"
|
||||
#include "hw/arm/arm.h"
|
||||
|
||||
/* Check that cpu.h's idea of coprocessor fields matches KVM's */
|
||||
#if (CP_REG_SIZE_SHIFT != KVM_REG_SIZE_SHIFT) || \
|
||||
(CP_REG_SIZE_MASK != KVM_REG_SIZE_MASK) || \
|
||||
(CP_REG_SIZE_U32 != KVM_REG_SIZE_U32) || \
|
||||
(CP_REG_SIZE_U64 != KVM_REG_SIZE_U64) || \
|
||||
(CP_REG_ARM != KVM_REG_ARM)
|
||||
#error mismatch between cpu.h and KVM header definitions
|
||||
#endif
|
||||
|
||||
const KVMCapabilityInfo kvm_arch_required_capabilities[] = {
|
||||
KVM_CAP_LAST_INFO
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue