src/MemWrapper.cpp
void MemWrapper::shallowReqCopy(const Request &simpleReq, Request &req){
    req.type = simpleReq.type;
    req.coreid = simpleReq.coreid;
    req.addr = simpleReq.addr;
    req.udf.burstIdx = simpleReq.udf.burstIdx;
    req.udf.reqIdx = simpleReq.udf.reqIdx;
    req.udf.peIdx = simpleReq.udf.peIdx;
    req.udf.portIdx = simpleReq.udf.portIdx;
    req.udf.arriveMemTime = simpleReq.udf.arriveMemTime;
    req.udf.departMemTime = simpleReq.udf.departMemTime;
}
// We don't want to mess up the callback function while copying
We don't want to mess up the callback function while copying
We don ' t want to mess up the callback function while copying
void MemWrapper::shallowReqCopy(const Request &simpleReq, Request &req){
    req.type = simpleReq.type;
    req.coreid = simpleReq.coreid;
    req.addr = simpleReq.addr;
    req.udf.burstIdx = simpleReq.udf.burstIdx;
    req.udf.reqIdx = simpleReq.udf.reqIdx;
    req.udf.peIdx = simpleReq.udf.peIdx;
    req.udf.portIdx = simpleReq.udf.portIdx;
    req.udf.arriveMemTime = simpleReq.udf.arriveMemTime;
    req.udf.departMemTime = simpleReq.udf.departMemTime;
}
void MemWrapper :: shallowReqCopy ( const Request & simpleReq , Request & req ) { req . type = simpleReq . type ; req . coreid = simpleReq . coreid ; req . addr = simpleReq . addr ; req . udf . burstIdx = simpleReq . udf . burstIdx ; req . udf . reqIdx = simpleReq . udf . reqIdx ; req . udf . peIdx = simpleReq . udf . peIdx ; req . udf . portIdx = simpleReq . udf . portIdx ; req . udf . arriveMemTime = simpleReq . udf . arriveMemTime ; req . udf . departMemTime = simpleReq . udf . departMemTime ; }
We don't want to mess up the callback function while copying
We don ' t want to mess up the callback function while copying