Ports now have a pointer to the MemObject that owns it (can be NULL).
src/cpu/simple/atomic.hh:
Port now takes in the MemObject that owns it.
src/cpu/simple/timing.hh:
Port now takes in MemObject that owns it.
src/dev/io_device.cc:
src/mem/bus.hh:
Ports now take in the MemObject that owns it.
src/mem/cache/base_cache.cc:
Ports now take in the MemObject that own it.
src/mem/port.hh:
src/mem/tport.hh:
Ports now optionally take in the MemObject that owns it.
--HG--
extra : convert_revision : 890a72a871795987c2236c65937e06973412d349
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
|
||||
PioPort::PioPort(PioDevice *dev, System *s, std::string pname)
|
||||
: SimpleTimingPort(dev->name() + pname), device(dev)
|
||||
: SimpleTimingPort(dev->name() + pname, dev), device(dev)
|
||||
{ }
|
||||
|
||||
|
||||
@@ -92,8 +92,8 @@ BasicPioDevice::addressRanges(AddrRangeList &range_list)
|
||||
|
||||
|
||||
DmaPort::DmaPort(DmaDevice *dev, System *s)
|
||||
: Port(dev->name() + "-dmaport"), device(dev), sys(s), pendingCount(0),
|
||||
actionInProgress(0), drainEvent(NULL)
|
||||
: Port(dev->name() + "-dmaport", dev), device(dev), sys(s),
|
||||
pendingCount(0), actionInProgress(0), drainEvent(NULL)
|
||||
{ }
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user