]> git.proxmox.com Git - mirror_qemu.git/commit
bswap: Add the ability to store to an unaligned 24 bit field
authorIra Weiny <ira.weiny@intel.com>
Fri, 26 May 2023 17:00:07 +0000 (18:00 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Jun 2023 22:55:14 +0000 (18:55 -0400)
commit14180d6221502bd4b9d96fa5f1065e7cda4bcf00
tree8e806f5be8f9697f74ca732980986d6817f3b7a7
parentb455ce4c2f300c8ba47cba7232dd03261368a4cb
bswap: Add the ability to store to an unaligned 24 bit field

CXL has 24 bit unaligned fields which need to be stored to.  CXL is
specified as little endian.

Define st24_le_p() and the supporting functions to store such a field
from a 32 bit host native value.

The use of b, w, l, q as the size specifier is limiting.  So "24" was
used for the size part of the function name.

Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230526170010.574-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/devel/loads-stores.rst
include/qemu/bswap.h