From 044a6525876efc61838dffa89ac52425d510b754 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 2 Nov 2012 11:32:01 -0500 Subject: [PATCH] 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. --- src/dev/Pci.py | 1 + 1 file changed, 1 insertion(+) 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") -- 2.30.2