[PATCH v2 0/4] system/memory: Clarify unaligned load/store API

Philippe Mathieu-Daudé posted 4 patches 4 weeks, 1 day ago
Failed in applying to current master (apply log)
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, BALATON Zoltan <balaton@eik.bme.hu>, Elena Ufimtseva <elena.ufimtseva@oracle.com>, Jagannathan Raman <jag.raman@oracle.com>, "Michael S. Tsirkin" <mst@redhat.com>, Alexander Graf <agraf@csgraf.de>, Phil Dennis-Jordan <phil@philjordan.eu>, Peter Xu <peterx@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Jason Wang <jasowang@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>
MAINTAINERS                    |  1 +
docs/devel/loads-stores.rst    | 47 ++++++++---------
include/qemu/bswap.h           | 96 +++++++---------------------------
include/qemu/ldst_unaligned.h  | 67 ++++++++++++++++++++++++
accel/tcg/translator.c         |  7 +--
hw/display/ati_2d.c            |  3 +-
hw/display/sm501.c             | 21 ++++----
hw/remote/vfio-user-obj.c      |  5 +-
hw/vmapple/virtio-blk.c        |  3 +-
net/checksum.c                 |  7 +--
system/memory.c                |  4 +-
system/physmem.c               |  8 +--
ui/vnc-enc-tight.c             |  3 +-
util/bufferiszero.c            |  8 +--
accel/tcg/ldst_atomicity.c.inc | 10 ++--
15 files changed, 153 insertions(+), 137 deletions(-)
create mode 100644 include/qemu/ldst_unaligned.h
[PATCH v2 0/4] system/memory: Clarify unaligned load/store API
Posted by Philippe Mathieu-Daudé 4 weeks, 1 day ago
I have been confused by the load/store 'host endian' API
for years: this is just about unaligned loads/stores.
Rename to clarify.

v2:
- No "memory_" since it's for host pointers and not
  guest memory addresses (Paolo)
- Fix regexps

Philippe Mathieu-Daudé (4):
  docs/devel/loads-stores: Clarify regexp are POSIX basic ones
  docs/devel/loads-stores: Fix ld/stn_*_p() regexp
  system/memory: Extract 'qemu/ldst_unaligned.h' header
  system/memory: Rename unaligned load/store API

 MAINTAINERS                    |  1 +
 docs/devel/loads-stores.rst    | 47 ++++++++---------
 include/qemu/bswap.h           | 96 +++++++---------------------------
 include/qemu/ldst_unaligned.h  | 67 ++++++++++++++++++++++++
 accel/tcg/translator.c         |  7 +--
 hw/display/ati_2d.c            |  3 +-
 hw/display/sm501.c             | 21 ++++----
 hw/remote/vfio-user-obj.c      |  5 +-
 hw/vmapple/virtio-blk.c        |  3 +-
 net/checksum.c                 |  7 +--
 system/memory.c                |  4 +-
 system/physmem.c               |  8 +--
 ui/vnc-enc-tight.c             |  3 +-
 util/bufferiszero.c            |  8 +--
 accel/tcg/ldst_atomicity.c.inc | 10 ++--
 15 files changed, 153 insertions(+), 137 deletions(-)
 create mode 100644 include/qemu/ldst_unaligned.h

-- 
2.52.0