Re: [Qemu-devel] [PATCH V2 05/10] hw/sd.c: add SD card save/load support

2012-04-11 Thread Peter Maydell
On 5 April 2012 16:48, Igor Mitsyanko wrote: > @@ -416,8 +421,9 @@ static void sd_reset(SDState *sd, BlockDriverState *bdrv) >     if (sd->wp_groups) >         g_free(sd->wp_groups); >     sd->wp_switch = bdrv ? bdrv_is_read_only(bdrv) : false; > +    sd->wpgrps_size = BITS_TO_LONGS(sect); >     s

[Qemu-devel] [PATCH V2 05/10] hw/sd.c: add SD card save/load support

2012-04-05 Thread Igor Mitsyanko
This patch updates SD card emulation to support save/load of card's state. Signed-off-by: Igor Mitsyanko --- hw/sd.c | 89 +- 1 files changed, 64 insertions(+), 25 deletions(-) diff --git a/hw/sd.c b/hw/sd.c index 7160e8c..6f6be88 10