1 /* Declarations for use for CPU state serialization. */ 2 #ifndef MIGRATION_CPU_H 3 #define MIGRATION_CPU_H 4 5 #if TARGET_LONG_BITS == 64 6 #define qemu_put_betl qemu_put_be64 7 #define qemu_get_betl qemu_get_be64 8 #define qemu_put_betls qemu_put_be64s 9 #define qemu_get_betls qemu_get_be64s 10 #define qemu_put_sbetl qemu_put_sbe64 11 #define qemu_get_sbetl qemu_get_sbe64 12 #define qemu_put_sbetls qemu_put_sbe64s 13 #define qemu_get_sbetls qemu_get_sbe64s 14 15 #define VMSTATE_UINTTL_V(_f, _s, _v) \ 16 VMSTATE_UINT64_V(_f, _s, _v) 17 #define VMSTATE_UINTTL_EQUAL_V(_f, _s, _v) \ 18 VMSTATE_UINT64_EQUAL_V(_f, _s, _v) 19 #define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \ 20 VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v) 21 #define VMSTATE_UINTTL_TEST(_f, _s, _t) \ 22 VMSTATE_UINT64_TEST(_f, _s, _t) 23 #define vmstate_info_uinttl vmstate_info_uint64 24 #else 25 #define qemu_put_betl qemu_put_be32 26 #define qemu_get_betl qemu_get_be32 27 #define qemu_put_betls qemu_put_be32s 28 #define qemu_get_betls qemu_get_be32s 29 #define qemu_put_sbetl qemu_put_sbe32 30 #define qemu_get_sbetl qemu_get_sbe32 31 #define qemu_put_sbetls qemu_put_sbe32s 32 #define qemu_get_sbetls qemu_get_sbe32s 33 34 #define VMSTATE_UINTTL_V(_f, _s, _v) \ 35 VMSTATE_UINT32_V(_f, _s, _v) 36 #define VMSTATE_UINTTL_EQUAL_V(_f, _s, _v) \ 37 VMSTATE_UINT32_EQUAL_V(_f, _s, _v) 38 #define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \ 39 VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v) 40 #define VMSTATE_UINTTL_TEST(_f, _s, _t) \ 41 VMSTATE_UINT32_TEST(_f, _s, _t) 42 #define vmstate_info_uinttl vmstate_info_uint32 43 #endif 44 45 #define VMSTATE_UINTTL(_f, _s) \ 46 VMSTATE_UINTTL_V(_f, _s, 0) 47 #define VMSTATE_UINTTL_EQUAL(_f, _s) \ 48 VMSTATE_UINTTL_EQUAL_V(_f, _s, 0) 49 #define VMSTATE_UINTTL_ARRAY(_f, _s, _n) \ 50 VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, 0) 51 52 #endif 53