diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-10-30 21:20:58 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:04 -0600 |
commit | 6444abce2c2cf4d933dd7119975af03d8d0c27cc (patch) | |
tree | 5edad9c70d781f9ea77dcb715d288b575351adf9 /hw/cirrus_vga.c | |
parent | ef18accae1e875389e28976d1cce188d8fbf058e (diff) | |
download | qemu-6444abce2c2cf4d933dd7119975af03d8d0c27cc.tar.gz qemu-6444abce2c2cf4d933dd7119975af03d8d0c27cc.tar.bz2 qemu-6444abce2c2cf4d933dd7119975af03d8d0c27cc.zip |
pci: define a constant to represent a unmapped bar and use it.
define a constant to represent a unmapped bar instead of -1 and use it.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/cirrus_vga.c')
-rw-r--r-- | hw/cirrus_vga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index f4c9cdf8a6..eee66b18d2 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -3210,7 +3210,7 @@ static void pci_cirrus_write_config(PCIDevice *d, CirrusVGAState *s = &pvs->cirrus_vga; pci_default_write_config(d, address, val, len); - if (s->vga.map_addr && d->io_regions[0].addr == -1) + if (s->vga.map_addr && d->io_regions[0].addr == PCI_BAR_UNMAPPED) s->vga.map_addr = 0; cirrus_update_memory_access(s); } |