diff options
author | Sean Wilson <spwilson2@wisc.edu> | 2017-06-07 13:23:09 -0500 |
---|---|---|
committer | Sean Wilson <spwilson2@wisc.edu> | 2017-06-20 18:03:21 +0000 |
commit | 475f613f2661f3be5f7479c5c7229e5adcb74d93 (patch) | |
tree | 7220347dc181487ae9a2909c873af5e837637f19 /src/dev/arm/pl111.cc | |
parent | ebe5f0df9a6158ec4ed84429d1619f388eb1388b (diff) | |
download | gem5-475f613f2661f3be5f7479c5c7229e5adcb74d93.tar.xz |
arm: Replace EventWrapper use with EventFunctionWrapper
Change-Id: I08de5f72513645d1fe92bde99fa205dde897e951
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3747
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/arm/pl111.cc')
-rw-r--r-- | src/dev/arm/pl111.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dev/arm/pl111.cc b/src/dev/arm/pl111.cc index b12e7a352..344eb0864 100644 --- a/src/dev/arm/pl111.cc +++ b/src/dev/arm/pl111.cc @@ -68,10 +68,13 @@ Pl111::Pl111(const Params *p) vnc(p->vnc), bmp(&fb), pic(NULL), width(LcdMaxWidth), height(LcdMaxHeight), bytesPerPixel(4), startTime(0), startAddr(0), maxAddr(0), curAddr(0), - waterMark(0), dmaPendingNum(0), readEvent(this), fillFifoEvent(this), + waterMark(0), dmaPendingNum(0), + readEvent([this]{ readFramebuffer(); }, name()), + fillFifoEvent([this]{ fillFifo(); }, name()), dmaDoneEventAll(maxOutstandingDma, this), dmaDoneEventFree(maxOutstandingDma), - intEvent(this), enableCapture(p->enable_capture) + intEvent([this]{ generateInterrupt(); }, name()), + enableCapture(p->enable_capture) { pioSize = 0xFFFF; |