qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v5 1/5] hw/ptimer: add VMSTATE_PTIMER_ARRAY


From: liguang
Subject: [Qemu-devel] [PATCH v5 1/5] hw/ptimer: add VMSTATE_PTIMER_ARRAY
Date: Wed, 27 Nov 2013 13:36:45 +0800

Signed-off-by: liguang <address@hidden>
---
 include/hw/ptimer.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/hw/ptimer.h b/include/hw/ptimer.h
index 28fcaf1..a9b8f1d 100644
--- a/include/hw/ptimer.h
+++ b/include/hw/ptimer.h
@@ -27,6 +27,9 @@ void ptimer_stop(ptimer_state *s);
 
 extern const VMStateDescription vmstate_ptimer;
 
+#define VMSTATE_PTIMER_ARRAY(_f, _s, _n) \
+    VMSTATE_STRUCT_ARRAY(_f, _s, _n, 0, vmstate_ptimer, ptimer_state*)
+
 #define VMSTATE_PTIMER(_field, _state) {                             \
     .name       = (stringify(_field)),                               \
     .version_id = (1),                                               \
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]