Re: [Qemu-devel] [PATCH v2 2/5] register: Add Register API

2013-04-15 Thread Gerd Hoffmann
Hi, - Add a lite flag that is (automatically) computed once that takes a fast path through the read/write handlers. A reg is lite if it requires no read-modify-write (no ro, nw, ge, ui, wtc). Only the actual write and post_write handlers are executed. Sounds good to me. - Remove the byte

Re: [Qemu-devel] [PATCH v2 2/5] register: Add Register API

2013-04-07 Thread Peter Crosthwaite
Hi Peter, On Fri, Apr 5, 2013 at 7:49 PM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Fri, Apr 5, 2013 at 7:26 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 5 April 2013 09:43, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: This API provides some encapsulation of

[Qemu-devel] [PATCH v2 2/5] register: Add Register API

2013-04-05 Thread Peter Crosthwaite
This API provides some encapsulation of registers and factors our some common functionality to common code. Bits of device state (usually MMIO registers), often have all sorts of access restrictions and semantics associated with them. This API allow you to define what those restrictions are on a

Re: [Qemu-devel] [PATCH v2 2/5] register: Add Register API

2013-04-05 Thread Peter Maydell
On 5 April 2013 09:43, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: This API provides some encapsulation of registers and factors our some common functionality to common code. Bits of device state (usually MMIO registers), often have all sorts of access restrictions and semantics

Re: [Qemu-devel] [PATCH v2 2/5] register: Add Register API

2013-04-05 Thread Peter Crosthwaite
On Fri, Apr 5, 2013 at 7:26 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 5 April 2013 09:43, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: This API provides some encapsulation of registers and factors our some common functionality to common code. Bits of device state (usually