From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6cc1-0007I1-Fc for qemu-devel@nongnu.org; Tue, 06 Aug 2013 04:27:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6cbs-0003B9-In for qemu-devel@nongnu.org; Tue, 06 Aug 2013 04:27:25 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59116 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6cbs-0003Ai-Di for qemu-devel@nongnu.org; Tue, 06 Aug 2013 04:27:16 -0400 Message-ID: <5200B35F.2090808@suse.de> Date: Tue, 06 Aug 2013 10:27:11 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <84r4e9j5ko.wl%peter.chubb@nicta.com.au> <51FF6F67.8070101@suse.de> <84zjsvk7rq.wl%peter@chubb.wattle.id.au> In-Reply-To: <84zjsvk7rq.wl%peter@chubb.wattle.id.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Patch] ARM: Add an L2 cache controller to KZM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter@chubb.wattle.id.au Cc: Peter Maydell , Peter Chubb , qemu-devel@nongnu.org, Jan Kiszka Am 06.08.2013 02:00, schrieb peter@chubb.wattle.id.au: >>>>>> "Andreas" =3D=3D Andreas F=E4rber writes: >=20 > Andreas> Am 05.08.2013 11:18, schrieb Peter Maydell: >>> On 5 August 2013 02:21, Peter Chubb >>> wrote: >>>> Reads to unassigned memory now return non-zero (since patch >>>> 9b8c69243585). This breaks guests runnong on i.MX31 that use the >>>> cache controller --- they poll forever waiting for the L2CC cache >>>> invalidate regsiter to be zero. >>> > Andreas> Peter Ch., if you know the exact differences, why don't you > Andreas> just derive an imx-l2cc type (or so) derived from ARM's type, > Andreas> overriding the values mentioned above? Sounds trivial to me. >=20 > Because I don't know how -- can you point me at some documentation? There's no official how-to, but QOM is documented in include/qom/object.h= . May I simply point you to an example: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommit;h=3D692a76d1c4a32573bf3cc191= 10c7fa6cc8c93f60 pl061 has Luminary and ARM IDs, with ARM in the base type and Luminary overriding values. Another idea is to use an abstract base type and several derived types if the differences are bigger. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg