* [Qemu-devel] [4770] Do not save dynamic field
@ 2008-06-21 17:51 malc
0 siblings, 0 replies; only message in thread
From: malc @ 2008-06-21 17:51 UTC (permalink / raw)
To: qemu-devel
Revision: 4770
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4770
Author: malc
Date: 2008-06-21 17:51:50 +0000 (Sat, 21 Jun 2008)
Log Message:
-----------
Do not save dynamic field
Modified Paths:
--------------
trunk/hw/gus.c
Modified: trunk/hw/gus.c
===================================================================
--- trunk/hw/gus.c 2008-06-21 17:15:00 UTC (rev 4769)
+++ trunk/hw/gus.c 2008-06-21 17:51:50 UTC (rev 4770)
@@ -225,7 +225,6 @@
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 @@
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 @@
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-21 17:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-21 17:51 [Qemu-devel] [4770] Do not save dynamic field malc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).