From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLRo5-0002vG-9z for qemu-devel@nongnu.org; Tue, 09 Oct 2012 00:52:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLRo3-0003jx-C5 for qemu-devel@nongnu.org; Tue, 09 Oct 2012 00:52:37 -0400 Received: from ozlabs.org ([203.10.76.45]:34709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLRo3-0003jO-0I for qemu-devel@nongnu.org; Tue, 09 Oct 2012 00:52:35 -0400 From: David Gibson Date: Tue, 9 Oct 2012 15:53:29 +1100 Message-Id: <1349758412-5559-5-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1349758412-5559-1-git-send-email-david@gibson.dropbear.id.au> References: <1349758412-5559-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCH 4/7] savevm: Add VMSTATE_ helpers for target_phys_addr_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com, quintela@redhat.com Cc: blauwirbel@gmail.com, qemu-devel@nongnu.org, David Gibson 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 --- 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