diff options
Diffstat (limited to 'src/arch/alpha/isa.cc')
-rw-r--r-- | src/arch/alpha/isa.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/arch/alpha/isa.cc b/src/arch/alpha/isa.cc index 5fd34a492..f5660e4f2 100644 --- a/src/arch/alpha/isa.cc +++ b/src/arch/alpha/isa.cc @@ -33,11 +33,25 @@ #include "arch/alpha/isa.hh" #include "base/misc.hh" #include "cpu/thread_context.hh" +#include "params/AlphaISA.hh" #include "sim/serialize.hh" namespace AlphaISA { +ISA::ISA(Params *p) + : SimObject(p) +{ + clear(); + initializeIprTable(); +} + +const AlphaISAParams * +ISA::params() const +{ + return dynamic_cast<const Params *>(_params); +} + void ISA::serialize(EventManager *em, std::ostream &os) { @@ -151,3 +165,9 @@ ISA::setMiscReg(int misc_reg, const MiscReg &val, ThreadContext *tc, } } + +AlphaISA::ISA * +AlphaISAParams::create() +{ + return new AlphaISA::ISA(this); +} |