Added single stepping for gem5, which is necessary to periodically check for events like interrupts.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1734 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
14
src/core/sal/gem5/Gem5PCEvents.cc
Normal file
14
src/core/sal/gem5/Gem5PCEvents.cc
Normal file
@ -0,0 +1,14 @@
|
||||
#include "Gem5PCEvents.hpp"
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
#include "cpu/thread_context.hh"
|
||||
|
||||
void Gem5BreakpointEvent::process(ThreadContext *tc)
|
||||
{
|
||||
fail::simulator.onBreakpoint(this->evpc, fail::ANY_ADDR);
|
||||
}
|
||||
|
||||
void Gem5InstructionEvent::process(ThreadContext *tc)
|
||||
{
|
||||
m_FailDevice->setNextBreakpoints(tc);
|
||||
}
|
||||
Reference in New Issue
Block a user