Received: from eggs.gnu.org ([208.118.235.92]:40821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULHcB-0001Io-2M for qemu-devel@nongnu.org; Thu, 28 Mar 2013 14:31:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULHc9-0004R5-KM for qemu-devel@nongnu.org; Thu, 28 Mar 2013 14:31:55 -0400 Received: from ssl.serverraum.org ([88.198.40.39]:37605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULHc9-0004Pg-Eb for qemu-devel@nongnu.org; Thu, 28 Mar 2013 14:31:53 -0400 From: Michael Walle Date: Thu, 28 Mar 2013 19:31:21 +0100 References: <1363358063-23973-1-git-send-email-peter.maydell@linaro.org> <1363358063-23973-5-git-send-email-peter.maydell@linaro.org> <87y5d7be8g.fsf@codemonkey.ws> In-Reply-To: <87y5d7be8g.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201303281931.21945.michael@walle.cc> Subject: Re: [Qemu-devel] [PATCH v3 4/5] milkymist-softusb: Don't map RAM memory regions in the device itself List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , patches@linaro.org, qemu-devel@nongnu.org, Jan Kiszka , Paolo Bonzini , Andreas =?utf-8?q?F=C3=A4rber?= Am Donnerstag 28 M=C3=A4rz 2013, 18:55:59 schrieb Anthony Liguori: > Peter Maydell writes: > > Don't map the pmem and dmem RAM memory regions in the milkymist-softusb > > device itself. Instead just expose them as sysbus mmio regions which > > the device creator can map appropriately. This allows us to drop the > > pmem_base and dmem_base properties. Instead of going via > > cpu_physical_memory_read/_write when the device wants to access the > > RAMs, we just keep a host pointer to the memory and use that. > >=20 > > Signed-off-by: Peter Maydell > > Reviewed-by: Andreas F=C3=A4rber > > Acked-by: Michael Walle >=20 > Breaks the build: >=20 > [aliguori@ccnode4 qemu]$ make > CC lm32-softmmu/hw/lm32/../milkymist-softusb.o > /home/aliguori/git/qemu/hw/lm32/../milkymist-softusb.c: In function > =E2=80=98softusb_mouse_hid_datain=E2=80=99: > /home/aliguori/git/qemu/hw/lm32/../milkymist-softusb.c:183:38: error: =E2= =80=98m=E2=80=99 > may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] > /home/aliguori/git/qemu/hw/lm32/../milkymist-softusb.c:179:13: note: =E2= =80=98m=E2=80=99 > was declared here /home/aliguori/git/qemu/hw/lm32/../milkymist-softusb.c: > In function =E2=80=98softusb_kbd_hid_datain=E2=80=99: > /home/aliguori/git/qemu/hw/lm32/../milkymist-softusb.c:197:38: error: =E2= =80=98m=E2=80=99 > may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] > /home/aliguori/git/qemu/hw/lm32/../milkymist-softusb.c:193:13: note: =E2= =80=98m=E2=80=99 > was declared here cc1: all warnings being treated as errors > make[1]: *** [hw/lm32/../milkymist-softusb.o] Error 1 are you sure, this patch breaks the build, or was is broken before? i'll send a patch soon. =2D-=20 michael