Re: [PATCH 4/7] bitops: Support 32 and 64 bit mask macro

2021-09-08 Thread Yang Zhong
On Wed, Sep 08, 2021 at 10:34:39AM +0200, Philippe Mathieu-Daudé wrote: > On 9/8/21 10:19 AM, Yang Zhong wrote: > > The Qemu should enable bit mask macro like Linux did in the > > kernel, the GENMASK(h, l) and GENMASK_ULL(h, l) will set the > > bit to 1 from l to h bit in the 32 bit or 64 bit long

Re: [PATCH 4/7] bitops: Support 32 and 64 bit mask macro

2021-09-08 Thread Philippe Mathieu-Daudé
On 9/8/21 10:19 AM, Yang Zhong wrote: > The Qemu should enable bit mask macro like Linux did in the > kernel, the GENMASK(h, l) and GENMASK_ULL(h, l) will set the > bit to 1 from l to h bit in the 32 bit or 64 bit long type. > > Signed-off-by: Yang Zhong > --- > include/qemu/bitops.h | 7

[PATCH 4/7] bitops: Support 32 and 64 bit mask macro

2021-09-08 Thread Yang Zhong
The Qemu should enable bit mask macro like Linux did in the kernel, the GENMASK(h, l) and GENMASK_ULL(h, l) will set the bit to 1 from l to h bit in the 32 bit or 64 bit long type. Signed-off-by: Yang Zhong --- include/qemu/bitops.h | 7 +++ 1 file changed, 7 insertions(+) diff --git