- Added a define which marks the use of BPRangeListener
- Gem5 now has two different implementation for breakpoints. - If only BPSingleListener are used, gem5 Breakpoints are used - If BPRangeListener are used, gem5 calls onBreakpoint() in every simulated instruction git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2003 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
#ifndef __GEM5_LISTENER_AH__
|
||||
#define __GEM5_LISTENER_AH__
|
||||
|
||||
#include "config/FailConfig.hpp"
|
||||
#include "config/VariantConfig.hpp"
|
||||
|
||||
#if defined(BUILD_GEM5)
|
||||
#if defined(BUILD_GEM5) && defined(CONFIG_EVENT_BREAKPOINTS) && !defined(CONFIG_EVENT_RANGEBREAKPOINTS)
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
@ -27,7 +28,7 @@ aspect Gem5Listener {
|
||||
{
|
||||
System* sys = *System::systemList.begin();
|
||||
m_Breakpoint = new Gem5Breakpoint(&sys->pcEventQueue, this->m_WatchInstrPtr);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -41,6 +42,6 @@ aspect Gem5Listener {
|
||||
};
|
||||
};
|
||||
|
||||
#endif // defined(BUILD_GEM5)
|
||||
#endif // defined(BUILD_GEM5) && defined(CONFIG_EVENT_BREAKPOINTS) && !defined(CONFIG_EVENT_RANGEBREAKPOINTS)
|
||||
|
||||
#endif // __GEM5_LISTENER_AH__
|
||||
|
||||
Reference in New Issue
Block a user