mem-ruby: Support for mem commands in the Sequencer
The isPhysMemAddress checks if a valid memory address refers to physical memory. This can't be used for memory commands a they don't hold a valid address/size Change-Id: Ib39c759aa90ab50ffe2036b5f0ae17627f57e5f5 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/58510 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -268,8 +268,7 @@ RubyPort::MemResponsePort::recvTimingReq(PacketPtr pkt)
|
||||
// Check for pio requests and directly send them to the dedicated
|
||||
// pio port.
|
||||
if (pkt->cmd != MemCmd::MemSyncReq) {
|
||||
if (!isPhysMemAddress(pkt)) {
|
||||
assert(!pkt->req->isHTMCmd());
|
||||
if (!pkt->req->isMemMgmt() && !isPhysMemAddress(pkt)) {
|
||||
assert(ruby_port->memRequestPort.isConnected());
|
||||
DPRINTF(RubyPort, "Request address %#x assumed to be a "
|
||||
"pio address\n", pkt->getAddr());
|
||||
|
||||
Reference in New Issue
Block a user