From 0f014e4340bb0991716cb0f0feafd48b53e865d7 Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Tue, 6 Jun 2006 14:06:30 -0400 Subject: Fix checker to work in newmem in SE mode. src/cpu/o3/fetch_impl.hh: Give the checker a pointer to the icachePort. src/cpu/o3/lsq_unit_impl.hh: Give the checker a pointer to the dcachePort. src/mem/request.hh: Allow checking for the scResult being valid prior to accessing it. --HG-- extra : convert_revision : ced4180588d242111ecba4a11586823badd6cf15 --- src/cpu/o3/lsq_unit_impl.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpu/o3/lsq_unit_impl.hh') diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index 5398426e2..2679eb52b 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -186,6 +186,10 @@ LSQUnit::setCPU(FullCPU *cpu_ptr) Port *mem_dport = mem->getPort(""); dcachePort->setPeer(mem_dport); mem_dport->setPeer(dcachePort); + + if (cpu->checker) { + cpu->checker->setDcachePort(dcachePort); + } } template -- cgit v1.2.3