Interface unification: BochsController implements onBreakpoint() instead of onInstrPtrChanged().
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1510 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -88,17 +88,12 @@ void BochsController::dbgEnableInstrPtrOutput(unsigned regularity, std::ostream*
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
void BochsController::onInstrPtrChanged(address_t instrPtr, address_t address_space,
|
||||
BX_CPU_C *context, bxICacheEntry_c *cache_entry)
|
||||
void BochsController::onBreakpoint(address_t instrPtr, address_t address_space)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
if (m_Regularity != 0 && ++m_Counter % m_Regularity == 0)
|
||||
(*m_pDest) << "0x" << std::hex << instrPtr;
|
||||
#endif
|
||||
assert(context != NULL && "FATAL ERROR: Bochs internal member was NULL (not expected)!");
|
||||
m_CPUContext = context;
|
||||
assert(cache_entry != NULL && "FATAL ERROR: Bochs internal member was NULL (not expected)!");
|
||||
m_CacheEntry = cache_entry;
|
||||
bool do_fire = false;
|
||||
// Check for active breakpoint-events:
|
||||
bp_cache_t &buffer_cache = m_LstList.getBPBuffer();
|
||||
@ -121,6 +116,14 @@ void BochsController::onInstrPtrChanged(address_t instrPtr, address_t address_sp
|
||||
// implementation.
|
||||
}
|
||||
|
||||
void BochsController::updateBPEventInfo(BX_CPU_C *context, bxICacheEntry_c *cacheEntry)
|
||||
{
|
||||
assert(context != NULL && "FATAL ERROR: Bochs internal member was NULL (not expected)!");
|
||||
assert(cacheEntry != NULL && "FATAL ERROR: Bochs internal member was NULL (not expected)!");
|
||||
m_CPUContext = context;
|
||||
m_CacheEntry = cacheEntry;
|
||||
}
|
||||
|
||||
void BochsController::onIOPort(unsigned char data, unsigned port, bool out) {
|
||||
// Check for active breakpoint-events:
|
||||
io_cache_t &buffer_cache = m_LstList.getIOBuffer();
|
||||
|
||||
Reference in New Issue
Block a user