projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249e318
)
pci: Make Python wrapper cast to the right type
author
Andreas Sandberg
<Andreas.Sandberg@arm.com>
Fri, 2 Nov 2012 16:32:01 +0000
(11:32 -0500)
committer
Andreas Sandberg
<Andreas.Sandberg@arm.com>
Fri, 2 Nov 2012 16:32:01 +0000
(11:32 -0500)
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
patch
|
blob
|
history
diff --git
a/src/dev/Pci.py
b/src/dev/Pci.py
index 4d2baa3e81dd8287c8c0ed7ff71a48614224952f..8b4fd7b2fa2cad4845adce0fef920d2ea0712a14 100644
(file)
--- 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")