memtest.cc (8948:e95ee70f876c) memtest.cc (8949:3fa1ee293096)
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;

--- 314 unchanged lines hidden (view full) ---

323 // ***** NOTE FOR RON: I'm not sure how to access checkMem. - Kevin
324 funcProxy.readBlob(req->getPaddr(), result, req->getSize());
325
326 DPRINTF(MemTest,
327 "id %d initiating %sread at addr %x (blk %x) expecting %x\n",
328 id, do_functional ? "functional " : "", req->getPaddr(),
329 blockAddr(req->getPaddr()), *result);
330
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;

--- 314 unchanged lines hidden (view full) ---

323 // ***** NOTE FOR RON: I'm not sure how to access checkMem. - Kevin
324 funcProxy.readBlob(req->getPaddr(), result, req->getSize());
325
326 DPRINTF(MemTest,
327 "id %d initiating %sread at addr %x (blk %x) expecting %x\n",
328 id, do_functional ? "functional " : "", req->getPaddr(),
329 blockAddr(req->getPaddr()), *result);
330
331 PacketPtr pkt = new Packet(req, MemCmd::ReadReq, Packet::Broadcast);
332 pkt->setSrc(0);
331 PacketPtr pkt = new Packet(req, MemCmd::ReadReq);
333 pkt->dataDynamicArray(new uint8_t[req->getSize()]);
334 MemTestSenderState *state = new MemTestSenderState(result);
335 pkt->senderState = state;
336
337 if (do_functional) {
338 assert(pkt->needsResponse());
339 pkt->setSuppressFuncError();
340 cachePort.sendFunctional(pkt);

--- 14 unchanged lines hidden (view full) ---

355 }
356
357 outstandingAddrs.insert(paddr);
358
359 DPRINTF(MemTest, "initiating %swrite at addr %x (blk %x) value %x\n",
360 do_functional ? "functional " : "", req->getPaddr(),
361 blockAddr(req->getPaddr()), data & 0xff);
362
332 pkt->dataDynamicArray(new uint8_t[req->getSize()]);
333 MemTestSenderState *state = new MemTestSenderState(result);
334 pkt->senderState = state;
335
336 if (do_functional) {
337 assert(pkt->needsResponse());
338 pkt->setSuppressFuncError();
339 cachePort.sendFunctional(pkt);

--- 14 unchanged lines hidden (view full) ---

354 }
355
356 outstandingAddrs.insert(paddr);
357
358 DPRINTF(MemTest, "initiating %swrite at addr %x (blk %x) value %x\n",
359 do_functional ? "functional " : "", req->getPaddr(),
360 blockAddr(req->getPaddr()), data & 0xff);
361
363 PacketPtr pkt = new Packet(req, MemCmd::WriteReq, Packet::Broadcast);
364 pkt->setSrc(0);
362 PacketPtr pkt = new Packet(req, MemCmd::WriteReq);
365 uint8_t *pkt_data = new uint8_t[req->getSize()];
366 pkt->dataDynamicArray(pkt_data);
367 memcpy(pkt_data, &data, req->getSize());
368 MemTestSenderState *state = new MemTestSenderState(result);
369 pkt->senderState = state;
370
371 if (do_functional) {
372 pkt->setSuppressFuncError();

--- 31 unchanged lines hidden ---
363 uint8_t *pkt_data = new uint8_t[req->getSize()];
364 pkt->dataDynamicArray(pkt_data);
365 memcpy(pkt_data, &data, req->getSize());
366 MemTestSenderState *state = new MemTestSenderState(result);
367 pkt->senderState = state;
368
369 if (do_functional) {
370 pkt->setSuppressFuncError();

--- 31 unchanged lines hidden ---