From: Erik Hallnor Date: Wed, 11 Feb 2004 01:37:38 +0000 (-0500) Subject: Add support for multiple outstanding aligned copies X-Git-Tag: m5_1.0_beta2~155 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14c11155beda7fd377af2f99638cd57bd78dd39d;p=gem5.git Add support for multiple outstanding aligned copies cpu/memtest/memtest.cc: Add traceBlockAddr to trace outputs. --HG-- extra : convert_revision : e4ebaf9647fb393448367f4f4af3bae566f51c24 --- diff --git a/cpu/memtest/memtest.cc b/cpu/memtest/memtest.cc index 02c54017e..05de370fd 100644 --- a/cpu/memtest/memtest.cc +++ b/cpu/memtest/memtest.cc @@ -159,10 +159,10 @@ MemTest::completeRequest(MemReqPtr &req, uint8_t *data) } if (blockAddr(req->paddr) == traceBlockAddr) { - cerr << name() << ": completed " + cerr << hex << traceBlockAddr << ": " << name() << ": completed " << (req->cmd.isWrite() ? "write" : "read") << " access of " - << req->size << " bytes at address 0x" + << dec << req->size << " bytes at address 0x" << hex << req->paddr << ", value = 0x"; printData(cerr, req->data, req->size); cerr << " @ cycle " << dec << curTick; @@ -243,9 +243,10 @@ MemTest::tick() uint8_t *result = new uint8_t[8]; checkMem->access(Read, req->paddr, result, req->size); if (blockAddr(req->paddr) == traceBlockAddr) { - cerr << name() << ": initiating read " + cerr << hex << traceBlockAddr << ": " << name() + << ": initiating read " << ((probe)?"probe of ":"access of ") - << req->size << " bytes from addr 0x" + << dec << req->size << " bytes from addr 0x" << hex << req->paddr << " at cycle " << dec << curTick << endl; } @@ -262,9 +263,10 @@ MemTest::tick() memcpy(req->data, &data, req->size); checkMem->access(Write, req->paddr, req->data, req->size); if (blockAddr(req->paddr) == traceBlockAddr) { - cerr << name() << ": initiating write " + cerr << hex << traceBlockAddr << ": " + << name() << ": initiating write " << ((probe)?"probe of ":"access of ") - << req->size << " bytes (value = 0x"; + << dec << req->size << " bytes (value = 0x"; printData(cerr, req->data, req->size); cerr << ") to addr 0x" << hex << req->paddr << " at cycle " @@ -289,8 +291,9 @@ MemTest::tick() req->data = new uint8_t[blockSize]; req->size = blockSize; if (source == traceBlockAddr || dest == traceBlockAddr) { - cerr << name() << ": initiating copy of " - << req->size << " bytes from addr 0x" + cerr << hex << traceBlockAddr << ": " << name() + << ": initiating copy of " + << dec << req->size << " bytes from addr 0x" << hex << source << " to addr 0x" << hex << dest << " at cycle " << dec << curTick << endl;