memtest.cc (10563:755b18321206) | memtest.cc (10566:c99c8d2a7c31) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 313 unchanged lines hidden (view full) --- 322 funcProxy.readBlob(req->getPaddr(), result, req->getSize()); 323 324 DPRINTF(MemTest, 325 "id %d initiating %sread at addr %x (blk %x) expecting %x\n", 326 id, do_functional ? "functional " : "", req->getPaddr(), 327 blockAddr(req->getPaddr()), *result); 328 329 PacketPtr pkt = new Packet(req, MemCmd::ReadReq); | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 313 unchanged lines hidden (view full) --- 322 funcProxy.readBlob(req->getPaddr(), result, req->getSize()); 323 324 DPRINTF(MemTest, 325 "id %d initiating %sread at addr %x (blk %x) expecting %x\n", 326 id, do_functional ? "functional " : "", req->getPaddr(), 327 blockAddr(req->getPaddr()), *result); 328 329 PacketPtr pkt = new Packet(req, MemCmd::ReadReq); |
330 pkt->dataDynamicArray(new uint8_t[req->getSize()]); | 330 pkt->dataDynamic(new uint8_t[req->getSize()]); |
331 MemTestSenderState *state = new MemTestSenderState(result); 332 pkt->senderState = state; 333 334 if (do_functional) { 335 assert(pkt->needsResponse()); 336 pkt->setSuppressFuncError(); 337 cachePort.sendFunctional(pkt); 338 completeRequest(pkt); --- 5 unchanged lines hidden (view full) --- 344 outstandingAddrs.insert(paddr); 345 346 DPRINTF(MemTest, "initiating %swrite at addr %x (blk %x) value %x\n", 347 do_functional ? "functional " : "", req->getPaddr(), 348 blockAddr(req->getPaddr()), data & 0xff); 349 350 PacketPtr pkt = new Packet(req, MemCmd::WriteReq); 351 uint8_t *pkt_data = new uint8_t[req->getSize()]; | 331 MemTestSenderState *state = new MemTestSenderState(result); 332 pkt->senderState = state; 333 334 if (do_functional) { 335 assert(pkt->needsResponse()); 336 pkt->setSuppressFuncError(); 337 cachePort.sendFunctional(pkt); 338 completeRequest(pkt); --- 5 unchanged lines hidden (view full) --- 344 outstandingAddrs.insert(paddr); 345 346 DPRINTF(MemTest, "initiating %swrite at addr %x (blk %x) value %x\n", 347 do_functional ? "functional " : "", req->getPaddr(), 348 blockAddr(req->getPaddr()), data & 0xff); 349 350 PacketPtr pkt = new Packet(req, MemCmd::WriteReq); 351 uint8_t *pkt_data = new uint8_t[req->getSize()]; |
352 pkt->dataDynamicArray(pkt_data); | 352 pkt->dataDynamic(pkt_data); |
353 memcpy(pkt_data, &data, req->getSize()); 354 MemTestSenderState *state = new MemTestSenderState(result); 355 pkt->senderState = state; 356 357 if (do_functional) { 358 pkt->setSuppressFuncError(); 359 cachePort.sendFunctional(pkt); 360 completeRequest(pkt); --- 29 unchanged lines hidden --- | 353 memcpy(pkt_data, &data, req->getSize()); 354 MemTestSenderState *state = new MemTestSenderState(result); 355 pkt->senderState = state; 356 357 if (do_functional) { 358 pkt->setSuppressFuncError(); 359 cachePort.sendFunctional(pkt); 360 completeRequest(pkt); --- 29 unchanged lines hidden --- |