Searched refs:first (Results 1 - 25 of 175) sorted by relevance

1234567

/gem5/src/arch/sparc/
H A Dtlb_map.hh58 if (r.real == i->first.real &&
59 r.partitionId == i->first.partitionId &&
60 i->first.va < r.va + r.size &&
61 i->first.va+i->first.size >= r.va &&
62 (r.real || r.contextId == i->first.contextId))
71 if (r.real != i->first.real)
73 if (!r.real && r.contextId != i->first.contextId)
75 if (r.partitionId != i->first.partitionId)
77 if (i->first
[all...]
/gem5/src/base/
H A Dstr.cc71 string::size_type first = 0; local
77 if (ignore && last == first) {
78 while (last == first)
79 last = s.find_first_of(token, ++first);
82 if (first != s.size())
83 v.push_back(s.substr(first));
89 v.push_back(s.substr(first, last - first));
92 first = s.find_first_not_of(token, last + 1);
94 if (first
[all...]
H A Dbitunion.hh161 template<class Storage, int first, int last>
164 static_assert(first >= last,
171 return bits(storage, first, last);
177 replaceBits(storage, first, last, val);
181 template<class Storage, int first, int last>
184 static_assert(first >= last,
191 return sext<first - last + 1>(bits(storage, first, last));
197 replaceBits(storage, first, last, val);
209 template<int first, in
[all...]
H A Dstl_helpers.hh53 bool first; member in class:m5::stl_helpers::ContainerPrint
57 : out(out), first(true)
64 if (first)
65 first = false;
H A Dbitfield.hh66 * Extract the bitfield from position 'first' to 'last' (inclusive)
72 bits(T val, int first, int last) argument
74 int nbits = first - last + 1;
96 mbits(T val, int first, int last) argument
98 return val & (mask(first+1) & ~mask(last));
102 mask(int first, int last) argument
104 return mbits((uint64_t)-1LL, first, last);
120 * Return val with bits first to last set to bit_val
125 insertBits(T val, int first, int last, B bit_val) argument
128 T bmask = mask(first
150 replaceBits(T& val, int first, int last, B bit_val) argument
[all...]
H A Daddr_range_map.hh117 * iterator to the first entry which range intersects with the
140 return tree.insert(std::make_pair(r, d)).first;
242 // Check the cache first
245 if (cond(it->first)) {
254 if (next != end() && cond(next->first)) {
265 if (cond(i->first)) {
271 (--next)->first.mergesWith(i->first));
/gem5/src/systemc/tests/systemc/misc/v1.0/blv/
H A Dblv.cpp79 int first = (int) ( (double) W * ((double)rng.rand() / (double)0x7fffffff)); local
81 if(st.range(first,second).to_string()!=x.range(first,second).to_string())
82 cout<<"st.range("<<first<<","<<second<<")="<<st.range(first,second)<<
83 "; x.range("<<first<<","<<second<<")="<<x.range(first,second)<<"\n"<<
94 if(first>second)
95 Len = first-second;
97 Len = second-first;
[all...]
/gem5/src/mem/ruby/network/garnet2.0/
H A DVirtualChannel.cc41 m_vc_state.first = IDLE_;
55 m_vc_state.first = IDLE_;
65 m_vc_state.first = ACTIVE_;
74 assert(m_vc_state.first == ACTIVE_ && m_vc_state.second <= time);
/gem5/src/systemc/core/
H A Dpython.cc46 static PythonReadyFunc *first = nullptr; local
47 return first;
53 static PythonInitFunc *first = nullptr; local
54 return first;
/gem5/src/cpu/o3/
H A Dfree_list.hh81 addRegs(InputIt first, InputIt last) { argument
82 std::for_each(first, last, [this](typename InputIt::value_type& reg) {
199 void addRegs(InputIt first, InputIt last);
260 UnifiedFreeList::addRegs(InputIt first, InputIt last) argument
263 if (first == last)
266 panic_if((first != last) &&
267 first->classValue() != (last-1)->classValue(),
269 first->className(),
271 switch (first->classValue()) {
273 intList.addRegs(first, las
[all...]
/gem5/src/systemc/tests/include/
H A DSimpleLTInitiator2_DMI.h66 mDMIDataReads.first.set_start_address(1);
67 mDMIDataReads.first.set_end_address(0);
68 mDMIDataWrites.first.set_start_address(1);
69 mDMIDataWrites.first.set_end_address(0);
168 if((trans.get_address() < dmi_data.first.get_start_address()) ||
169 (trans.get_address() > dmi_data.first.get_end_address()) )
174 dmi_data.first);
179 (trans.get_address() >= dmi_data.first.get_start_address()) &&
180 (trans.get_address() <= dmi_data.first.get_end_address()) )
186 sc_dt::uint64 tmp = trans.get_address() - dmi_data.first
[all...]
H A DSimpleLTInitiator3_DMI.h65 mDMIDataReads.first.set_start_address(1);
66 mDMIDataReads.first.set_end_address(0);
67 mDMIDataWrites.first.set_start_address(1);
68 mDMIDataWrites.first.set_end_address(0);
166 if((trans.get_address() < dmi_data.first.get_start_address()) ||
167 (trans.get_address() > dmi_data.first.get_end_address()) )
172 dmi_data.first);
177 (trans.get_address() >= dmi_data.first.get_start_address()) &&
178 (trans.get_address() <= dmi_data.first.get_end_address()) )
185 sc_dt::uint64 tmp = trans.get_address() - dmi_data.first
[all...]
/gem5/src/dev/pci/
H A Dhost.cc142 dev_addr.first.bus, dev_addr.first.dev, dev_addr.first.func,
146 PciDevice *const pci_dev(getDevice(dev_addr.first));
165 dev_addr.first.bus, dev_addr.first.dev, dev_addr.first.func,
169 PciDevice *const pci_dev(getDevice(dev_addr.first));
172 dev_addr.first.bus, dev_addr.first
[all...]
/gem5/ext/pybind11/tests/
H A Dtest_enum.py147 first = m.ClassWithUnscopedEnum.EFirstMode
150 assert f(first) == 1
152 assert f(first) == f(first)
153 assert not f(first) != f(first)
155 assert f(first) != f(second)
156 assert not f(first) == f(second)
158 assert f(first) == int(f(first))
[all...]
H A Dtest_opaque_types.cpp46 bool first = true;
48 if (!first)
51 first = false;
/gem5/src/base/loader/
H A Dsymtab.hh56 // find first key *larger* than desired address
59 // if very first key is larger, we're out of luck
91 // address. For simplicity, just return the first one.
123 nextaddr = i->first;
125 symaddr = i->first;
140 symaddr = i->first;
153 nextaddr = i->first;
155 symaddr = i->first;
167 symaddr = i->first;
/gem5/src/gpu-compute/
H A Dschedule_stage.cc82 if (dispatchList->at(j).first) {
83 Wavefront *waveToMemPipe = dispatchList->at(j).first;
86 if ((i != j) && (dispatchList->at(i).first)) {
87 Wavefront *waveToExePipe = dispatchList->at(i).first;
111 dispatchList->at(i).first = nullptr;
135 dispatchList->at(j).first = waveToBeDispatched;
H A Dsimple_pool_manager.cc102 bool wrapAround = (region.first > region.second);
104 return region.second - region.first + 1;
106 return region.second + poolSize() - region.first + 1;
/gem5/ext/dsent/model/optical_graph/
H A DOpticalFilter.cc73 bool lower_match = (wavelengths_.first >= getDropWavelengths().first);
/gem5/src/systemc/tests/tlm/multi_sockets/
H A DsimpleAddressMap.h71 printf("key: %x value: %i \n", (unsigned int) ((pos->first+1)>>1)-1, pos->second);
73 printf("key: %x value: %i \n", (unsigned int) (pos->first>>1)-1, pos->second);
103 retval=(i->first>>1)-1;
115 retval=((i->first+1)>>1)-1;
/gem5/src/cpu/
H A Ddecode_cache.hh89 if (recent[0]->first == page_addr)
92 recent[1]->first == page_addr) {
110 update(pageMap.insert(to_insert).first);
/gem5/src/systemc/ext/utils/
H A Dsc_vector.hh537 bind(BindableIterator first, BindableIterator last) argument
539 return bind(first, last, this->begin());
544 bind(BindableIterator first, BindableIterator last, iterator from) argument
546 if (!size() || from == end() || first == last)
549 while (from != end() && first != last)
550 (*from++).bind(*first++);
570 operator () (ArgumentIterator first, ArgumentIterator last) argument
572 return (*this)(first, last, this->begin());
577 operator () (ArgumentIterator first, ArgumentIterator last, iterator from) argument
579 if (!size() || from == end() || first
704 bind(BindableIterator first, BindableIterator last) argument
711 bind(BindableIterator first, BindableIterator last, iterator from) argument
723 bind(BindableIterator first, BindableIterator last, typename sc_vector<T>::iterator from) argument
745 operator ()(ArgumentIterator first, ArgumentIterator last) argument
752 operator ()(ArgumentIterator first, ArgumentIterator last, iterator from) argument
764 operator ()(ArgumentIterator first, ArgumentIterator last, typename sc_vector<T>::iterator from) argument
[all...]
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-more-actions.h98 inline OutputIterator CopyElements(InputIterator first, argument
101 for (; first != last; ++first, ++output) {
102 *output = *first;
197 // Action SetArrayArgument<k>(first, last) copies the elements in
198 // source range [first, last) to the array pointed to by the k-th
204 AND_2_VALUE_PARAMS(first, last)) {
207 internal::CopyElements(first, last, ::testing::get<k>(args));
209 ::std::copy(first, last, ::testing::get<k>(args));
/gem5/ext/googletest/googletest/src/
H A Dgtest-typed-test.cc40 // Skips to the first non-space char in str. Returns an empty string if str
82 if (name == it->first) {
99 if (tests.count(it->first) == 0) {
100 errors << "You forgot to list test " << it->first << ".\n";
/gem5/src/systemc/tests/systemc/misc/synth/circle/
H A Dcirc48.h99 bool first; local
115 first = true;
120 while(first || (x != x_end) || (y != y_end)) { // Main_loop
121 first = false;

Completed in 23 milliseconds

1234567