From: Andrew Schultz Date: Wed, 30 Jun 2004 13:47:23 +0000 (-0400) Subject: Change assert to check on virtual addresses because the physical X-Git-Tag: m5_1.0_tutorial~281^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdf9044d9d6de614e546995fbf1ca82be684508e;p=gem5.git Change assert to check on virtual addresses because the physical address can be zero for a copy --HG-- extra : convert_revision : c6089969396aee2d67fa695a31cb7c5aea794338 --- diff --git a/cpu/simple_cpu/simple_cpu.cc b/cpu/simple_cpu/simple_cpu.cc index bf4cbfbe2..8ed2247ae 100644 --- a/cpu/simple_cpu/simple_cpu.cc +++ b/cpu/simple_cpu/simple_cpu.cc @@ -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);