SeriesRequestGenerator.cc (8950:a6830d615eff) SeriesRequestGenerator.cc (8975:7f36d4436074)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

65 } else {
66 cmd = MemCmd::ReadReq;
67 }
68 PacketPtr pkt = new Packet(req, cmd);
69 uint8_t* dummyData = new uint8_t;
70 *dummyData = 0;
71 pkt->dataDynamic(dummyData);
72
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

65 } else {
66 cmd = MemCmd::ReadReq;
67 }
68 PacketPtr pkt = new Packet(req, cmd);
69 uint8_t* dummyData = new uint8_t;
70 *dummyData = 0;
71 pkt->dataDynamic(dummyData);
72
73 if (port->sendTiming(pkt)) {
73 if (port->sendTimingReq(pkt)) {
74 DPRINTF(DirectedTest, "initiating request - successful\n");
75 m_status = SeriesRequestGeneratorStatus_Request_Pending;
76 return true;
77 } else {
78 // If the packet did not issue, must delete
79 // Note: No need to delete the data, the packet destructor
80 // will delete it
81 delete pkt->req;

--- 32 unchanged lines hidden ---
74 DPRINTF(DirectedTest, "initiating request - successful\n");
75 m_status = SeriesRequestGeneratorStatus_Request_Pending;
76 return true;
77 } else {
78 // If the packet did not issue, must delete
79 // Note: No need to delete the data, the packet destructor
80 // will delete it
81 delete pkt->req;

--- 32 unchanged lines hidden ---