diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-02-04 19:56:24 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-02-04 19:56:24 -0500 |
commit | 69e1e10f5d940ee06d2c38f3a1b21c9992587f13 (patch) | |
tree | af5cad1d9e2a2470c3b0e03beb2a364ffcc07d0e /dev/pcidev.hh | |
parent | aaaa782165482f0a2edf285d3e55334e9c7ddd80 (diff) | |
download | gem5-69e1e10f5d940ee06d2c38f3a1b21c9992587f13.tar.xz |
Added code so that BAR writes will result in an updated memory mapping
dev/pcidev.cc:
dev/pcidev.hh:
BAR changes should now change the mmu mapping
--HG--
extra : convert_revision : 2d5c60ef076ab0588a25def1ecd9dbb90c9144d7
Diffstat (limited to 'dev/pcidev.hh')
-rw-r--r-- | dev/pcidev.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dev/pcidev.hh b/dev/pcidev.hh index 85f344298..ae8368b71 100644 --- a/dev/pcidev.hh +++ b/dev/pcidev.hh @@ -35,16 +35,17 @@ #include "mem/functional_mem/mmap_device.hh" #include "dev/pcireg.h" + class PCIConfigAll; -/* - * PCI device configuration device. +/** + * PCI device, base implemnation is only config space. * Each device is connected to a PCIConfigSpace device * which returns -1 for everything but the pcidevs that * register with it. This object registers with the PCIConfig space * object. */ -class PciDev : public MMapDevice +class PciDev : public MmapDevice { private: uint32_t Bus; @@ -57,6 +58,7 @@ class PciDev : public MMapDevice PCIConfigAll *ConfigSpace; PCIConfig config; uint32_t BARSize[6]; + Addr BARAddrs[6]; virtual void WriteConfig(int offset, int size, uint32_t data); virtual void ReadConfig(int offset, int size, uint8_t *data); |