sim, x86: Replace EventWrapper use with EventFunctionWrapper

Change-Id: Ie1df07b70776208fc3631a73d403024636fc05a9
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3749
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
This commit is contained in:
Sean Wilson
2017-06-08 11:35:45 -05:00
parent c8668a6639
commit 85e1a9b854
5 changed files with 8 additions and 8 deletions

View File

@@ -178,7 +178,7 @@ namespace X86ISA
/**
* Event used to call startWalkWrapper.
**/
EventWrapper<Walker, &Walker::startWalkWrapper> startWalkWrapperEvent;
EventFunctionWrapper startWalkWrapperEvent;
// Functions for dealing with packets.
bool recvTimingResp(PacketPtr pkt);
@@ -205,7 +205,7 @@ namespace X86ISA
funcState(this, NULL, NULL, true), tlb(NULL), sys(params->system),
masterId(sys->getMasterId(name())),
numSquashable(params->num_squash_per_cycle),
startWalkWrapperEvent(this)
startWalkWrapperEvent([this]{ startWalkWrapper(); }, name())
{
}
};