Re: [PATCH 1/1] include/qemu/bitops.h: Add deposit8 for uint8_t bit operation

2024-08-28 Thread Peter Maydell
On Wed, 28 Aug 2024 at 16:59, Jason Fan wrote: > > Re-send this to include the original mail-list. > > Hi Peter, > I am working on a i3c target model which requires bitops on the uint8_t > registers. > deposit8 can help to check incorrect length or start input for 8 bit value. > You are right tha

Re: [PATCH 1/1] include/qemu/bitops.h: Add deposit8 for uint8_t bit operation

2024-08-28 Thread Jason Fan
Re-send this to include the original mail-list. Hi Peter, I am working on a i3c target model which requires bitops on the uint8_t registers. deposit8 can help to check incorrect length or start input for 8 bit value. You are right that desposit32 should also work if we always pass the correct argu

Re: [PATCH 1/1] include/qemu/bitops.h: Add deposit8 for uint8_t bit operation

2024-08-27 Thread Peter Maydell
On Mon, 26 Aug 2024 at 22:01, Jason Fan wrote: > > Signed-off-by: Jason Fan > --- > include/qemu/bitops.h | 26 ++ > 1 file changed, 26 insertions(+) > > diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h > index 2c0a2fe751..d01c4b42f2 100644 > --- a/include/qemu/

[PATCH 1/1] include/qemu/bitops.h: Add deposit8 for uint8_t bit operation

2024-08-26 Thread Jason Fan
Signed-off-by: Jason Fan --- include/qemu/bitops.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index 2c0a2fe751..d01c4b42f2 100644 --- a/include/qemu/bitops.h +++ b/include/qemu/bitops.h @@ -459,6 +459,32 @@ static