From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RloAr-0002DX-7S for qemu-devel@nongnu.org; Fri, 13 Jan 2012 15:56:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RloAo-00064f-MQ for qemu-devel@nongnu.org; Fri, 13 Jan 2012 15:56:33 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:37081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RloAo-00063s-Fm for qemu-devel@nongnu.org; Fri, 13 Jan 2012 15:56:30 -0500 From: Peter Maydell Date: Fri, 13 Jan 2012 20:52:44 +0000 Message-Id: <1326487969-12462-8-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1326487969-12462-1-git-send-email-peter.maydell@linaro.org> References: <1326487969-12462-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 07/12] hw/vexpress.c: Instantiate the motherboard CLCD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: android-virt@lists.cs.columbia.edu, patches@linaro.org Instantiate the CLCD on the vexpress motherboard as well as one on the daughterboard -- the A15 daughterboard does not have a CLCD and so relies on the motherboard one. At the moment QEMU doesn't provide infrastructure for selecting which display device gets to actually show graphics -- the first one registered is it. Fortunately this works for the major use case (Linux): if the daughterboard has a CLCD it will come first and be used, otherwise we fall back to the motherboard CLCD. So we don't (currently) need to implement the control register which allows software to tell the mux which video output to pass through to the outside world. Signed-off-by: Peter Maydell --- hw/vexpress.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 9033b50..9860085 100644 --- a/hw/vexpress.c +++ b/hw/vexpress.c @@ -282,7 +282,7 @@ static void vexpress_common_init(const VEDBoardInfo *daughterboard, /* VE_COMPACTFLASH: not modelled */ - /* VE_CLCD: not modelled (we use the daughterboard CLCD only) */ + sysbus_create_simple("pl111", map[VE_CLCD], pic[14]); /* VE_NORFLASH0: not modelled */ /* VE_NORFLASH0ALIAS: not modelled */ -- 1.7.1