~ubuntu-branches/ubuntu/hardy/kvm/hardy-backports

« back to all changes in this revision

Viewing changes to qemu/hw/pcnet.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-01-03 10:39:25 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20080103103925-8480u7sq2646hvbh
Tags: 1:59+dfsg-0ubuntu1
* New upstream release
* Build with alsa support (cherry pick from 57+dfsg-2)

Show diffs side-by-side

added added

removed removed

Lines of Context:
350
350
    } else {
351
351
        s->phys_mem_read(s->dma_opaque, addr, (void *)tmd, sizeof(*tmd), 0);
352
352
        le32_to_cpus(&tmd->tbadr);
353
 
        le16_to_cpus(&tmd->length);
354
 
        le16_to_cpus(&tmd->status);
 
353
        le16_to_cpus((uint16_t *)&tmd->length);
 
354
        le16_to_cpus((uint16_t *)&tmd->status);
355
355
        le32_to_cpus(&tmd->misc);
356
356
        le32_to_cpus(&tmd->res);
357
357
        if (BCR_SWSTYLE(s) == 3) {
416
416
    } else {
417
417
        s->phys_mem_read(s->dma_opaque, addr, (void *)rmd, sizeof(*rmd), 0);
418
418
        le32_to_cpus(&rmd->rbadr);
419
 
        le16_to_cpus(&rmd->buf_length);
420
 
        le16_to_cpus(&rmd->status);
 
419
        le16_to_cpus((uint16_t *)&rmd->buf_length);
 
420
        le16_to_cpus((uint16_t *)&rmd->status);
421
421
        le32_to_cpus(&rmd->msg_length);
422
422
        le32_to_cpus(&rmd->res);
423
423
        if (BCR_SWSTYLE(s) == 3) {