Re: [Qemu-devel] [PATCH v2] register: fix incorrect read mask

2017-02-13 Thread Alistair Francis
On Fri, Feb 10, 2017 at 7:43 PM, Philippe Mathieu-Daudé wrote: > The register_read() function expects a bitmask argument. To avoid duplicated The register_read() and register_write() functions > code, a new inlined function register_enabled_mask() is introduced. > > Signed-off-by: Philippe Mathi

[Qemu-devel] [PATCH v2] register: fix incorrect read mask

2017-02-10 Thread Philippe Mathieu-Daudé
The register_read() function expects a bitmask argument. To avoid duplicated code, a new inlined function register_enabled_mask() is introduced. Signed-off-by: Philippe Mathieu-Daudé --- v2: squashed together both previous commits as suggested by Francis Alistair. hw/core/register.c | 21 +