Received: from eggs.gnu.org ([2001:4830:134:3::10]:33810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2cCZ-00019z-K5 for qemu-devel@nongnu.org; Wed, 10 Jun 2015 05:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2cCT-0002n0-TP for qemu-devel@nongnu.org; Wed, 10 Jun 2015 05:21:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2cCT-0002mb-O2 for qemu-devel@nongnu.org; Wed, 10 Jun 2015 05:21:33 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 22086293205 for ; Wed, 10 Jun 2015 09:21:33 +0000 (UTC) From: Gerd Hoffmann Date: Wed, 10 Jun 2015 11:21:22 +0200 Message-Id: <1433928086-2650-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1433928086-2650-1-git-send-email-kraxel@redhat.com> References: <1433928086-2650-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 1/5] stdvga: fix offset in pci_vga_ioport_read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Simliar to pci_vga_ioport_write. Signed-off-by: Gerd Hoffmann --- hw/display/vga-pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c index ff5dfb2..93c8b5d 100644 --- a/hw/display/vga-pci.c +++ b/hw/display/vga-pci.c @@ -81,11 +81,11 @@ static uint64_t pci_vga_ioport_read(void *ptr, hwaddr addr, switch (size) { case 1: - ret = vga_ioport_read(&d->vga, addr); + ret = vga_ioport_read(&d->vga, addr + 0x3c0); break; case 2: - ret = vga_ioport_read(&d->vga, addr); - ret |= vga_ioport_read(&d->vga, addr+1) << 8; + ret = vga_ioport_read(&d->vga, addr + 0x3c0); + ret |= vga_ioport_read(&d->vga, addr + 0x3c1) << 8; break; } return ret; -- 1.8.3.1