From cdcc55a6a8fe9b4625b316a8d8845366ccfa71c9 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 22 Apr 2019 19:45:10 -0700 Subject: mem: Minimize the use of MemObject. MemObject doesn't provide anything beyond its base ClockedObject any more, so this change removes it from most inheritance hierarchies. Occasionally MemObject is replaced with SimObject when I was fairly confident that the extra functionality of ClockedObject wasn't needed. Change-Id: Ic014ab61e56402e62548e8c831eb16e26523fdce Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18289 Tested-by: kokoro Reviewed-by: Anthony Gutierrez Maintainer: Gabe Black --- src/gpu-compute/gpu_tlb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu-compute/gpu_tlb.cc') diff --git a/src/gpu-compute/gpu_tlb.cc b/src/gpu-compute/gpu_tlb.cc index c23b9986f..ee405e872 100644 --- a/src/gpu-compute/gpu_tlb.cc +++ b/src/gpu-compute/gpu_tlb.cc @@ -61,7 +61,7 @@ namespace X86ISA { GpuTLB::GpuTLB(const Params *p) - : MemObject(p), configAddress(0), size(p->size), + : ClockedObject(p), configAddress(0), size(p->size), cleanupEvent([this]{ cleanup(); }, name(), false, Event::Maximum_Pri), exitEvent([this]{ exitCallback(); }, name()) @@ -950,7 +950,7 @@ namespace X86ISA void GpuTLB::regStats() { - MemObject::regStats(); + ClockedObject::regStats(); localNumTLBAccesses .name(name() + ".local_TLB_accesses") -- cgit v1.2.3