diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-04-08 09:03:54 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-10 11:01:59 +0200 |
commit | 24cdff7c8278849747035f9554f8c538beabf949 (patch) | |
tree | 0a80d7c3af2fc58f6d4925dc7fb5d9cea63d6b41 /hw/display | |
parent | b0411142f482df92717f8b4a3b746081a62b724f (diff) | |
download | qemu-24cdff7c8278849747035f9554f8c538beabf949.zip |
stdvga: fix offset in pci_vga_ioport_read
Simliar to pci_vga_ioport_write.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/vga-pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c index ff5dfb2c23..93c8b5d4cf 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; |