packet.hh (12749:223c83ed9979) packet.hh (12766:1c347e60c7fd)
1/*
2 * Copyright (c) 2012-2018 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

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

836 /**
837 * Generate the appropriate write MemCmd based on the Request flags.
838 */
839 static MemCmd
840 makeWriteCmd(const RequestPtr &req)
841 {
842 if (req->isLLSC())
843 return MemCmd::StoreCondReq;
1/*
2 * Copyright (c) 2012-2018 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

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

836 /**
837 * Generate the appropriate write MemCmd based on the Request flags.
838 */
839 static MemCmd
840 makeWriteCmd(const RequestPtr &req)
841 {
842 if (req->isLLSC())
843 return MemCmd::StoreCondReq;
844 else if (req->isSwap())
844 else if (req->isSwap() || req->isAtomic())
845 return MemCmd::SwapReq;
846 else if (req->isCacheInvalidate()) {
847 return req->isCacheClean() ? MemCmd::CleanInvalidReq :
848 MemCmd::InvalidateReq;
849 } else if (req->isCacheClean()) {
850 return MemCmd::CleanSharedReq;
851 } else
852 return MemCmd::WriteReq;

--- 392 unchanged lines hidden ---
845 return MemCmd::SwapReq;
846 else if (req->isCacheInvalidate()) {
847 return req->isCacheClean() ? MemCmd::CleanInvalidReq :
848 MemCmd::InvalidateReq;
849 } else if (req->isCacheClean()) {
850 return MemCmd::CleanSharedReq;
851 } else
852 return MemCmd::WriteReq;

--- 392 unchanged lines hidden ---