"failstar" sounds like a name for a cruise liner from the 80s. As "*" isn't a desirable part of directory names, just name the whole thing "fail/", the core parts being stored in "fail/core/". Additionally fixing two build system dependency issues: - missing jobserver -> protomessages dependency - broken bochs -> fail dependency (add_custom_target DEPENDS only allows plain file dependencies ... cmake for the win) git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@956 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
29 lines
588 B
Plaintext
29 lines
588 B
Plaintext
#ifndef __INTERRUPT_SUPPRESSION_AH__
|
|
#define __INTERRUPT_SUPPRESSION_AH__
|
|
|
|
#include "../../AspectConfig.hpp"
|
|
|
|
#if CONFIG_SUPPRESS_INTERRUPTS == 1
|
|
|
|
#include "../../../bochs/bochs.h"
|
|
#include "../../../bochs/cpu/cpu.h"
|
|
#include "../SALInst.hpp"
|
|
|
|
aspect Interrupt_FI
|
|
{
|
|
pointcut interrupt_method() = "void bx_cpu_c::interrupt(...)";
|
|
|
|
advice execution (interrupt_method()) : around ()
|
|
{
|
|
unsigned type = *(tjp->arg<1>());
|
|
|
|
if(!sal::simulator.isSuppressedInterrupt(type)){
|
|
tjp->proceed();
|
|
}
|
|
}
|
|
};
|
|
|
|
#endif // CONFIG_SUPPRESS_INTERRUPTS
|
|
|
|
#endif /* __INTERRUPT_SUPPRESSION_AH__ */
|