From bdf9044d9d6de614e546995fbf1ca82be684508e Mon Sep 17 00:00:00 2001 From: Andrew Schultz Date: Wed, 30 Jun 2004 09:47:23 -0400 Subject: [PATCH] Change assert to check on virtual addresses because the physical address can be zero for a copy --HG-- extra : convert_revision : c6089969396aee2d67fa695a31cb7c5aea794338 --- cpu/simple_cpu/simple_cpu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2