summaryrefslogtreecommitdiff
path: root/src/dev/uart8250.hh
diff options
context:
space:
mode:
authorSean Wilson <spwilson2@wisc.edu>2017-06-28 11:29:26 -0500
committerSean Wilson <spwilson2@wisc.edu>2017-07-12 20:07:05 +0000
commit8bcf6a799d8bde90565fd42cf74ada0ec9fbc98f (patch)
treefb5d08efcbdf84acc08fa94526c781b42574e9aa /src/dev/uart8250.hh
parentea57eee60cca92277f9f8d1f2abf501ca158be2e (diff)
downloadgem5-8bcf6a799d8bde90565fd42cf74ada0ec9fbc98f.tar.xz
dev: Refactor some Event subclasses to lambdas
Change-Id: I965d31ff8ad1658b03a902bf4244d7d0977b0466 Signed-off-by: Sean Wilson <spwilson2@wisc.edu> Reviewed-on: https://gem5-review.googlesource.com/3928 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/uart8250.hh')
-rw-r--r--src/dev/uart8250.hh19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/dev/uart8250.hh b/src/dev/uart8250.hh
index ccccac1e9..b7fefc534 100644
--- a/src/dev/uart8250.hh
+++ b/src/dev/uart8250.hh
@@ -73,20 +73,11 @@ class Uart8250 : public Uart
uint8_t IER, DLAB, LCR, MCR;
Tick lastTxInt;
- class IntrEvent : public Event
- {
- protected:
- Uart8250 *uart;
- int intrBit;
- public:
- IntrEvent(Uart8250 *u, int bit);
- virtual void process();
- virtual const char *description() const;
- void scheduleIntr();
- };
-
- IntrEvent txIntrEvent;
- IntrEvent rxIntrEvent;
+ void processIntrEvent(int intrBit);
+ void scheduleIntr(Event *event);
+
+ EventFunctionWrapper txIntrEvent;
+ EventFunctionWrapper rxIntrEvent;
public:
typedef Uart8250Params Params;