diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-11-02 20:43:39 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-11-02 20:43:39 -0500 |
commit | d76445f9f37896227f1d4e61348a418aa7ab6371 (patch) | |
tree | 4191113d095ceeee9dd817558e3193261da9c7f6 /arch/alpha/isa_desc | |
parent | f0e2c80829a8cbe42fbeaf6412ef3df5adb448f5 (diff) | |
download | gem5-d76445f9f37896227f1d4e61348a418aa7ab6371.tar.xz |
Move the m5 pseudo instructions into their own file
arch/alpha/isa_desc:
Move the pseudo instructions out of the isa_desc, into their own
file and call out to them when they're to be accessed
sim/sim_events.cc:
sim/sim_events.hh:
sim/sim_exit.hh:
move SimExit to sim_exit.cc
--HG--
extra : convert_revision : 1c393adb1c18bd0fef065057d7f4e9cf60ac4197
Diffstat (limited to 'arch/alpha/isa_desc')
-rw-r--r-- | arch/alpha/isa_desc | 63 |
1 files changed, 14 insertions, 49 deletions
diff --git a/arch/alpha/isa_desc b/arch/alpha/isa_desc index e34739b86..ec9fd183a 100644 --- a/arch/alpha/isa_desc +++ b/arch/alpha/isa_desc @@ -28,12 +28,11 @@ let {{ #include "cpu/simple_cpu/simple_cpu.hh" #include "cpu/static_inst.hh" #include "sim/annotation.hh" -#include "sim/serialize.hh" -#include "sim/sim_events.hh" -#include "sim/sim_stats.hh" +#include "sim/sim_exit.hh" #ifdef FULL_SYSTEM -#include "targetarch/ev5.hh" +#include "arch/alpha/ev5.hh" +#include "arch/alpha/pseudo_inst.hh" #endif namespace AlphaISA; @@ -2429,62 +2428,28 @@ decode OPCODE default Unknown::unknown() { }}, No_OpClass); 0x20: m5exit_old({{ if (!xc->misspeculating()) - SimExit(curTick, "m5_exit_old instruction encountered"); + AlphaPseudo::m5exit_old(xc); }}, No_OpClass); 0x21: m5exit({{ - if (!xc->misspeculating()) { - Tick delay = xc->regs.intRegFile[16]; - Tick when = curTick + NS2Ticks(delay); - SimExit(when, "m5_exit instruction encountered"); - } + if (!xc->misspeculating()) + AlphaPseudo::m5exit(xc); }}, No_OpClass); 0x30: initparam({{ Ra = xc->cpu->system->init_param; }}); 0x40: resetstats({{ - if (!xc->misspeculating()) { - using namespace Statistics; - Tick delay = xc->regs.intRegFile[16]; - Tick period = xc->regs.intRegFile[17]; - - Tick when = curTick + NS2Ticks(delay); - Tick repeat = NS2Ticks(period); - - SetupEvent(Reset, when, repeat); - } + if (!xc->misspeculating()) + AlphaPseudo::resetstats(xc); }}); 0x41: dumpstats({{ - if (!xc->misspeculating()) { - using namespace Statistics; - Tick delay = xc->regs.intRegFile[16]; - Tick period = xc->regs.intRegFile[17]; - - Tick when = curTick + NS2Ticks(delay); - Tick repeat = NS2Ticks(period); - - SetupEvent(Dump, when, repeat); - } + if (!xc->misspeculating()) + AlphaPseudo::dumpstats(xc); }}); 0x42: dumpresetstats({{ - if (!xc->misspeculating()) { - using namespace Statistics; - Tick delay = xc->regs.intRegFile[16]; - Tick period = xc->regs.intRegFile[17]; - - Tick when = curTick + NS2Ticks(delay); - Tick repeat = NS2Ticks(period); - - SetupEvent(Dump|Reset, when, repeat); - } + if (!xc->misspeculating()) + AlphaPseudo::dumpresetstats(xc); }}); 0x43: m5checkpoint({{ - if (!xc->misspeculating()) { - Tick delay = xc->regs.intRegFile[16]; - Tick period = xc->regs.intRegFile[17]; - - Tick when = curTick + NS2Ticks(delay); - Tick repeat = NS2Ticks(period); - - SetupCheckpoint(when, repeat); - } + if (!xc->misspeculating()) + AlphaPseudo::m5checkpoint(xc); }}); } } |