Commit 47e21d7d authored by Hejing Li's avatar Hejing Li
Browse files

fix interface init

parent e35edbd9
...@@ -42,7 +42,7 @@ class EthChannel(base.Channel): ...@@ -42,7 +42,7 @@ class EthChannel(base.Channel):
class EthSimpleNIC(base.Component): class EthSimpleNIC(base.Component):
def __init__(self, s: base.System) -> None: def __init__(self, s: base.System) -> None:
super().__init__(s) super().__init__(s)
self.eth_if = EthInterface() self.eth_if = EthInterface(self)
class BaseEthNetComponent(base.Component): class BaseEthNetComponent(base.Component):
......
...@@ -56,7 +56,7 @@ class PCIeChannel(base.Channel): ...@@ -56,7 +56,7 @@ class PCIeChannel(base.Channel):
class PCIeSimpleDevice(base.Component): class PCIeSimpleDevice(base.Component):
def __init__(self, s: base.System): def __init__(self, s: base.System):
super().__init__(s) super().__init__(s)
self.pci_if = PCIeDeviceInterface() self.pci_if = PCIeDeviceInterface(self)
def interfaces(self) -> list[base.Interface]: def interfaces(self) -> list[base.Interface]:
return [self.pci_if] return [self.pci_if]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment