interrupts can now be fired
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1010 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -9,6 +9,8 @@ namespace sal
|
||||
bx_bool restore_bochs_request = false;
|
||||
bx_bool save_bochs_request = false;
|
||||
bx_bool reboot_bochs_request = false;
|
||||
bx_bool interrupt_injection_request = false;
|
||||
unsigned interrupt_to_fire = 0;
|
||||
std::string sr_path = "";
|
||||
|
||||
BochsController::BochsController()
|
||||
@ -176,4 +178,18 @@ void BochsController::terminate(int exCode)
|
||||
exit(exCode);
|
||||
}
|
||||
|
||||
void BochsController::fireInterrupt(unsigned irq)
|
||||
{
|
||||
interrupt_injection_request = true;
|
||||
interrupt_to_fire = irq;
|
||||
m_CurrFlow = m_Flows.getCurrent();
|
||||
m_Flows.resume();
|
||||
}
|
||||
|
||||
void BochsController::fireInterruptDone()
|
||||
{
|
||||
interrupt_injection_request = false;
|
||||
m_Flows.toggle(m_CurrFlow);
|
||||
}
|
||||
|
||||
} // end-of-namespace: sal
|
||||
|
||||
Reference in New Issue
Block a user