summaryrefslogtreecommitdiff
path: root/src/base/remote_gdb.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2014-12-05 22:35:47 -0800
committerGabe Black <gabeblack@google.com>2014-12-05 22:35:47 -0800
commit16c9b41616312bfef0b5859f7cebe24e8c17d9da (patch)
tree66e2724fb6ec416c38a35413463ce0bdf362dc6f /src/base/remote_gdb.hh
parentcddf988bfdb60bbf2e77aa23d98ee7ea8d12f072 (diff)
downloadgem5-16c9b41616312bfef0b5859f7cebe24e8c17d9da.tar.xz
misc: Add some utility functions for schedule inst commit events.
These can be used to simplify the implementation of single step in derived classes.
Diffstat (limited to 'src/base/remote_gdb.hh')
-rw-r--r--src/base/remote_gdb.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/remote_gdb.hh b/src/base/remote_gdb.hh
index 373f05343..62f98f29a 100644
--- a/src/base/remote_gdb.hh
+++ b/src/base/remote_gdb.hh
@@ -216,6 +216,12 @@ class BaseRemoteGDB
virtual void setSingleStep() = 0;
PCEventQueue *getPcEventQueue();
+ EventQueue *getComInstEventQueue();
+
+ /// Schedule an event which will be triggered "delta" instructions later.
+ void scheduleInstCommitEvent(Event *ev, int delta);
+ /// Deschedule an instruction count based event.
+ void descheduleInstCommitEvent(Event *ev);
protected:
virtual bool checkBpLen(size_t len);