InvalidateGenerator.cc (12748:ae5ce8e42de7) InvalidateGenerator.cc (12749:223c83ed9979)
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

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

55InvalidateGenerator::initiate()
56{
57 MasterPort* port;
58 Request::Flags flags;
59 PacketPtr pkt;
60 Packet::Command cmd;
61
62 // For simplicity, requests are assumed to be 1 byte-sized
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

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

55InvalidateGenerator::initiate()
56{
57 MasterPort* port;
58 Request::Flags flags;
59 PacketPtr pkt;
60 Packet::Command cmd;
61
62 // For simplicity, requests are assumed to be 1 byte-sized
63 RequestPtr req = new Request(m_address, 1, flags, masterId);
63 RequestPtr req = std::make_shared<Request>(m_address, 1, flags, masterId);
64
65 //
66 // Based on the current state, issue a load or a store
67 //
68 if (m_status == InvalidateGeneratorStatus_Load_Waiting) {
69 DPRINTF(DirectedTest, "initiating read\n");
70 cmd = MemCmd::ReadReq;
71 port = m_directed_tester->getCpuPort(m_active_read_node);

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

87 } else {
88 m_status = InvalidateGeneratorStatus_Inv_Pending;
89 }
90 return true;
91 } else {
92 // If the packet did not issue, must delete
93 // Note: No need to delete the data, the packet destructor
94 // will delete it
64
65 //
66 // Based on the current state, issue a load or a store
67 //
68 if (m_status == InvalidateGeneratorStatus_Load_Waiting) {
69 DPRINTF(DirectedTest, "initiating read\n");
70 cmd = MemCmd::ReadReq;
71 port = m_directed_tester->getCpuPort(m_active_read_node);

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

87 } else {
88 m_status = InvalidateGeneratorStatus_Inv_Pending;
89 }
90 return true;
91 } else {
92 // If the packet did not issue, must delete
93 // Note: No need to delete the data, the packet destructor
94 // will delete it
95 delete pkt->req;
96 delete pkt;
97
98 DPRINTF(DirectedTest, "failed to issue request - sequencer not ready\n");
99 return false;
100 }
101}
102
103void

--- 38 unchanged lines hidden ---
95 delete pkt;
96
97 DPRINTF(DirectedTest, "failed to issue request - sequencer not ready\n");
98 return false;
99 }
100}
101
102void

--- 38 unchanged lines hidden ---