InvalidateGenerator.cc (8975:7f36d4436074) | InvalidateGenerator.cc (10566:c99c8d2a7c31) |
---|---|
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 --- 62 unchanged lines hidden (view full) --- 71 } else if (m_status == InvalidateGeneratorStatus_Inv_Waiting) { 72 DPRINTF(DirectedTest, "initiating invalidating write\n"); 73 cmd = MemCmd::WriteReq; 74 port = m_directed_tester->getCpuPort(m_active_inv_node); 75 pkt = new Packet(req, cmd); 76 } else { 77 panic("initiate was unexpectedly called\n"); 78 } | 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 --- 62 unchanged lines hidden (view full) --- 71 } else if (m_status == InvalidateGeneratorStatus_Inv_Waiting) { 72 DPRINTF(DirectedTest, "initiating invalidating write\n"); 73 cmd = MemCmd::WriteReq; 74 port = m_directed_tester->getCpuPort(m_active_inv_node); 75 pkt = new Packet(req, cmd); 76 } else { 77 panic("initiate was unexpectedly called\n"); 78 } |
79 uint8_t* dummyData = new uint8_t; 80 *dummyData = 0; 81 pkt->dataDynamic(dummyData); | 79 pkt->allocate(); |
82 83 if (port->sendTimingReq(pkt)) { 84 DPRINTF(DirectedTest, "initiating request - successful\n"); 85 if (m_status == InvalidateGeneratorStatus_Load_Waiting) { 86 m_status = InvalidateGeneratorStatus_Load_Pending; 87 } else { 88 m_status = InvalidateGeneratorStatus_Inv_Pending; 89 } --- 52 unchanged lines hidden --- | 80 81 if (port->sendTimingReq(pkt)) { 82 DPRINTF(DirectedTest, "initiating request - successful\n"); 83 if (m_status == InvalidateGeneratorStatus_Load_Waiting) { 84 m_status = InvalidateGeneratorStatus_Load_Pending; 85 } else { 86 m_status = InvalidateGeneratorStatus_Inv_Pending; 87 } --- 52 unchanged lines hidden --- |