qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/9] Don't use ld./st._phys in hw/
@ 2011-07-05 16:28 Alexander Graf
  2011-07-05 16:28 ` [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions Alexander Graf
                   ` (9 more replies)
  0 siblings, 10 replies; 23+ messages in thread
From: Alexander Graf @ 2011-07-05 16:28 UTC (permalink / raw)
  To: qemu-devel@nongnu.org Developers

We have quite some code in hw/ that uses ld./st._phys functions
in device emulation code. This is just pure wrong, as devices
don't know about the CPU endianness (except for virtio), so they
should instead use something endian specific.

Unfortunately, there is no endian specific call to easily receive
an integer from memory, so this patch set introduces some and then
converts all the obvious users to them.

I tested the targets I could, but please double-check if your
architecture behaves differently or I accidently put in a _be
instead of _le :)


Alex

Alexander Graf (9):
  exec: add endian specific phys ld/st functions
  hpet: use specific endian ld/st_phys
  intel-hda: use specific endian ld/st_phys
  msi: use specific endian ld/st_phys
  msix: use specific endian ld/st_phys
  pl080: use specific endian ld/st_phys
  ppc405_uc: use specific endian ld/st_phys
  s390-virtio: use specific endian ld/st_phys
  spapr: use specific endian ld/st_phys

 cpu-common.h         |   12 ++++++
 exec.c               |  102 ++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/hpet.c            |    2 +-
 hw/intel-hda.c       |   21 ++--------
 hw/msi.c             |    2 +-
 hw/msix.c            |    2 +-
 hw/pl080.c           |    8 ++--
 hw/ppc405_uc.c       |   43 +++++++++++----------
 hw/s390-virtio-bus.c |   10 ++--
 hw/s390-virtio.c     |    6 +-
 hw/spapr.h           |    4 +-
 hw/spapr_hcall.c     |   12 +++---
 12 files changed, 164 insertions(+), 60 deletions(-)

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2011-07-12 20:46 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-05 16:28 [Qemu-devel] [PATCH 0/9] Don't use ld./st._phys in hw/ Alexander Graf
2011-07-05 16:28 ` [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions Alexander Graf
2011-07-05 21:48   ` Blue Swirl
2011-07-05 21:55     ` Alexander Graf
2011-07-05 22:05       ` Blue Swirl
2011-07-05 22:13         ` Alexander Graf
2011-07-05 22:22           ` Blue Swirl
2011-07-05 22:40             ` Alexander Graf
2011-07-06 10:24               ` Paolo Bonzini
2011-07-06 11:34                 ` Alexander Graf
2011-07-06 13:03                   ` Hannes Reinecke
2011-07-06 13:18                     ` Alexander Graf
2011-07-06 13:30                     ` Paolo Bonzini
2011-07-05 16:28 ` [Qemu-devel] [PATCH 2/9] hpet: use specific endian ld/st_phys Alexander Graf
2011-07-05 16:28 ` [Qemu-devel] [PATCH 3/9] intel-hda: " Alexander Graf
2011-07-05 16:28 ` [Qemu-devel] [PATCH 4/9] msi: " Alexander Graf
2011-07-05 16:28 ` [Qemu-devel] [PATCH 5/9] msix: " Alexander Graf
2011-07-05 16:28 ` [Qemu-devel] [PATCH 6/9] pl080: " Alexander Graf
2011-07-12 20:46   ` Peter Maydell
2011-07-05 16:28 ` [Qemu-devel] [PATCH 7/9] ppc405_uc: " Alexander Graf
2011-07-05 16:28 ` [Qemu-devel] [PATCH 8/9] s390-virtio: " Alexander Graf
2011-07-05 16:28 ` [Qemu-devel] [PATCH 9/9] spapr: " Alexander Graf
2011-07-05 21:53 ` [Qemu-devel] [PATCH 0/9] Don't use ld./st._phys in hw/ Blue Swirl

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).