summaryrefslogtreecommitdiff
path: root/src/gpu-compute
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu-compute')
-rw-r--r--src/gpu-compute/gpu_tlb.cc4
-rw-r--r--src/gpu-compute/gpu_tlb.hh4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu-compute/gpu_tlb.cc b/src/gpu-compute/gpu_tlb.cc
index 1f1a4cc61..b5411f82c 100644
--- a/src/gpu-compute/gpu_tlb.cc
+++ b/src/gpu-compute/gpu_tlb.cc
@@ -61,7 +61,9 @@ namespace X86ISA
GpuTLB::GpuTLB(const Params *p)
: MemObject(p), configAddress(0), size(p->size),
- cleanupEvent(this, false, Event::Maximum_Pri), exitEvent(this)
+ cleanupEvent([this]{ cleanup(); }, name(), false,
+ Event::Maximum_Pri),
+ exitEvent([this]{ exitCallback(); }, name())
{
assoc = p->assoc;
assert(assoc <= size);
diff --git a/src/gpu-compute/gpu_tlb.hh b/src/gpu-compute/gpu_tlb.hh
index 7a7485c48..ee4375259 100644
--- a/src/gpu-compute/gpu_tlb.hh
+++ b/src/gpu-compute/gpu_tlb.hh
@@ -425,7 +425,7 @@ namespace X86ISA
// free memory and do the required clean-up
void cleanup();
- EventWrapper<GpuTLB, &GpuTLB::cleanup> cleanupEvent;
+ EventFunctionWrapper cleanupEvent;
/**
* This hash map will use the virtual page address as a key
@@ -458,7 +458,7 @@ namespace X86ISA
// Called at the end of simulation to dump page access stats.
void exitCallback();
- EventWrapper<GpuTLB, &GpuTLB::exitCallback> exitEvent;
+ EventFunctionWrapper exitEvent;
};
}