some changes on interrupt triggering and suppression
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1100 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -10,7 +10,7 @@ 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;
|
||||
int interrupt_to_fire = -1;
|
||||
std::string sr_path = "";
|
||||
|
||||
BochsController::BochsController()
|
||||
|
||||
@ -16,7 +16,6 @@ aspect Interrupt_FI
|
||||
advice execution (interrupt_method()) : around ()
|
||||
{
|
||||
unsigned vector = *(tjp->arg<0>());
|
||||
|
||||
if(!sal::simulator.isSuppressedInterrupt(vector)){
|
||||
tjp->proceed();
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@ namespace sal{
|
||||
extern bx_bool save_bochs_request;
|
||||
extern bx_bool reboot_bochs_request;
|
||||
extern bx_bool interrupt_injection_request;
|
||||
extern unsigned interrupt_to_fire;
|
||||
extern int interrupt_to_fire;
|
||||
extern std::string sr_path;
|
||||
#endif
|
||||
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
|
||||
#include "../../../bochs/bochs.h"
|
||||
#include "../../../bochs/cpu/cpu.h"
|
||||
#include "../../../bochs/iodev/iodev.h"
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
aspect fireInterrupt
|
||||
@ -36,7 +37,6 @@ aspect InterruptDone
|
||||
}else{
|
||||
if(*(tjp->arg<0>()) == 32 + sal::interrupt_to_fire){
|
||||
DEV_pic_lower_irq(sal::interrupt_to_fire);
|
||||
|
||||
sal::simulator.fireInterruptDone();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user