summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-21 17:51:50 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-21 17:51:50 +0000
commit8210169a78ac3afa779abe763b7ab70517e4e161 (patch)
tree2d6950c1e3824c03a56f2e63df28702c2c500096
parent77599a1f7aa96370e8690652cc943f2208049f6c (diff)
downloadqemu-8210169a78ac3afa779abe763b7ab70517e4e161.tar.gz
qemu-8210169a78ac3afa779abe763b7ab70517e4e161.tar.bz2
qemu-8210169a78ac3afa779abe763b7ab70517e4e161.zip
Do not save dynamic field
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4770 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/gus.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/gus.c b/hw/gus.c
index d39d918724..9ff00d791c 100644
--- a/hw/gus.c
+++ b/hw/gus.c
@@ -225,7 +225,6 @@ static void GUS_save (QEMUFile *f, void *opaque)
int32_t val;
GUSState *s = opaque;
- val = s->freq; qemu_put_be32s (f, &val);
val = s->pos; qemu_put_be32s (f, &val);
val = s->left; qemu_put_be32s (f, &val);
val = s->shift; qemu_put_be32s (f, &val);
@@ -240,10 +239,9 @@ static int GUS_load (QEMUFile *f, void *opaque, int version_id)
int32_t val;
GUSState *s = opaque;
- if (version_id != 1)
+ if (version_id != 2)
return -EINVAL;
- qemu_get_be32s (f, &val); s->freq = val;
qemu_get_be32s (f, &val); s->pos = val;
qemu_get_be32s (f, &val); s->left = val;
qemu_get_be32s (f, &val); s->shift = val;
@@ -331,6 +329,6 @@ int GUS_init (AudioState *audio, qemu_irq *pic)
AUD_set_active_out (s->voice, 1);
- register_savevm ("gus", 0, 1, GUS_save, GUS_load, s);
+ register_savevm ("gus", 0, 2, GUS_save, GUS_load, s);
return 0;
}