First patch of this patch set modifies existing VMStateField interface to ease save/restore functionality implementation for device's dynamically allocated buffers. This modification is used later in second patch to implement SD card's VMStateDescription structure. Third patch adds imlementation of new device: SD host controller fully compliant with "SD host controller specification version 2.00". It also uses first patch modifications.
Mitsyanko Igor (3): vmstate: introduce calc_size VMStateField hw/sd.c: add SD card save/load support hw/: Introduce spec. ver. 2.00 compliant SD host controller Makefile.target | 1 + hw/hw.h | 14 +- hw/milkymist-memcard.c | 2 + hw/sd.c | 115 +++-- hw/sd.h | 1 + hw/sdhc_ver2.c | 1579 ++++++++++++++++++++++++++++++++++++++++++++++++ hw/sdhc_ver2.h | 327 ++++++++++ savevm.c | 14 +- 8 files changed, 2004 insertions(+), 49 deletions(-) create mode 100644 hw/sdhc_ver2.c create mode 100644 hw/sdhc_ver2.h -- 1.7.4.1