Re: [PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-10-03 Thread Philippe Mathieu-Daudé
On 3/10/24 23:37, Richard Henderson wrote: On 10/3/24 14:34, Philippe Mathieu-Daudé wrote: On 3/10/24 23:28, Richard Henderson wrote: On 10/3/24 13:50, Philippe Mathieu-Daudé wrote: On 30/9/24 09:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_p() API, which takes an extra Alte

Re: [PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-10-03 Thread Richard Henderson
On 10/3/24 14:34, Philippe Mathieu-Daudé wrote: On 3/10/24 23:28, Richard Henderson wrote: On 10/3/24 13:50, Philippe Mathieu-Daudé wrote: On 30/9/24 09:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_p() API, which takes an extra Alternatively we could use ld/st_te_p() since we

Re: [PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-10-03 Thread Philippe Mathieu-Daudé
On 3/10/24 23:28, Richard Henderson wrote: On 10/3/24 13:50, Philippe Mathieu-Daudé wrote: On 30/9/24 09:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_p() API, which takes an extra Alternatively we could use ld/st_te_p() since we already have ld/st_he_p() for host endianness.

Re: [PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-10-03 Thread Richard Henderson
On 10/3/24 13:50, Philippe Mathieu-Daudé wrote: On 30/9/24 09:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_p() API, which takes an extra Alternatively we could use ld/st_te_p() since we already have ld/st_he_p() for host endianness. That's what ld/st_p are -- target-specific,

Re: [PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-10-03 Thread Philippe Mathieu-Daudé
On 30/9/24 09:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_p() API, which takes an extra Alternatively we could use ld/st_te_p() since we already have ld/st_he_p() for host endianness. boolean argument to dispatch to ld/st_{be,le}_p() methods. Signed-off-by: Philippe Mathieu-

Re: [PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_p() API, which takes an extra boolean argument to dispatch to ld/st_{be,le}_p() methods. Signed-off-by: Philippe Mathieu-Daudé --- TODO: Update docstring regexp --- include/qemu/bswap.h | 19 +++ 1 fil

[PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-09-30 Thread Philippe Mathieu-Daudé
Introduce the ld/st_endian_p() API, which takes an extra boolean argument to dispatch to ld/st_{be,le}_p() methods. Signed-off-by: Philippe Mathieu-Daudé --- TODO: Update docstring regexp --- include/qemu/bswap.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/qe