From 74584d79b66b3459c72db6c74bfa9e22ee1ae23b Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 21 Jul 2009 01:09:05 -0700 Subject: MIPS: Get MIPS_FS to compile, more style fixes. Some breakage was from my BitUnion change, some was much older. --- src/arch/mips/interrupts.hh | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src/arch/mips/interrupts.hh') 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 + #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(_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 -- cgit v1.2.3