summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorAndreas Sandberg <Andreas.Sandberg@arm.com>2012-11-02 11:32:01 -0500
committerAndreas Sandberg <Andreas.Sandberg@arm.com>2012-11-02 11:32:01 -0500
commit044a6525876efc61838dffa89ac52425d510b754 (patch)
treef19287d0e5f2ab3dc21eacced524577cecd70a56 /src/dev
parent249e318212a95965f7adc325c6e3dcfe213cb98a (diff)
downloadgem5-044a6525876efc61838dffa89ac52425d510b754.tar.xz
pci: Make Python wrapper cast to the right type
The PCI base class is PciDev and not PciDevice, which is used by the Python world. Make sure this is reflected in the wrapper code.
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/Pci.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dev/Pci.py b/src/dev/Pci.py
index 4d2baa3e8..8b4fd7b2f 100644
--- a/src/dev/Pci.py
+++ b/src/dev/Pci.py
@@ -41,6 +41,7 @@ class PciConfigAll(PioDevice):
class PciDevice(DmaDevice):
type = 'PciDevice'
+ cxx_class = 'PciDev'
abstract = True
platform = Param.Platform(Parent.any, "Platform this device is part of.")
config = SlavePort("PCI configuration space port")