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:
parent
75ed8090bf
commit
bdf9044d9d
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ SimpleCPU::copy(Addr dest)
|
||||||
{
|
{
|
||||||
int blk_size = (dcacheInterface) ? dcacheInterface->getBlockSize() : 64;
|
int blk_size = (dcacheInterface) ? dcacheInterface->getBlockSize() : 64;
|
||||||
uint8_t data[blk_size];
|
uint8_t data[blk_size];
|
||||||
assert(xc->copySrcPhysAddr);
|
assert(xc->copySrcAddr);
|
||||||
memReq->reset(dest, blk_size);
|
memReq->reset(dest, blk_size);
|
||||||
// translate to physical address
|
// translate to physical address
|
||||||
Fault fault = xc->translateDataWriteReq(memReq);
|
Fault fault = xc->translateDataWriteReq(memReq);
|
||||||
|
|
Loading…
Reference in a new issue