The savevm code contains VMSTATE_ helpers for a number of commonly used types, but not for target_phys_addr_t. This patch fixes that deficiency implementing VMSTATE_TPA helpers in terms of VMSTATE_UINT32 or VMSTATE_UINT64 helpers as appropriate.
Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> --- targphys.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/targphys.h b/targphys.h index 08cade9..a1c20b4 100644 --- a/targphys.h +++ b/targphys.h @@ -17,4 +17,15 @@ typedef uint64_t target_phys_addr_t; #define TARGET_PRIxPHYS PRIx64 #define TARGET_PRIXPHYS PRIX64 +#define VMSTATE_TPA_V(_f, _s, _v) \ + VMSTATE_UINT64_V(_f, _s, _v) + +#define VMSTATE_TPA_EQUAL_V(_f, _s, _v) \ + VMSTATE_UINT64_EQUAL_V(_f, _s, _v) + +#define VMSTATE_TPA(_f, _s) \ + VMSTATE_TPA_V(_f, _s, 0) +#define VMSTATE_TPA_EQUAL(_f, _s) \ + VMSTATE_TPA_EQUAL_V(_f, _s, 0) + #endif -- 1.7.10.4