Change assert to check on virtual addresses because the physical

address can be zero for a copy

--HG--
extra : convert_revision : c6089969396aee2d67fa695a31cb7c5aea794338
This commit is contained in:
Andrew Schultz 2004-06-30 09:47:23 -04:00
parent 75ed8090bf
commit bdf9044d9d

View file

@ -352,7 +352,7 @@ SimpleCPU::copy(Addr dest)
{
int blk_size = (dcacheInterface) ? dcacheInterface->getBlockSize() : 64;
uint8_t data[blk_size];
assert(xc->copySrcPhysAddr);
assert(xc->copySrcAddr);
memReq->reset(dest, blk_size);
// translate to physical address
Fault fault = xc->translateDataWriteReq(memReq);