Dear all,
Maybe this a simple c++ question but will be thankful if you help.
I want to create a copy of a blk. To do that, I wrote:
BlkType *blk = tags->findBlock(pkt->getAddr());
BlkType *myBlk=0;
if ( condition1 ) {
*myBlk = *blk;
}
this compiles however in the execution, the '=' crash:
const CacheBlk& operator=(const CacheBlk& rhs)
{
asid = rhs.asid;
tag = rhs.tag;
data = rhs.data;
size = rhs.size;
status = rhs.status;
whenReady = rhs.whenReady;
set = rhs.set;
refCount = rhs.refCount;
return *this;
}
This solution works with standarnd types (like int) but i don't know
why it is not applicable to this user defined type.
Can you help?
--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users