Received: from eggs.gnu.org ([208.118.235.92]:57475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEPf2-0004sm-KD for qemu-devel@nongnu.org; Sun, 01 Apr 2012 14:37:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEPey-00074V-Kt for qemu-devel@nongnu.org; Sun, 01 Apr 2012 14:37:56 -0400 Received: from mail.serverraum.org ([78.47.150.89]:57517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEPey-00073z-DO for qemu-devel@nongnu.org; Sun, 01 Apr 2012 14:37:52 -0400 From: Michael Walle Date: Sun, 1 Apr 2012 20:37:36 +0200 Message-Id: <1333305456-15415-6-git-send-email-michael@walle.cc> In-Reply-To: <1333305456-15415-1-git-send-email-michael@walle.cc> References: <1333305456-15415-1-git-send-email-michael@walle.cc> Subject: [Qemu-devel] [PATCH 5/5] milkymist-vgafb: add missing register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Michael Walle , Anthony Liguori This bug existed since the first commit. Fortunately, the affected registers have no functionality in qemu. This will only prevent the following warning: milkymist_vgafb: write access to unknown register 0x00000034 Signed-off-by: Michael Walle --- hw/milkymist-vgafb.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/milkymist-vgafb.c b/hw/milkymist-vgafb.c index 69afd72..cd4365d 100644 --- a/hw/milkymist-vgafb.c +++ b/hw/milkymist-vgafb.c @@ -2,7 +2,7 @@ /* * QEMU model of the Milkymist VGA framebuffer. * - * Copyright (c) 2010 Michael Walle + * Copyright (c) 2010-2012 Michael Walle * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -54,6 +54,7 @@ enum { R_BASEADDRESS, R_BASEADDRESS_ACT, R_BURST_COUNT, + R_DDC, R_SOURCE_CLOCK, R_MAX }; @@ -173,6 +174,7 @@ static uint64_t vgafb_read(void *opaque, target_phys_addr_t addr, case R_VSCAN: case R_BASEADDRESS: case R_BURST_COUNT: + case R_DDC: case R_SOURCE_CLOCK: r = s->regs[addr]; break; @@ -211,6 +213,7 @@ static void vgafb_write(void *opaque, target_phys_addr_t addr, uint64_t value, case R_VSYNC_END: case R_VSCAN: case R_BURST_COUNT: + case R_DDC: case R_SOURCE_CLOCK: s->regs[addr] = value; break; -- 1.7.2.5