[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/33] pci: Export pci_to_cpu_addr.
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 04/33] pci: Export pci_to_cpu_addr. |
Date: |
Thu, 28 Apr 2011 13:50:46 -0700 |
This is, more or less, the read accessor to pci_bus_set_mem_base
as a write accessor. It will be needed for implementing sparse
memory spaces for Alpha.
Signed-off-by: Richard Henderson <address@hidden>
---
hw/pci.c | 3 +--
hw/pci.h | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 6b577e1..8c7f52a 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -793,8 +793,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char
*name,
return pci_dev;
}
-static target_phys_addr_t pci_to_cpu_addr(PCIBus *bus,
- target_phys_addr_t addr)
+target_phys_addr_t pci_to_cpu_addr(PCIBus *bus, target_phys_addr_t addr)
{
return addr + bus->mem_base;
}
diff --git a/hw/pci.h b/hw/pci.h
index 52ee8c9..cb0f738 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -242,6 +242,7 @@ void pci_device_reset(PCIDevice *dev);
void pci_bus_reset(PCIBus *bus);
void pci_bus_set_mem_base(PCIBus *bus, target_phys_addr_t base);
+target_phys_addr_t pci_to_cpu_addr(PCIBus *bus, target_phys_addr_t addr);
PCIDevice *pci_nic_init(NICInfo *nd, const char *default_model,
const char *default_devaddr);
--
1.7.4.4
- [Qemu-devel] [PATCH 00/33] Alpha system emulation, v3, Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 04/33] pci: Export pci_to_cpu_addr.,
Richard Henderson <=
- [Qemu-devel] [PATCH 07/33] target-alpha: Enable the alpha-softmmu target., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 08/33] target-alpha: Tidy exception constants., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 06/33] target-alpha: Remove partial support for palcode emulation., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 10/33] target-alpha: Cleanup MMU modes., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 09/33] target-alpha: Rationalize internal processor registers., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 11/33] target-alpha: Fixup translation of PALmode instructions., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 13/33] target-alpha: Tidy up arithmetic exceptions., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 14/33] target-alpha: Use do_restore_state for arithmetic exceptions., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 15/33] target-alpha: Merge HW_REI and HW_RET implementations., Richard Henderson, 2011/04/28
- [Qemu-devel] [PATCH 12/33] target-alpha: Add IPRs to be used by the emulation PALcode., Richard Henderson, 2011/04/28