diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-11-14 01:23:59 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-11-14 01:23:59 -0500 |
commit | 8d234a4bc5adb6dcf26d73596c45a29e616bb4c2 (patch) | |
tree | a5e4354cbe61d806cd656f314c48efccaf8f32e2 /src/sim/debug.cc | |
parent | 14cb2264c80eb961eab1f80738e0144b6179d1a3 (diff) | |
parent | 69623a892edbaddc8d68a98766ef09b421ac4ce6 (diff) | |
download | gem5-8d234a4bc5adb6dcf26d73596c45a29e616bb4c2.tar.xz |
Merge 141.212.106.238:/home/gblack/m5/newmemmemops
into zizzer.eecs.umich.edu:/.automount/wexford/x/gblack/m5/newmem
--HG--
extra : convert_revision : 753831a9f6f79d07e6ee122ab894e24161d2e722
Diffstat (limited to 'src/sim/debug.cc')
-rw-r--r-- | src/sim/debug.cc | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/src/sim/debug.cc b/src/sim/debug.cc index be9566836..84ab1074d 100644 --- a/src/sim/debug.cc +++ b/src/sim/debug.cc @@ -94,45 +94,17 @@ DebugBreakEvent::description() } // -// Parameter context for global debug options -// -class DebugContext : public ParamContext -{ - public: - DebugContext(const string &_iniSection) - : ParamContext(_iniSection) {} - void checkParams(); -}; - -DebugContext debugParams("debug"); - -VectorParam<Tick> break_cycles(&debugParams, "break_cycles", - "cycle(s) to create breakpoint events"); - -void -DebugContext::checkParams() -{ - if (break_cycles.isValid()) { - vector<Tick> &cycles = break_cycles; - - vector<Tick>::iterator i = cycles.begin(); - vector<Tick>::iterator end = cycles.end(); - - for (; i < end; ++i) - new DebugBreakEvent(&mainEventQueue, *i); - } -} - -// // handy function to schedule DebugBreakEvent on main event queue // (callable from debugger) // -void sched_break_cycle(Tick when) +void +schedBreakCycle(Tick when) { new DebugBreakEvent(&mainEventQueue, when); } -void eventq_dump() +void +eventqDump() { mainEventQueue.dump(); } |