Re: [Qemu-devel] [PATCH v8 2/8] register: Add Register API

2016-06-27 Thread Alistair Francis
On Mon, Jun 27, 2016 at 7:24 AM, Peter Maydell wrote: > On 24 June 2016 at 16:42, Alistair Francis > wrote: >> This API provides some encapsulation of registers and factors out some >> common functionality to common code. Bits of device state (usually MMIO >> registers) often have all sorts of a

Re: [Qemu-devel] [PATCH v8 2/8] register: Add Register API

2016-06-27 Thread Peter Maydell
On 24 June 2016 at 16:42, Alistair Francis wrote: > This API provides some encapsulation of registers and factors out 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 A

[Qemu-devel] [PATCH v8 2/8] register: Add Register API

2016-06-24 Thread Alistair Francis
This API provides some encapsulation of registers and factors out 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 allows you to define what those restrictions are on a bi