Revision 20bcf73f

b/hw/arm/pxa2xx.c
1448 1448
        VMSTATE_UINT8(ibmr, PXA2xxI2CState),
1449 1449
        VMSTATE_UINT8(data, PXA2xxI2CState),
1450 1450
        VMSTATE_STRUCT_POINTER(slave, PXA2xxI2CState,
1451
                               vmstate_pxa2xx_i2c_slave, PXA2xxI2CSlaveState *),
1451
                               vmstate_pxa2xx_i2c_slave, PXA2xxI2CSlaveState),
1452 1452
        VMSTATE_END_OF_LIST()
1453 1453
    }
1454 1454
};
b/include/hw/ptimer.h
27 27

  
28 28
extern const VMStateDescription vmstate_ptimer;
29 29

  
30
#define VMSTATE_PTIMER(_field, _state) {                             \
31
    .name       = (stringify(_field)),                               \
32
    .version_id = (1),                                               \
33
    .vmsd       = &vmstate_ptimer,                                   \
34
    .size       = sizeof(ptimer_state *),                            \
35
    .flags      = VMS_STRUCT|VMS_POINTER,                            \
36
    .offset     = vmstate_offset_pointer(_state, _field, ptimer_state), \
37
}
30
#define VMSTATE_PTIMER(_field, _state) \
31
    VMSTATE_STRUCT_POINTER_V(_field, _state, 1, vmstate_ptimer, ptimer_state)
38 32

  
39 33
#define VMSTATE_PTIMER_ARRAY(_f, _s, _n)                                \
40 34
    VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(_f, _s, _n, 0,                   \
b/include/migration/vmstate.h
314 314
    .name         = (stringify(_field)),                             \
315 315
    .version_id   = (_version),                                        \
316 316
    .vmsd         = &(_vmsd),                                        \
317
    .size         = sizeof(_type),                                   \
317
    .size         = sizeof(_type *),                                 \
318 318
    .flags        = VMS_STRUCT|VMS_POINTER,                          \
319
    .offset       = vmstate_offset_value(_state, _field, _type),     \
319
    .offset       = vmstate_offset_pointer(_state, _field, _type),   \
320 320
}
321 321

  
322 322
#define VMSTATE_STRUCT_POINTER_TEST_V(_field, _state, _test, _version, _vmsd, _type) { \
......
324 324
    .version_id   = (_version),                                        \
325 325
    .field_exists = (_test),                                         \
326 326
    .vmsd         = &(_vmsd),                                        \
327
    .size         = sizeof(_type),                                   \
327
    .size         = sizeof(_type *),                                 \
328 328
    .flags        = VMS_STRUCT|VMS_POINTER,                          \
329
    .offset       = vmstate_offset_value(_state, _field, _type),     \
329
    .offset       = vmstate_offset_pointer(_state, _field, _type),   \
330 330
}
331 331

  
332 332
#define VMSTATE_ARRAY_OF_POINTER(_field, _state, _num, _version, _info, _type) {\

Also available in: Unified diff