From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54729)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1ZMsDj-0002aZ-Fg
for qemu-devel@nongnu.org; Wed, 05 Aug 2015 02:30:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ZMsDg-00067z-40
for qemu-devel@nongnu.org; Wed, 05 Aug 2015 02:30:35 -0400
Received: from mailout4.w1.samsung.com ([210.118.77.14]:39027)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1ZMsDf-00067i-Qd
for qemu-devel@nongnu.org; Wed, 05 Aug 2015 02:30:32 -0400
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout4.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NSL00AXBJESSZ50@mailout4.w1.samsung.com> for
qemu-devel@nongnu.org; Wed, 05 Aug 2015 07:30:28 +0100 (BST)
From: Pavel Fedin
References:
<0abba616ceb63d88fe02fbc94b2677c98f5a250f.1438170554.git.p.fedin@samsung.com>
In-reply-to:
Date: Wed, 05 Aug 2015 09:30:27 +0300
Message-id: <00f901d0cf48$385dca10$a9195e30$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: quoted-printable
Content-language: ru
Subject: Re: [Qemu-devel] [PATCH 2/3] hw/arm/gic: Kill code duplication
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: 'Peter Maydell'
Cc: 'QEMU Developers' , 'Christoffer Dall' , 'Eric Auger'
Hello!
> > - memory_region_init_io(&s->cpuiomem[0], OBJECT(s), =
&gic_thiscpu_ops, s,
> > - "gic_cpu", 0x100);
>=20
> This memory region is size 0x100, as the comment says it must be...
>=20
> > + if (s->revision !=3D REV_NVIC) {
> > + /* CPU interface (NVIC doesn't have this) */
> > + memory_region_init_io(&s->cpuiomem[0], OBJECT(s), ops ? =
&ops[1] : NULL,
> > + s, "gic_cpu", 0x1000);
>=20
> ...but here it is 0x1000.
>=20
> The a9mpcore container component creates a layout where there are
> other things immediately after the 0x100 region, so we can't
> make it bigger for GICv1.
I have checked the code, We have "revision" property, and for a9mpcore =
it appears to be set to 1 (default). So will it be OK if i rely on =
revision here ? I mean: "s->revision =3D=3D 2 ? 0x1000 : 0x100". =
Revision =3D=3D 2 is also used by ZynqMP model, which seems to have a9 =
CPU (according to some 'a9' names in the code), but its memory layout =
actually can accommodate this, they say that single region is 4K.
All models that use KVM set revision to 2 and therefore expect =
full-sized region.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia