diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-11-02 13:11:38 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-11-02 13:11:38 -0500 |
commit | ccaf80cc46fb86639ab5ee166baca08277f5450f (patch) | |
tree | ca8ebf28f3092a5f5d06748b31a8dda66d106ee3 /src/cpu/simple | |
parent | f763864786d7b95d46fba6f37e1e9ed601b60733 (diff) | |
download | gem5-ccaf80cc46fb86639ab5ee166baca08277f5450f.tar.xz |
Use ISA specific makeExtMI.
src/arch/alpha/utility.hh:
For now makeExtMI will be specific to the ISA.
--HG--
extra : convert_revision : 89959c6499efcc3df9301ad8ea039580764a1496
Diffstat (limited to 'src/cpu/simple')
-rw-r--r-- | src/cpu/simple/base.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index 47b3b938f..6a2c0bbe9 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -398,7 +398,11 @@ BaseSimpleCPU::preExecute() inst = gtoh(inst); //If we're not in the middle of a macro instruction if (!curMacroStaticInst) { +#if THE_ISA == ALPHA_ISA + StaticInstPtr instPtr = StaticInst::decode(makeExtMI(inst, thread->readPC())); +#elif THE_ISA == SPARC_ISA StaticInstPtr instPtr = StaticInst::decode(makeExtMI(inst, thread->getTC())); +#endif if (instPtr->isMacroOp()) { curMacroStaticInst = instPtr; curStaticInst = curMacroStaticInst-> |