[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/6] pci: minor clean up of pci_update_mappings().
From: |
Isaku Yamahata |
Subject: |
[Qemu-devel] [PATCH 3/6] pci: minor clean up of pci_update_mappings(). |
Date: |
Tue, 7 Jul 2009 15:59:24 +0900 |
use uint8_t for pci command register instead of int.
Signed-off-by: Isaku Yamahata <address@hidden>
---
hw/pci.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 289a62f..7c7bab5 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -419,7 +419,8 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num,
static void pci_update_mappings(PCIDevice *d)
{
PCIIORegion *r;
- int cmd, i;
+ int i;
+ uint16_t cmd;
uint32_t last_addr, new_addr, config_ofs;
cmd = le16_to_cpu(*(uint16_t *)(d->config + PCI_COMMAND));
--
1.6.0.2
- [Qemu-devel] [PATCH 0/6] pci: various clean up and 64bit bar support., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 6/6] pci: 64bit bar support., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 2/6] pci: use uint8_t for pci_register_bar() type argument of int., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 3/6] pci: minor clean up of pci_update_mappings().,
Isaku Yamahata <=
- [Qemu-devel] [PATCH 4/6] pci: define a constant to represent a unmapped bar and use it., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 1/6] pci.c: remove unnecessary #ifdef DEBUG_PCI., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 5/6] pci: use uint64_t for bar addr and size instead of uint32_t., Isaku Yamahata, 2009/07/07