cpu.hh (8832:247fee427324) | cpu.hh (8887:20ea02da9c53) |
---|---|
1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 98 unchanged lines hidden (view full) --- 107 virtual ~CheckerCPU(); 108 109 std::vector<Process*> workload; 110 111 void setSystem(System *system); 112 113 System *systemPtr; 114 | 1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 98 unchanged lines hidden (view full) --- 107 virtual ~CheckerCPU(); 108 109 std::vector<Process*> workload; 110 111 void setSystem(System *system); 112 113 System *systemPtr; 114 |
115 void setIcachePort(Port *icache_port); | 115 void setIcachePort(CpuPort *icache_port); |
116 | 116 |
117 Port *icachePort; | 117 CpuPort *icachePort; |
118 | 118 |
119 void setDcachePort(Port *dcache_port); | 119 void setDcachePort(CpuPort *dcache_port); |
120 | 120 |
121 Port *dcachePort; | 121 CpuPort *dcachePort; |
122 | 122 |
123 CpuPort &getDataPort() 124 { 125 panic("Not supported on checker!"); 126 return *dcachePort; 127 } 128 129 CpuPort &getInstPort() 130 { 131 panic("Not supported on checker!"); 132 return *icachePort; 133 } 134 |
|
123 virtual Port *getPort(const std::string &name, int idx) 124 { 125 panic("Not supported on checker!"); 126 return NULL; 127 } 128 129 public: 130 // Primary thread being run. --- 32 unchanged lines hidden (view full) --- 163 Counter numInst; 164 Counter startNumInst; 165 166 std::queue<int> miscRegIdxs; 167 168 TheISA::TLB* getITBPtr() { return itb; } 169 TheISA::TLB* getDTBPtr() { return dtb; } 170 | 135 virtual Port *getPort(const std::string &name, int idx) 136 { 137 panic("Not supported on checker!"); 138 return NULL; 139 } 140 141 public: 142 // Primary thread being run. --- 32 unchanged lines hidden (view full) --- 175 Counter numInst; 176 Counter startNumInst; 177 178 std::queue<int> miscRegIdxs; 179 180 TheISA::TLB* getITBPtr() { return itb; } 181 TheISA::TLB* getDTBPtr() { return dtb; } 182 |
171 virtual Counter totalInstructions() const | 183 virtual Counter totalInsts() const |
172 { 173 return 0; 174 } 175 | 184 { 185 return 0; 186 } 187 |
188 virtual Counter totalOps() const 189 { 190 return 0; 191 } 192 |
|
176 // number of simulated loads 177 Counter numLoad; 178 Counter startNumLoad; 179 180 virtual void serialize(std::ostream &os); 181 virtual void unserialize(Checkpoint *cp, const std::string §ion); 182 183 // These functions are only used in CPU models that split --- 236 unchanged lines hidden --- | 193 // number of simulated loads 194 Counter numLoad; 195 Counter startNumLoad; 196 197 virtual void serialize(std::ostream &os); 198 virtual void unserialize(Checkpoint *cp, const std::string §ion); 199 200 // These functions are only used in CPU models that split --- 236 unchanged lines hidden --- |