diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-31 19:30:15 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-31 19:30:15 +0000 |
commit | 55a6e51f2a78536d605a6a00dfbec34227b2dd32 (patch) | |
tree | 7534a657aee92fe8ee802394faf4ff6757b258e2 /hw/hw.h | |
parent | 4e2a68c1e1b296bca8a60b480ac935527cd87953 (diff) | |
download | qemu-55a6e51f2a78536d605a6a00dfbec34227b2dd32.zip qemu-55a6e51f2a78536d605a6a00dfbec34227b2dd32.tar.gz qemu-55a6e51f2a78536d605a6a00dfbec34227b2dd32.tar.bz2 |
Add VMState support for ptimers
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/hw.h')
-rw-r--r-- | hw/hw.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -324,6 +324,7 @@ extern const VMStateInfo vmstate_info_uint32; extern const VMStateInfo vmstate_info_uint64; extern const VMStateInfo vmstate_info_timer; +extern const VMStateInfo vmstate_info_ptimer; extern const VMStateInfo vmstate_info_buffer; #define type_check_array(t1,t2,n) ((t1(*)[n])0 - (t2*)0) @@ -470,6 +471,12 @@ extern const VMStateDescription vmstate_pci_device; #define VMSTATE_TIMER(_f, _s) \ VMSTATE_TIMER_V(_f, _s, 0) +#define VMSTATE_PTIMER_V(_f, _s, _v) \ + VMSTATE_POINTER(_f, _s, _v, vmstate_info_ptimer, ptimer_state *) + +#define VMSTATE_PTIMER(_f, _s) \ + VMSTATE_PTIMER_V(_f, _s, 0) + #define VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v) \ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint32, uint32_t) |