Check.cc (8950:a6830d615eff) | Check.cc (8975:7f36d4436074) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * Copyright (c) 2009 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 --- 100 unchanged lines hidden (view full) --- 109 110 PacketPtr pkt = new Packet(req, cmd); 111 112 // push the subblock onto the sender state. The sequencer will 113 // update the subblock on the return 114 pkt->senderState = 115 new SenderState(m_address, req->getSize(), pkt->senderState); 116 | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * Copyright (c) 2009 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 --- 100 unchanged lines hidden (view full) --- 109 110 PacketPtr pkt = new Packet(req, cmd); 111 112 // push the subblock onto the sender state. The sequencer will 113 // update the subblock on the return 114 pkt->senderState = 115 new SenderState(m_address, req->getSize(), pkt->senderState); 116 |
117 if (port->sendTiming(pkt)) { | 117 if (port->sendTimingReq(pkt)) { |
118 DPRINTF(RubyTest, "successfully initiated prefetch.\n"); 119 } else { 120 // If the packet did not issue, must delete 121 SenderState* senderState = safe_cast<SenderState*>(pkt->senderState); 122 pkt->senderState = senderState->saved; 123 delete senderState; 124 delete pkt->req; 125 delete pkt; --- 23 unchanged lines hidden (view full) --- 149 150 PacketPtr pkt = new Packet(req, cmd); 151 152 // push the subblock onto the sender state. The sequencer will 153 // update the subblock on the return 154 pkt->senderState = 155 new SenderState(m_address, req->getSize(), pkt->senderState); 156 | 118 DPRINTF(RubyTest, "successfully initiated prefetch.\n"); 119 } else { 120 // If the packet did not issue, must delete 121 SenderState* senderState = safe_cast<SenderState*>(pkt->senderState); 122 pkt->senderState = senderState->saved; 123 delete senderState; 124 delete pkt->req; 125 delete pkt; --- 23 unchanged lines hidden (view full) --- 149 150 PacketPtr pkt = new Packet(req, cmd); 151 152 // push the subblock onto the sender state. The sequencer will 153 // update the subblock on the return 154 pkt->senderState = 155 new SenderState(m_address, req->getSize(), pkt->senderState); 156 |
157 if (port->sendTiming(pkt)) { | 157 if (port->sendTimingReq(pkt)) { |
158 DPRINTF(RubyTest, "initiating Flush - successful\n"); 159 } 160} 161 162void 163Check::initiateAction() 164{ 165 DPRINTF(RubyTest, "initiating Action\n"); --- 30 unchanged lines hidden (view full) --- 196 DPRINTF(RubyTest, "data 0x%x check 0x%x\n", 197 *(pkt->getPtr<uint8_t>()), *writeData); 198 199 // push the subblock onto the sender state. The sequencer will 200 // update the subblock on the return 201 pkt->senderState = 202 new SenderState(writeAddr, req->getSize(), pkt->senderState); 203 | 158 DPRINTF(RubyTest, "initiating Flush - successful\n"); 159 } 160} 161 162void 163Check::initiateAction() 164{ 165 DPRINTF(RubyTest, "initiating Action\n"); --- 30 unchanged lines hidden (view full) --- 196 DPRINTF(RubyTest, "data 0x%x check 0x%x\n", 197 *(pkt->getPtr<uint8_t>()), *writeData); 198 199 // push the subblock onto the sender state. The sequencer will 200 // update the subblock on the return 201 pkt->senderState = 202 new SenderState(writeAddr, req->getSize(), pkt->senderState); 203 |
204 if (port->sendTiming(pkt)) { | 204 if (port->sendTimingReq(pkt)) { |
205 DPRINTF(RubyTest, "initiating action - successful\n"); 206 DPRINTF(RubyTest, "status before action update: %s\n", 207 (TesterStatus_to_string(m_status)).c_str()); 208 m_status = TesterStatus_Action_Pending; 209 } else { 210 // If the packet did not issue, must delete 211 // Note: No need to delete the data, the packet destructor 212 // will delete it --- 35 unchanged lines hidden (view full) --- 248 uint8_t* dataArray = new uint8_t[CHECK_SIZE]; 249 pkt->dataDynamicArray(dataArray); 250 251 // push the subblock onto the sender state. The sequencer will 252 // update the subblock on the return 253 pkt->senderState = 254 new SenderState(m_address, req->getSize(), pkt->senderState); 255 | 205 DPRINTF(RubyTest, "initiating action - successful\n"); 206 DPRINTF(RubyTest, "status before action update: %s\n", 207 (TesterStatus_to_string(m_status)).c_str()); 208 m_status = TesterStatus_Action_Pending; 209 } else { 210 // If the packet did not issue, must delete 211 // Note: No need to delete the data, the packet destructor 212 // will delete it --- 35 unchanged lines hidden (view full) --- 248 uint8_t* dataArray = new uint8_t[CHECK_SIZE]; 249 pkt->dataDynamicArray(dataArray); 250 251 // push the subblock onto the sender state. The sequencer will 252 // update the subblock on the return 253 pkt->senderState = 254 new SenderState(m_address, req->getSize(), pkt->senderState); 255 |
256 if (port->sendTiming(pkt)) { | 256 if (port->sendTimingReq(pkt)) { |
257 DPRINTF(RubyTest, "initiating check - successful\n"); 258 DPRINTF(RubyTest, "status before check update: %s\n", 259 TesterStatus_to_string(m_status).c_str()); 260 m_status = TesterStatus_Check_Pending; 261 } else { 262 // If the packet did not issue, must delete 263 // Note: No need to delete the data, the packet destructor 264 // will delete it --- 124 unchanged lines hidden --- | 257 DPRINTF(RubyTest, "initiating check - successful\n"); 258 DPRINTF(RubyTest, "status before check update: %s\n", 259 TesterStatus_to_string(m_status).c_str()); 260 m_status = TesterStatus_Check_Pending; 261 } else { 262 // If the packet did not issue, must delete 263 // Note: No need to delete the data, the packet destructor 264 // will delete it --- 124 unchanged lines hidden --- |