Searched refs:index (Results 126 - 150 of 275) sorted by relevance

1234567891011

/gem5/src/arch/sparc/
H A Dprocess.cc451 for (int index = 16; index < 32; index++) {
452 uint32_t regVal = tc->readIntReg(index);
455 sp + (index - 16) * 4, (uint8_t *)&regVal, 4)) {
486 for (int index = 16; index < 32; index++) {
487 RegVal regVal = tc->readIntReg(index);
490 sp + 2047 + (index
[all...]
/gem5/src/dev/net/
H A Dsinic.cc155 Device::prepareIO(ContextID cpu, int index) argument
158 if (index > size)
160 index, size);
168 Device::prepareRead(ContextID cpu, int index) argument
171 prepareIO(cpu, index);
173 VirtualReg &vnic = virtualRegs[index];
209 Device::prepareWrite(ContextID cpu, int index) argument
211 prepareIO(cpu, index);
225 Addr index = daddr >> Regs::VirtualShift; local
230 cpu, index, dadd
310 Addr index = daddr >> Regs::VirtualShift; local
[all...]
/gem5/src/mem/cache/compressors/
H A Dbdi.cc78 BDI::BDICompDataZeros::access(const int index) const
103 BDI::BDICompDataRep::access(const int index) const
130 BDI::BDICompDataUncompressed::access(const int index) const
132 return _data[index];
260 BDI::BDICompDataBaseDelta<TB, TD>::access(const int index) const
263 // corresponding to the given 64-bit-array index
278 for (int delta_index = size_diff * (index + 1) - 1;
279 delta_index >= (int)(size_diff * index); delta_index--) {
/gem5/util/stats/
H A Dinfo.py122 def __init__(self, proxy, index):
124 self.index = index
133 return value(self.proxy, run, self.index)
142 def __value__(self, run, index):
145 def __getitem__(self, index):
146 return VectorItemProxy(self, index)
159 def __value__(self, run, index):
160 return self.constant[index]
227 def __vectorvalue__(self, run, index)
[all...]
/gem5/src/dev/virtio/
H A Dbase.cc275 _last_avail, avail.header.index,
277 if (_last_avail == avail.header.index)
280 VirtDescriptor::Index index(avail.ring[_last_avail % used.ring.size()]);
283 VirtDescriptor *d(&descriptors[index]);
294 desc->index(), len, used.header.index);
296 struct vring_used_elem &e(used.ring[used.header.index % used.ring.size()]);
297 e.id = desc->index();
299 used.header.index += 1;
/gem5/src/cpu/pred/
H A Dtage_sc_l.cc49 TAGE_SC_L_LoopPredictor::calcConf(int index) const
51 return LoopPredictor::calcConf(index) ||
52 (ltable[index].confidence * ltable[index].numIter > 128);
182 int index; local
188 index = shortPc ^
193 index = gindex_ext(index, bank);
195 return (index & ((ULL(1) << (logTagTableSizes[bank])) - 1));
H A Dmultiperspective_perceptron_tage.hh90 bool calcConf(int index) const override;
136 int index = (historyStackPointer + 1) % historyStack.size(); local
137 historyStack[index] = historyStack[historyStackPointer];
138 historyStackPointer = index;
215 const HistorySpec &spec, int index) const;
H A Dmultiperspective_perceptron_tage.cc252 MPP_LoopPredictor::calcConf(int index) const
254 return LoopPredictor::calcConf(index) ||
255 (ltable[index].confidence * ltable[index].numIter > 128);
341 int64_t index = gIndex(branch_pc, bhist, logs, nbr, i); local
342 percsum += (2 * tab[i][index] + 1);
343 ctrUpdate(tab[i][index], taken, scCountersWidth - (i < (nbr - 1)));
412 const HistorySpec &spec, int index) const
415 unsigned int g = spec.getHash(tid, bi.getPC(), bi.getPC() >> 2, index);
422 if ((1ull << index)
[all...]
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h297 PyObject *p = PyList_GetItem(obj, index);
553 static object get(handle obj, size_t index) { argument
554 PyObject *result = PySequence_GetItem(obj.ptr(), static_cast<ssize_t>(index));
559 static void set(handle obj, size_t index, handle val) { argument
561 if (PySequence_SetItem(obj.ptr(), static_cast<ssize_t>(index), val.ptr()) != 0) {
570 static object get(handle obj, size_t index) { argument
571 PyObject *result = PyList_GetItem(obj.ptr(), static_cast<ssize_t>(index));
576 static void set(handle obj, size_t index, handle val) { argument
578 if (PyList_SetItem(obj.ptr(), static_cast<ssize_t>(index), val.inc_ref().ptr()) != 0) {
587 static object get(handle obj, size_t index) { argument
593 set(handle obj, size_t index, handle val) argument
615 generic_iterator(handle seq, ssize_t index) argument
680 sequence_slow_readwrite(handle obj, ssize_t index) argument
691 ssize_t index; member in class:sequence_slow_readwrite
1268 insert(size_t index, T &&val) const argument
[all...]
H A Dnumpy.h328 ssize_t byte_offset_unsafe(const Strides &strides, ssize_t i, Ix... index) { argument
329 return i * strides[Dim] + byte_offset_unsafe<Dim + 1>(strides, index...);
369 template <typename... Ix> const T &operator()(Ix... index) const {
372 return *reinterpret_cast<const T *>(data_ + byte_offset_unsafe(strides_, ssize_t(index)...));
376 * is to a 1-dimensional array. When present, this is exactly equivalent to `obj(index)`.
379 const T &operator[](ssize_t index) const { return operator()(index); }
418 template <typename... Ix> T& operator()(Ix... index) {
421 return const_cast<T &>(ConstBase::operator()(index...));
424 * Mutable, unchecked access data at the given index; thi
[all...]
/gem5/system/alpha/console/
H A Dprintf.c53 PutStringReverse(const char *s, int index) argument
55 while (index-- > 0)
56 PutChar(s[index]);
/gem5/src/systemc/ext/utils/
H A Dsc_vector.hh191 void checkIndex(size_type index) const;
469 create_element(const char *_name, size_type index) argument
494 T &operator [] (size_type index) { return *static_cast<T *>(objs[index]); } argument
496 operator [] (size_type index) const
498 return *static_cast<const T *>(objs[index]);
502 at(size_type index) argument
504 this->checkIndex(index);
505 return *static_cast<T *>(objs[index]);
508 at(size_type index) cons
[all...]
/gem5/src/arch/alpha/
H A Dtlb.cc187 int index = i->second; local
188 TlbEntry *entry = &table[index];
259 int index; local
260 while ((index = i->second) != nlu) {
261 if (table[index].tag != oldvpn)
299 int index = i->second; local
300 TlbEntry *entry = &table[index];
309 DPRINTF(TLB, "flush @%d: %#x -> %#x\n", index,
328 int index = i->second; local
329 TlbEntry *entry = &table[index];
591 TLB::index(bool advance) function in class:AlphaISA::TLB
[all...]
/gem5/src/dev/arm/
H A Dpl111.cc192 int index; local
193 index = (daddr - CrsrImage) >> 2;
194 data= cursorImage[index];
198 int index; local
199 index = (daddr - LcdPalette) >> 2;
200 data = lcdPalette[index];
365 int index; local
366 index = (daddr - CrsrImage) >> 2;
367 cursorImage[index] = data;
371 int index; local
[all...]
H A Dflash_device.hh144 void clearUnknownPages(uint32_t index);
147 bool getUnknownPages(uint32_t index);
/gem5/src/base/loader/
H A Dcoff_sym.h75 * All arrays and index's are 0 based.
103 coff_int idnMax; /* max index into dense number table */
106 coff_int ioptMax; /* max index into optimization symbol entries */
108 coff_int issMax; /* max index into local strings */
109 coff_int issExtMax; /* max index into external strings */
112 coff_int iextMax; /* max index into external symbols */
164 coff_int rfdBase; /* index into the file indirect table */
243 coff_int iss; /* index into String Space of name */
247 unsigned index : 20; /* index int member in struct:ecoff_sym
309 unsigned index : 20; /* index int sym/aux/iss tables */ member in struct:__anon19
319 coff_uint index; /* index int sym/aux/iss tables */ member in struct:__anon20
[all...]
/gem5/ext/pybind11/tests/
H A Dtest_numpy_array.cpp82 template<typename... Ix> arr data(const arr& a, Ix... index) { argument
83 return arr(a.nbytes() - a.offset_at(index...), (const uint8_t *) a.data(index...));
86 template<typename... Ix> arr data_t(const arr_t& a, Ix... index) { argument
87 return arr(a.size() - a.index_at(index...), a.data(index...));
90 template<typename... Ix> arr& mutate_data(arr& a, Ix... index) { argument
91 auto ptr = (uint8_t *) a.mutable_data(index...);
92 for (ssize_t i = 0; i < a.nbytes() - a.offset_at(index...); i++)
97 template<typename... Ix> arr_t& mutate_data_t(arr_t& a, Ix... index) { argument
[all...]
/gem5/src/arch/riscv/
H A Dtlb.cc88 int index = i->second; local
89 PTE *pte = &table[index];
126 int index = i->second; local
127 PTE *pte = &table[index];
136 Ind = index;
164 warn("Attempted to write at index (%d) beyond TLB size (%d)",
393 TLB::index(bool advance)
/gem5/src/arch/mips/
H A Dmt.hh67 return otc->readIntReg(reg.index());
70 return otc->readFloatReg(reg.index());
73 return otc->readMiscReg(reg.index());
91 return otc->setIntReg(reg.index(), val);
94 return otc->setFloatReg(reg.index(), val);
97 return otc->setMiscReg(reg.index(), val);
H A Dinterrupts.cc71 Interrupts::post(int int_num, int index) argument
89 Interrupts::clear(int int_num, int index) argument
/gem5/util/style/
H A Dfile_types.py137 index = len(dirs) - 1
140 del dirs[index - i]
/gem5/src/cpu/minor/
H A Dexec_context.hh148 return thread.readIntReg(reg.index());
156 return thread.readFloatReg(reg.index());
204 thread.setIntReg(reg.index(), val);
212 thread.setFloatReg(reg.index(), val);
378 return thread.readMiscReg(reg.index());
386 return thread.setMiscReg(reg.index(), val);
420 return thread.readCCReg(reg.index());
428 thread.setCCReg(reg.index(), val);
/gem5/src/cpu/simple/
H A Dexec_context.hh183 return thread->readIntReg(reg.index());
193 thread->setIntReg(reg.index(), val);
204 return thread->readFloatReg(reg.index());
215 thread->setFloatReg(reg.index(), val);
373 return thread->readCCReg(reg.index());
382 thread->setCCReg(reg.index(), val);
391 return thread->readMiscReg(reg.index());
400 thread->setMiscReg(reg.index(), val);
/gem5/src/arch/x86/insts/
H A Dstatic_inst.cc135 RegIndex reg_idx = reg.index();
232 uint8_t scale, RegIndex index, RegIndex base,
242 if (scale != 0 && index != ZeroReg)
246 printReg(os, InstRegIndex(index), addressSize);
231 printMem(std::ostream &os, uint8_t segment, uint8_t scale, RegIndex index, RegIndex base, uint64_t disp, uint8_t addressSize, bool rip) const argument
/gem5/src/sim/
H A Deventq.cc64 getEventQueue(uint32_t index) argument
66 while (numMainEventQueues <= index) {
69 new EventQueue(csprintf("MainEventQueue-%d", index)));
72 return mainEventQueue[index];

Completed in 52 milliseconds

1234567891011