qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] m25p80.c: Use QOM classes for part differentiat


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] m25p80.c: Use QOM classes for part differentiation
Date: Thu, 28 Feb 2013 13:17:26 +0000

On 7 February 2013 05:51, Peter Crosthwaite
<address@hidden> wrote:
> Currently, M25P80 uses an object property to differentiate between flash 
> parts.
> Changed this over to use QOM sub-classes - the actual names of the different 
> parts
> are used to create a set of dynamic classes which passes the part info as 
> class
> data. The object no longer needs to search the known_devices table for itself,
> instead it just gets its info from its own class.
>
> Kept the intermediate class definition private to m25p80.c for the moment, as
> the expectation is parts will only be added as new entries in the table. We 
> can
> factor out the TYPE_M25P80 abstraction into a header on a demand basis.
>
> Signed-off-by: Peter Crosthwaite <address@hidden>

Thanks; added to arm-devs.next.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]