io_bus is split out into pio_bus and dma_bus so that any device
can specify either independently.
python/m5/objects/Device.py:
io_bus is split out into pio_bus and dma_bus so that any device
can specify either independently.
dma_bus defaults to point to whatever pio_bus uses.
--HG--
extra : convert_revision : d35d5374d0bf592f6b5df465c05203577b8b8763
This commit is contained in:
@@ -16,12 +16,13 @@ class FooPioDevice(FunctionalMemory):
|
||||
abstract = True
|
||||
addr = Param.Addr("Device Address")
|
||||
mmu = Param.MemoryController(Parent.any, "Memory Controller")
|
||||
io_bus = Param.Bus(NULL, "The IO Bus to attach to")
|
||||
pio_bus = Param.Bus(NULL, "Bus to attach to for PIO")
|
||||
pio_latency = Param.Tick(1, "Programmed IO latency in bus cycles")
|
||||
|
||||
class FooDmaDevice(FooPioDevice):
|
||||
type = 'DmaDevice'
|
||||
abstract = True
|
||||
dma_bus = Param.Bus(Self.pio_bus, "Bus to attach to for DMA")
|
||||
|
||||
class PioDevice(FooPioDevice):
|
||||
type = 'PioDevice'
|
||||
@@ -31,4 +32,4 @@ class PioDevice(FooPioDevice):
|
||||
class DmaDevice(PioDevice):
|
||||
type = 'DmaDevice'
|
||||
abstract = True
|
||||
|
||||
dma_bus = Param.Bus(Self.pio_bus, "Bus to attach to for DMA")
|
||||
|
||||
Reference in New Issue
Block a user