diff options
Diffstat (limited to 'src/arch/mips/interrupts.hh')
-rwxr-xr-x | src/arch/mips/interrupts.hh | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/arch/mips/interrupts.hh b/src/arch/mips/interrupts.hh index 13d4f8512..c852bc9d0 100755 --- a/src/arch/mips/interrupts.hh +++ b/src/arch/mips/interrupts.hh @@ -31,20 +31,41 @@ #ifndef __ARCH_MIPS_INTERRUPT_HH__ #define __ARCH_MIPS_INTERRUPT_HH__ +#include <string> + #include "arch/mips/faults.hh" #include "base/compiler.hh" +#include "base/misc.hh" +#include "params/MipsInterrupts.hh" +#include "sim/serialize.hh" +#include "sim/sim_object.hh" + +class BaseCPU; +class Checkpoint; namespace MipsISA { -class Interrupts +class Interrupts : public SimObject { public: - Interrupts() + typedef MipsInterruptsParams Params; + + const Params * + params() const + { + return dynamic_cast<const Params *>(_params); + } + + Interrupts(Params * p) : SimObject(p) { newInfoSet = false; } + void + setCPU(BaseCPU *_cpu) + {} + // post(int int_num, int index) is responsible // for posting an interrupt. It sets a bit // in intstatus corresponding to Cause IP*. The |