00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef SSB_DMA_FAKEINST_H
00014 #define SSB_DMA_FAKEINST_H
00015
00016 #include "instruction.h"
00017
00018
00019
00020
00021
00022
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