• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/elements/genericProc/ssBackEnd/ssb_DMA_fakeInst.h

00001 // Copyright 2010 Sandia Corporation. Under the terms
00002 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
00003 // Government retains certain rights in this software.
00004 // 
00005 // Copyright (c) 2007-2010, Sandia Corporation
00006 // All rights reserved.
00007 // 
00008 // This file is part of the SST software package. For license
00009 // information, see the LICENSE file in the top level directory of the
00010 // distribution.
00011 
00012 
00013 #ifndef SSB_DMA_FAKEINST_H
00014 #define SSB_DMA_FAKEINST_H
00015 
00016 #include "instruction.h"
00017 
00018 //: "fake" DMA instruction
00019 //
00020 // Used to send memory requests to memory
00021 //
00022 //!SEC:NIC_Model
00023 class fakeDMAInstruction : public instruction {
00024   static int negOne;
00025   instType _op;
00026   simAddress _addr;
00027   simPID _pid;
00028   instState _state;
00029 public:
00030   fakeDMAInstruction() {;}
00031   void init(instType o, simAddress addr, simPID p) {
00032     _op = o; _addr = addr; _pid = p;
00033     _state = ISSUED;
00034   }
00035   void init(instType o, simAddress addr, simPID p, instState s) {
00036     init(o, addr, p); 
00037     _state = s;
00038   }
00039   bool fetch(processor*) {printf("Fake Instr!\n"); return 0;};
00040   bool issue(processor*) {printf("Fake Instr!\n"); return 0;};
00041   bool commit(processor*) {printf("Fake Instr!\n"); return 0;}; 
00042   simRegister NPC() const {printf("Fake Instr!\n"); return 0;};
00043   simRegister TPC() const {printf("Fake Instr!\n"); return 0;};
00044   bool issue(processor *p, const bool) {printf("Fake Instr!\n"); return 0;}; 
00045   bool commit(processor *p, const bool) {printf("Fake Instr!\n"); return 0;};
00046   int fu() const {printf("Fake Instr!\n"); return 0;};
00047   int specificOp() const {printf("Fake Instr!\n"); return 0;};
00048   const int* outDeps() const {printf("Fake Instr!\n"); return &negOne;};
00049   const int* inDeps() const {printf("Fake Instr!\n"); return &negOne;};
00050   bool isReturn() const {printf("Fake Instr!\n"); return 0;};
00051   instState state() const {return _state;}
00052   instType op() const {return _op;}
00053   simAddress PC() const {printf("Fake Instr!\n"); return 0;};
00054   simAddress memEA() const {return _addr;}
00055   exceptType exception() const {printf("Fake Instr!\n"); return NO_EXCEPTION;};
00056   simAddress moveToTarget() const {printf("Fake Instr!\n"); return 0;};
00057   simAddress febTarget() const {printf("Fake Instr!\n"); return 0;};
00058   simPID pid() const {return _pid;}
00059 };
00060 
00061 
00062 #endif

Generated on Fri Oct 22 2010 11:02:24 for SST by  doxygen 1.7.1