Searched refs:size (Results 1 - 25 of 882) sorted by relevance

1234567891011>>

/gem5/src/unittest/
H A Dtokentest.cc57 if (tokens1.size()) {
58 int size = tokens1.size(); local
59 cout << "size = " << size << "\n"; local
60 for (i = 0; i < size; i++) {
61 cout << "'" << tokens1[i] << "' (" << tokens1[i].size()
62 << ")" << ((i == size - 1) ? "\n" : ", ");
71 if (tokens2.size()) {
72 int size local
73 cout << "size = " << size << "\\n"; local
[all...]
/gem5/src/mem/
H A Dsecure_port_proxy.cc43 SecurePortProxy::tryReadBlob(Addr addr, void *p, int size) const
45 readBlobPhys(addr, Request::SECURE, p, size);
50 SecurePortProxy::tryWriteBlob(Addr addr, const void *p, int size) const
52 writeBlobPhys(addr, Request::SECURE, p, size);
57 SecurePortProxy::tryMemsetBlob(Addr addr, uint8_t v, int size) const
59 memsetBlobPhys(addr, Request::SECURE, v, size);
H A Dsecure_port_proxy.hh75 bool tryReadBlob(Addr addr, void *p, int size) const override;
76 bool tryWriteBlob(Addr addr, const void *p, int size) const override;
77 bool tryMemsetBlob(Addr addr, uint8_t val, int size) const override;
H A Dport_proxy.cc46 void *p, int size) const
48 for (ChunkGenerator gen(addr, size, _cacheLineSize); !gen.done();
52 gen.addr(), gen.size(), flags, Request::funcMasterId);
57 p = static_cast<uint8_t *>(p) + gen.size();
63 const void *p, int size) const
65 for (ChunkGenerator gen(addr, size, _cacheLineSize); !gen.done();
69 gen.addr(), gen.size(), flags, Request::funcMasterId);
74 p = static_cast<const uint8_t *>(p) + gen.size();
80 uint8_t v, int size) const
83 uint8_t *buf = new uint8_t[size];
[all...]
H A Dfs_translating_port_proxy.hh91 bool tryReadBlob(Addr addr, void *p, int size) const override;
95 bool tryWriteBlob(Addr addr, const void *p, int size) const override;
98 * Fill size bytes starting at addr with byte value val.
100 bool tryMemsetBlob(Addr address, uint8_t v, int size) const override;
H A Dfs_translating_port_proxy.cc76 FSTranslatingPortProxy::tryReadBlob(Addr addr, void *p, int size) const
79 for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done();
87 PortProxy::readBlobPhys(paddr, 0, p, gen.size());
88 p = static_cast<uint8_t *>(p) + gen.size();
95 Addr addr, const void *p, int size) const
98 for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done();
106 PortProxy::writeBlobPhys(paddr, 0, p, gen.size());
107 p = static_cast<const uint8_t *>(p) + gen.size();
113 FSTranslatingPortProxy::tryMemsetBlob(Addr address, uint8_t v, int size) const
116 for (ChunkGenerator gen(address, size, TheIS
[all...]
/gem5/src/sim/
H A Dbacktrace_glibc.cc56 int size; local
58 size = backtrace(buffer, sizeof(buffer) / sizeof(*buffer));
61 backtrace_symbols_fd(buffer, size, STDERR_FILENO);
62 if (size == sizeof(buffer))
H A Darguments.cc45 Arguments::Data::alloc(size_t size) argument
47 char *buf = new char[size];
53 Arguments::getArg(uint16_t size, bool fp) argument
55 return TheISA::getArgument(tc, number, size, fp);
H A Dsyscall_emul_buf.hh52 * appropriate size and tracks the user-space address. The copyIn()
61 * Allocate a buffer of size 'size' representing the memory at
65 : addr(_addr), size(_size), bufPtr(new uint8_t[size])
70 memset(bufPtr, 0, size);
81 memproxy.readBlob(addr, bufPtr, size);
91 memproxy.writeBlob(addr, bufPtr, size);
97 const int size; ///< buffer size member in class:BaseBufferArg
[all...]
H A Dlinear_solver.hh62 assert(this->eq.size() == rhs.eq.size());
64 LinearEquation res(this->eq.size() - 1);
66 for (unsigned i = 0; i < res.eq.size(); i++)
82 assert(unkw < eq.size());
89 for (unsigned i = 0; i < eq.size(); i++) {
93 if (i != eq.size() - 1)
101 unsigned cnt() const { return eq.size() - 1; }
117 assert(eq < matrix.size());
/gem5/src/cpu/o3/
H A Dderiv.cc45 if (workload.size() > numThreads) {
47 workload.size(), numThreads);
48 } else if (workload.size() == 0) {
55 (numThreads >= workload.size()) ? numThreads : workload.size();
/gem5/src/mem/ruby/common/
H A DSubBlock.cc35 SubBlock::SubBlock(Addr addr, int size) argument
38 resize(size);
39 for (int i = 0; i < size; i++) {
47 int size = getSize(); local
48 assert(size > 0);
50 for (int i = 0; i < size; i++) {
58 int size = getSize(); local
59 assert(size > 0);
61 for (int i = 0; i < size; i++) {
/gem5/ext/libelf/
H A Delf_rawfile.c36 size_t size; local
38 size = e ? e->e_rawsize : 0;
47 *sz = size;
/gem5/src/gpu-compute/
H A Dsimple_pool_manager.cc41 // a request for "size" elements
43 SimplePoolManager::minAllocatedElements(uint32_t size) argument
45 fatal_if(size <= 0 || size > poolSize(), "Illegal VGPR region size=%d\n",
46 size);
48 return size % minAllocation() > 0 ?
49 (minAllocation() - (size % minAllocation())) + size : size;
67 canAllocate(uint32_t numRegions, uint32_t size) argument
85 allocateRegion(const uint32_t size, uint32_t *reservedPoolSize) argument
[all...]
/gem5/src/arch/alpha/
H A DAlphaTLB.py38 size = Param.Int("TLB size") variable in class:AlphaTLB
41 size = 64 variable in class:AlphaDTB
44 size = 48 variable in class:AlphaITB
/gem5/src/systemc/tests/systemc/utils/sc_vector/test08/
H A Dtest08.cpp46 sc_assert( ev_vec.size() == 1 );
48 sc_assert( ev_vec.get_elements().size() == 0 );
52 sc_assert( foo_vec.size() == 1 );
53 sc_assert( sc_assemble_vector( foo_vec, &foo::name ).size() == 1 );
56 .get_elements().size() == 0 );
/gem5/ext/systemc/src/sysc/kernel/
H A Dsc_module_registry.cpp58 for( int i = size() - 1; i >= 0; -- i ) {
73 for( i = 0; i < size(); ++ i ) {
78 if( i == size() ) {
83 m_module_vec[i] = m_module_vec[size() - 1];
84 m_module_vec.resize(m_module_vec.size()-1);
105 if( size() == m_construction_done )
109 for( ; m_construction_done < size(); ++m_construction_done ) {
121 for( int i = 0; i < size(); ++ i ) {
131 for( int i = 0; i < size(); ++ i ) {
141 for( int i = 0; i < size();
[all...]
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-more-matchers.h47 // support both size() and empty(), which all STL-like containers provide.
52 *result_listener << "whose size is " << arg.size();
/gem5/src/mem/ruby/structures/
H A DReplacementPolicy.py39 block_size = Param.Int(Parent.cache_line_size, "block size in bytes")
41 size = Param.MemorySize(Parent.size, "capacity in bytes") variable in class:ReplacementPolicy
/gem5/ext/systemc/src/sysc/datatypes/fx/
H A Dscfx_mant.cpp66 next_pow2_index( std::size_t size )
68 int index = scfx_find_msb( size );
70 if( ~ (1 << index) & size ) index ++;
72 // one slot size, as all the slots are 2x in size.
83 scfx_mant::alloc_word( std::size_t size )
87 int slot_index = next_pow2_index( size );
110 scfx_mant::free_word( word* array, std::size_t size )
112 if( array && size )
114 int slot_index = next_pow2_index( size );
[all...]
/gem5/src/systemc/dt/fx/
H A Dscfx_mant.cc65 next_pow2_index(std::size_t size) argument
67 unsigned index = scfx_find_msb(size);
69 if (~(UINT64_ONE << index) & size)
72 // one slot size, as all the slots are 2x in size.
82 scfx_mant::alloc_word(std::size_t size) argument
86 unsigned slot_index = next_pow2_index(size);
106 scfx_mant::free_word(word *array, std::size_t size) argument
108 if (array && size) {
109 int slot_index = next_pow2_index(size);
[all...]
/gem5/src/dev/mips/
H A Dmalta_cchip.cc108 uint64_t size = sys->threadContexts.size(); local
109 assert(size <= Malta::Max_CPUs);
111 for (int i=0; i < size; i++) {
123 uint64_t size = sys->threadContexts.size(); local
124 assert(size <= Malta::Max_CPUs);
126 for (int i=0; i < size; i++) {
/gem5/src/arch/x86/insts/
H A Dstatic_inst.hh100 void printReg(std::ostream &os, RegId reg, int size) const;
101 void printSrcReg(std::ostream &os, int reg, int size) const;
102 void printDestReg(std::ostream &os, int reg, int size) const;
107 inline uint64_t merge(uint64_t into, uint64_t val, int size) const
115 switch(size)
132 panic("Tried to merge with unrecognized size %d.\n", size);
137 inline uint64_t pick(uint64_t from, int idx, int size) const
140 DPRINTF(X86, "Picking with size %d\n", size);
[all...]
/gem5/src/dev/virtio/
H A Dblock.cc53 config.capacity = image.size();
72 size_t off_data, size_t size)
74 std::vector<uint8_t> data(size);
77 DPRINTF(VIOBlock, "Read request starting @ sector %i (size: %i)\n",
78 sector, size);
80 if (size % SectorSize != 0)
81 panic("Unexpected request/sector size relationship\n");
83 for (Addr offset = 0; offset < size; offset += SectorSize) {
91 desc_chain->chainWrite(off_data, &data[0], size);
98 size_t off_data, size_t size)
71 read(const BlkRequest &req, VirtDescriptor *desc_chain, size_t off_data, size_t size) argument
97 write(const BlkRequest &req, VirtDescriptor *desc_chain, size_t off_data, size_t size) argument
[all...]
/gem5/src/mem/ruby/network/garnet2.0/
H A DflitBuffer.cc49 return (m_buffer.size() == 0);
55 if (m_buffer.size() != 0 ) {
66 out << "[flitBuffer: " << m_buffer.size() << "] " << std::endl;
72 return (m_buffer.size() >= max_size);
86 for (unsigned int i = 0; i < m_buffer.size(); ++i) {

Completed in 20 milliseconds

1234567891011>>