1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2002-2005 The Regents of The University of Michigan
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright
--- 195 unchanged lines hidden (view full) ---
204 virtual bool acc(Addr addr, size_t len) = 0;
205 bool trap(int type);
206 virtual bool breakpoint()
207 {
208 return trap(SIGTRAP);
209 }
210
211 protected:
212 virtual void getregs() = 0;
213 virtual void setregs() = 0;
214
215 virtual void clearSingleStep() = 0;
216 virtual void setSingleStep() = 0;
217
218 PCEventQueue *getPcEventQueue();
219 EventQueue *getComInstEventQueue();
220
221 /// Schedule an event which will be triggered "delta" instructions later.
222 void scheduleInstCommitEvent(Event *ev, int delta);
223 /// Deschedule an instruction count based event.
224 void descheduleInstCommitEvent(Event *ev);
--- 82 unchanged lines hidden ---
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2002-2005 The Regents of The University of Michigan
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright
--- 195 unchanged lines hidden (view full) ---
204 virtual bool acc(Addr addr, size_t len) = 0;
205 bool trap(int type);
206 virtual bool breakpoint()
207 {
208 return trap(SIGTRAP);
209 }
210
211 protected:
212 virtual void getregs() = 0;
213 virtual void setregs() = 0;
214
215 virtual void clearSingleStep() = 0;
216 virtual void setSingleStep() = 0;
217
218 PCEventQueue *getPcEventQueue();
219 EventQueue *getComInstEventQueue();
220
221 /// Schedule an event which will be triggered "delta" instructions later.
222 void scheduleInstCommitEvent(Event *ev, int delta);
223 /// Deschedule an instruction count based event.
224 void descheduleInstCommitEvent(Event *ev);
--- 82 unchanged lines hidden ---