Change assert to check on virtual addresses because the physical
authorAndrew Schultz <alschult@umich.edu>
Wed, 30 Jun 2004 13:47:23 +0000 (09:47 -0400)
committerAndrew Schultz <alschult@umich.edu>
Wed, 30 Jun 2004 13:47:23 +0000 (09:47 -0400)
address can be zero for a copy

--HG--
extra : convert_revision : c6089969396aee2d67fa695a31cb7c5aea794338

cpu/simple_cpu/simple_cpu.cc

index bf4cbfbe2690bdb2216dc2f150f1e43ce74dbb3e..8ed2247ae9f61d93b65b063ab9512bbd0ce61973 100644 (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);