OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b041114
)
stdvga: fix offset in pci_vga_ioport_read
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 8 Apr 2015 07:03:54 +0000
(09:03 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 10 Jun 2015 09:01:59 +0000
(11:01 +0200)
Simliar to pci_vga_ioport_write.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/vga-pci.c
patch
|
blob
|
history
diff --git
a/hw/display/vga-pci.c
b/hw/display/vga-pci.c
index
ff5dfb2
..
93c8b5d
100644
(file)
--- 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
+ 0x3c
1) << 8;
break;
}
return ret;