Merged in new FastCPU stuff with existing code.
authorKevin Lim <ktlim@umich.edu>
Fri, 28 May 2004 15:41:52 +0000 (11:41 -0400)
committerKevin Lim <ktlim@umich.edu>
Fri, 28 May 2004 15:41:52 +0000 (11:41 -0400)
arch/alpha/ev5.cc:
    Added templatized processInterrupts() function that can be used by all of the CPU models.
arch/alpha/isa_desc:
    Merged in changes to remove CPU dependence.
arch/isa_parser.py:
    Merged in changes.
cpu/static_inst.hh:
    Includes FastCPU execute methods.

--HG--
extra : convert_revision : fcaa1dca35a9b316c73982bec8680df564f50bd8

1  2 
arch/alpha/ev5.cc
cpu/exec_context.cc
cpu/simple_cpu/simple_cpu.cc
cpu/static_inst.hh

index 96d54c54c66eadc6ae5bf34bf29c303447564c73,fe665abe6227a9cfeb6aa2cac4755b16911f37d4..e88f6d0a3a3dca0fe5f61af836e11160f52a1b85
@@@ -1,14 -1,17 +1,15 @@@
  /* $Id$ */
  
 -#include "targetarch/alpha_memory.hh"
 -#include "sim/annotation.hh"
 -#ifdef DEBUG
 -#include "sim/debug.hh"
 -#endif
 +#include "arch/alpha/alpha_memory.hh"
 +#include "arch/alpha/isa_traits.hh"
 +#include "arch/alpha/osfpal.hh"
 +#include "base/kgdb.h"
 +#include "base/remote_gdb.hh"
 +#include "base/stats/events.hh"
  #include "cpu/exec_context.hh"
+ #include "cpu/fast_cpu/fast_cpu.hh"
 +#include "sim/debug.hh"
  #include "sim/sim_events.hh"
 -#include "targetarch/isa_traits.hh"
 -#include "base/remote_gdb.hh"
 -#include "base/kgdb.h"        // for ALPHA_KENTRY_IF
 -#include "targetarch/osfpal.hh"
  
  #ifdef FULL_SYSTEM
  
Simple merge
Simple merge
index 088fdbdb7d936c56c81eb4e4b2e937aecd2bab36,131c5f756651b43c8e6ed4721d201b5306d1c52b..3eeefb6756684038aa5f803ae1297e98076b5112
  // forward declarations
  class ExecContext;
  class DynInst;
 -typedef DynInst FullCPUExecContext;
+ class FastCPU;
 -typedef FastCPU FastCPUExecContext;
  class SimpleCPU;
 -typedef SimpleCPU SimpleCPUExecContext;
  class SymbolTable;
  
  namespace Trace {
@@@ -310,8 -309,15 +311,13 @@@ class StaticInst : public StaticInstBas
      /**
       * Execute this instruction under SimpleCPU model.
       */
 -    virtual Fault execute(SimpleCPUExecContext *xc,
 -                          Trace::InstRecord *traceData) = 0;
 +    virtual Fault execute(SimpleCPU *xc, Trace::InstRecord *traceData) = 0;
  
 -    virtual Fault execute(FastCPUExecContext *xc,
 -                          Trace::InstRecord *traceData) = 0;
+     /**
+      * Execute this instruction under FastCPU model.
+      */
++    virtual Fault execute(FastCPU *xc, Trace::InstRecord *traceData) = 0;
      /**
       * Execute this instruction under detailed FullCPU model.
       */