diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-20 08:04:11 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-20 08:04:11 +0000 |
commit | 67d8cec34b1560973f5c25e14fac53b4ef5b0f6e (patch) | |
tree | e498b399e74162fc7b45d025170247f05990bcea /hw/pcnet.c | |
parent | b40d0353b0d43517ba1ab1c07eb86a1cb27f87f9 (diff) |
Add signed versions of save/load functions
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5274 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pcnet.c')
-rw-r--r-- | hw/pcnet.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c index 2e7f80c134..188e5ffd3b 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -1877,9 +1877,9 @@ static void pcnet_save(QEMUFile *f, void *opaque) if (s->pci_dev) pci_device_save(s->pci_dev, f); - qemu_put_be32(f, s->rap); - qemu_put_be32(f, s->isr); - qemu_put_be32(f, s->lnkst); + qemu_put_sbe32(f, s->rap); + qemu_put_sbe32(f, s->isr); + qemu_put_sbe32(f, s->lnkst); qemu_put_be32s(f, &s->rdra); qemu_put_be32s(f, &s->tdra); qemu_put_buffer(f, s->prom, 16); @@ -1888,10 +1888,10 @@ static void pcnet_save(QEMUFile *f, void *opaque) for (i = 0; i < 32; i++) qemu_put_be16s(f, &s->bcr[i]); qemu_put_be64s(f, &s->timer); - qemu_put_be32(f, s->xmit_pos); - qemu_put_be32(f, s->recv_pos); + qemu_put_sbe32(f, s->xmit_pos); + qemu_put_sbe32(f, s->recv_pos); qemu_put_buffer(f, s->buffer, 4096); - qemu_put_be32(f, s->tx_busy); + qemu_put_sbe32(f, s->tx_busy); qemu_put_timer(f, s->poll_timer); } @@ -1909,9 +1909,9 @@ static int pcnet_load(QEMUFile *f, void *opaque, int version_id) return ret; } - qemu_get_be32s(f, (uint32_t*)&s->rap); - qemu_get_be32s(f, (uint32_t*)&s->isr); - qemu_get_be32s(f, (uint32_t*)&s->lnkst); + qemu_get_sbe32s(f, &s->rap); + qemu_get_sbe32s(f, &s->isr); + qemu_get_sbe32s(f, &s->lnkst); qemu_get_be32s(f, &s->rdra); qemu_get_be32s(f, &s->tdra); qemu_get_buffer(f, s->prom, 16); @@ -1920,10 +1920,10 @@ static int pcnet_load(QEMUFile *f, void *opaque, int version_id) for (i = 0; i < 32; i++) qemu_get_be16s(f, &s->bcr[i]); qemu_get_be64s(f, &s->timer); - qemu_get_be32s(f, (uint32_t*)&s->xmit_pos); - qemu_get_be32s(f, (uint32_t*)&s->recv_pos); + qemu_get_sbe32s(f, &s->xmit_pos); + qemu_get_sbe32s(f, &s->recv_pos); qemu_get_buffer(f, s->buffer, 4096); - qemu_get_be32s(f, (uint32_t*)&s->tx_busy); + qemu_get_sbe32s(f, &s->tx_busy); qemu_get_timer(f, s->poll_timer); return 0; |