[PATCH v2 0/8] qemu/bswap: Use compiler __builtin_bswap()

Philippe Mathieu-Daudé posted 8 patches 3 years, 7 months ago
Test docker-quick@centos7 passed
Test docker-mingw@fedora passed
Test checkpatch passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200928131934.739451-1-philmd@redhat.com
Maintainers: Kamil Rytarowski <kamil@netbsd.org>
There is a newer version of this series
configure                 |  28 ---------
include/qemu/bswap.h      |  79 +++++---------------------
tests/keys/vagrant        |  27 +++++++++
tests/keys/vagrant.pub    |   1 +
tests/vm/Makefile.include |   3 +-
tests/vm/basevm.py        |   5 +-
tests/vm/haiku.x86_64     | 116 ++++++++++++++++++++++++++++++++++++++
7 files changed, 164 insertions(+), 95 deletions(-)
create mode 100644 tests/keys/vagrant
create mode 100644 tests/keys/vagrant.pub
create mode 100755 tests/vm/haiku.x86_64
[PATCH v2 0/8] qemu/bswap: Use compiler __builtin_bswap()
Posted by Philippe Mathieu-Daudé 3 years, 7 months ago
Implement Richard's suggestion to use __builtin_bswap().

const_XX() not updated. We could use le_bswap() definitions
but they are undefined, not sure yet what is the best way.
Meanwhile I figure this out, these patches are ready for review.

Since v1:
- Remove the Haiku/BSD ifdef'ry (Peter)
- Include the Haiku VM image from Alexander

Alexander von Gluck IV (1):
  tests/vm: Add Haiku test based on their vagrant images

Philippe Mathieu-Daudé (7):
  qemu/bswap: Remove unused qemu_bswap_len()
  qemu/bswap: Replace bswapXX() by compiler __builtin_bswap()
  qemu/bswap: Replace bswapXXs() by compiler __builtin_bswap()
  qemu/bswap: Remove <byteswap.h> dependency
  qemu/bswap: Use compiler __builtin_bswap() on Haiku
  qemu/bswap: Use compiler __builtin_bswap() on FreeBSD
  qemu/bswap: Use compiler __builtin_bswap() on NetBSD

 configure                 |  28 ---------
 include/qemu/bswap.h      |  79 +++++---------------------
 tests/keys/vagrant        |  27 +++++++++
 tests/keys/vagrant.pub    |   1 +
 tests/vm/Makefile.include |   3 +-
 tests/vm/basevm.py        |   5 +-
 tests/vm/haiku.x86_64     | 116 ++++++++++++++++++++++++++++++++++++++
 7 files changed, 164 insertions(+), 95 deletions(-)
 create mode 100644 tests/keys/vagrant
 create mode 100644 tests/keys/vagrant.pub
 create mode 100755 tests/vm/haiku.x86_64

-- 
2.26.2