diff options
author | Sean Wilson <spwilson2@wisc.edu> | 2017-06-27 14:18:10 -0500 |
---|---|---|
committer | Sean Wilson <spwilson2@wisc.edu> | 2017-07-12 20:07:05 +0000 |
commit | 741261f10bb308cdc200c5dfd8eb68567349cf19 (patch) | |
tree | b44581cb4b93d64c079a80ab9e510205ffe93d0a /src/gpu-compute/dispatcher.hh | |
parent | 55f70760de9cf9d16905372d885b7925722721a8 (diff) | |
download | gem5-741261f10bb308cdc200c5dfd8eb68567349cf19.tar.xz |
gpu-compute: Refactor some Event subclasses to lambdas
Change-Id: Ic1332b8e8ba0afacbe591c80f4d06afbf5f04bd9
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3922
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/gpu-compute/dispatcher.hh')
-rw-r--r-- | src/gpu-compute/dispatcher.hh | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/gpu-compute/dispatcher.hh b/src/gpu-compute/dispatcher.hh index f5e89e8aa..50a1d800e 100644 --- a/src/gpu-compute/dispatcher.hh +++ b/src/gpu-compute/dispatcher.hh @@ -55,17 +55,6 @@ class GpuDispatcher : public DmaDevice public: typedef GpuDispatcherParams Params; - class TickEvent : public Event - { - private: - GpuDispatcher *dispatcher; - - public: - TickEvent(GpuDispatcher *); - void process(); - const char *description() const; - }; - MasterID masterId() { return _masterId; } protected: @@ -93,7 +82,8 @@ class GpuDispatcher : public DmaDevice BaseCPU *cpu; Shader *shader; ClDriver *driver; - TickEvent tickEvent; + EventFunctionWrapper tickEvent; + static GpuDispatcher *instance; |