lsq.cc (10713:eddb533708cb) | lsq.cc (10739:4cfe55719da5) |
---|---|
1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 1531 unchanged lines hidden (view full) --- 1540 numUnissuedAccesses(0) 1541{ 1542} 1543 1544PacketPtr 1545makePacketForRequest(Request &request, bool isLoad, 1546 Packet::SenderState *sender_state, PacketDataPtr data) 1547{ | 1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 1531 unchanged lines hidden (view full) --- 1540 numUnissuedAccesses(0) 1541{ 1542} 1543 1544PacketPtr 1545makePacketForRequest(Request &request, bool isLoad, 1546 Packet::SenderState *sender_state, PacketDataPtr data) 1547{ |
1548 MemCmd command; | 1548 PacketPtr ret = isLoad ? Packet::createRead(&request) 1549 : Packet::createWrite(&request); |
1549 | 1550 |
1550 /* Make a ret with the right command type to match the request */ 1551 if (request.isLLSC()) { 1552 command = (isLoad ? MemCmd::LoadLockedReq : MemCmd::StoreCondReq); 1553 } else if (request.isSwap()) { 1554 command = MemCmd::SwapReq; 1555 } else { 1556 command = (isLoad ? MemCmd::ReadReq : MemCmd::WriteReq); 1557 } 1558 1559 PacketPtr ret = new Packet(&request, command); 1560 | |
1561 if (sender_state) 1562 ret->pushSenderState(sender_state); 1563 1564 if (isLoad) 1565 ret->allocate(); 1566 else 1567 ret->dataDynamic(data); 1568 --- 58 unchanged lines hidden --- | 1551 if (sender_state) 1552 ret->pushSenderState(sender_state); 1553 1554 if (isLoad) 1555 ret->allocate(); 1556 else 1557 ret->dataDynamic(data); 1558 --- 58 unchanged lines hidden --- |