aboutsummaryrefslogtreecommitdiff
path: root/hw/dma.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 23:41:11 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 23:41:11 +0000
commitbee8d6842d1421ce3456779492561a92530e9c5a (patch)
treedf34a09af2cc2bfa13af3c749172a2932d7a3735 /hw/dma.c
parentb99dc0d1a4d395bad649ef25abe21c5f076787a5 (diff)
downloadqemu-bee8d6842d1421ce3456779492561a92530e9c5a.zip
qemu-bee8d6842d1421ce3456779492561a92530e9c5a.tar.gz
qemu-bee8d6842d1421ce3456779492561a92530e9c5a.tar.bz2
qemu_put signedness fixes, by Andre Przywara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3824 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/dma.c')
-rw-r--r--hw/dma.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/dma.c b/hw/dma.c
index d779e4c..1891b22 100644
--- a/hw/dma.c
+++ b/hw/dma.c
@@ -482,12 +482,12 @@ static void dma_save (QEMUFile *f, void *opaque)
qemu_put_8s (f, &d->command);
qemu_put_8s (f, &d->mask);
qemu_put_8s (f, &d->flip_flop);
- qemu_put_be32s (f, &d->dshift);
+ qemu_put_be32 (f, d->dshift);
for (i = 0; i < 4; ++i) {
struct dma_regs *r = &d->regs[i];
- qemu_put_be32s (f, &r->now[0]);
- qemu_put_be32s (f, &r->now[1]);
+ qemu_put_be32 (f, r->now[0]);
+ qemu_put_be32 (f, r->now[1]);
qemu_put_be16s (f, &r->base[0]);
qemu_put_be16s (f, &r->base[1]);
qemu_put_8s (f, &r->mode);
@@ -510,12 +510,12 @@ static int dma_load (QEMUFile *f, void *opaque, int version_id)
qemu_get_8s (f, &d->command);
qemu_get_8s (f, &d->mask);
qemu_get_8s (f, &d->flip_flop);
- qemu_get_be32s (f, &d->dshift);
+ d->dshift=qemu_get_be32 (f);
for (i = 0; i < 4; ++i) {
struct dma_regs *r = &d->regs[i];
- qemu_get_be32s (f, &r->now[0]);
- qemu_get_be32s (f, &r->now[1]);
+ r->now[0]=qemu_get_be32 (f);
+ r->now[1]=qemu_get_be32 (f);
qemu_get_be16s (f, &r->base[0]);
qemu_get_be16s (f, &r->base[1]);
qemu_get_8s (f, &r->mode);