diff options
Diffstat (limited to 'src/cpu/minor')
-rw-r--r-- | src/cpu/minor/lsq.cc | 3 | ||||
-rw-r--r-- | src/cpu/minor/lsq.hh | 15 |
2 files changed, 3 insertions, 15 deletions
diff --git a/src/cpu/minor/lsq.cc b/src/cpu/minor/lsq.cc index 3b70c53aa..bf2612071 100644 --- a/src/cpu/minor/lsq.cc +++ b/src/cpu/minor/lsq.cc @@ -321,7 +321,8 @@ LSQ::SplitDataRequest::finish(const Fault &fault_, RequestPtr request_, LSQ::SplitDataRequest::SplitDataRequest(LSQ &port_, MinorDynInstPtr inst_, bool isLoad_, PacketDataPtr data_, uint64_t *res_) : LSQRequest(port_, inst_, isLoad_, data_, res_), - translationEvent(*this), + translationEvent([this]{ sendNextFragmentToTranslation(); }, + "translationEvent"), numFragments(0), numInTranslationFragments(0), numTranslatedFragments(0), diff --git a/src/cpu/minor/lsq.hh b/src/cpu/minor/lsq.hh index 1a9094806..d4973f5a3 100644 --- a/src/cpu/minor/lsq.hh +++ b/src/cpu/minor/lsq.hh @@ -377,20 +377,7 @@ class LSQ : public Named { protected: /** Event to step between translations */ - class TranslationEvent : public Event - { - protected: - SplitDataRequest &owner; - - public: - TranslationEvent(SplitDataRequest &owner_) - : owner(owner_) { } - - void process() - { owner.sendNextFragmentToTranslation(); } - }; - - TranslationEvent translationEvent; + EventFunctionWrapper translationEvent; protected: /** Number of fragments this request is split into */ unsigned int numFragments; |