[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bi
|
From: |
Peter Maydell |
|
Subject: |
Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field |
|
Date: |
Sat, 20 May 2023 13:37:42 +0100 |
On Fri, 19 May 2023 at 15:19, Jonathan Cameron via
<qemu-devel@nongnu.org> wrote:
>
> From: Ira Weiny <ira.weiny@intel.com>
>
> 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.
>
> Signed-off-by: Ira Weiny <ira.weiny@intel.com>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> ---
> docs/devel/loads-stores.rst | 1 +
> include/qemu/bswap.h | 27 +++++++++++++++++++++++++++
> 2 files changed, 28 insertions(+)
>
> diff --git a/docs/devel/loads-stores.rst b/docs/devel/loads-stores.rst
> index d2cefc77a2..82a79e91d9 100644
> --- a/docs/devel/loads-stores.rst
> +++ b/docs/devel/loads-stores.rst
> @@ -36,6 +36,7 @@ store: ``st{size}_{endian}_p(ptr, val)``
> ``size``
> - ``b`` : 8 bits
> - ``w`` : 16 bits
> + - ``24`` : 24 bits
> - ``l`` : 32 bits
> - ``q`` : 64 bits
Can you also update the "Regexes for git grep" section
below to account for the new size value, please?
thanks
-- PMM
- [PATCH v6 0/4] hw/cxl: Poison get, inject, clear, Jonathan Cameron, 2023/05/19
- [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field, Jonathan Cameron, 2023/05/19
- Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field,
Peter Maydell <=
- Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field, BALATON Zoltan, 2023/05/20
- Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field, Richard Henderson, 2023/05/20
- Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field, Philippe Mathieu-Daudé, 2023/05/20
- Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field, Michael S. Tsirkin, 2023/05/21
- Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field, Jonathan Cameron, 2023/05/22
- Re: [PATCH v6 1/4] bswap: Add the ability to store to an unaligned 24 bit field, Jonathan Cameron, 2023/05/22
[PATCH v6 2/4] hw/cxl: QMP based poison injection support, Jonathan Cameron, 2023/05/19
[PATCH v6 3/4] hw/cxl: Add poison injection via the mailbox., Jonathan Cameron, 2023/05/19
[PATCH v6 4/4] hw/cxl: Add clear poison mailbox command support., Jonathan Cameron, 2023/05/19