diff options
author | Juan Quintela <quintela@redhat.com> | 2009-09-29 22:49:00 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:42 -0500 |
commit | f89a8e4ede7519bdcc3a6f5a7e682f91afcd9b7a (patch) | |
tree | 356751c3ac0e20d06d4aa07e8c4be564dc220eaa /hw/hw.h | |
parent | c1a54d573bae6c597eaa3c9ca6135930c5cd5215 (diff) |
Add *TL functions to vmstate
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/hw.h')
-rw-r--r-- | hw/hw.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -587,6 +587,25 @@ extern const VMStateDescription vmstate_i2c_slave; #define VMSTATE_BUFFER(_f, _s) \ VMSTATE_STATIC_BUFFER(_f, _s, 0) +#ifdef NEED_CPU_H +#if TARGET_LONG_BITS == 64 +#define VMSTATE_UINTTL_V(_f, _s, _v) \ + VMSTATE_UINT64_V(_f, _s, _v) +#define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v) +#else +#define VMSTATE_UINTTL_V(_f, _s, _v) \ + VMSTATE_UINT32_V(_f, _s, _v) +#define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v) +#endif +#define VMSTATE_UINTTL(_f, _s) \ + VMSTATE_UINTTL_V(_f, _s, 0) +#define VMSTATE_UINTTL_ARRAY(_f, _s, _n) \ + VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, 0) + +#endif + #define VMSTATE_END_OF_LIST() \ {} |