/gem5/ext/libelf/ |
H A D | elf_rand.c | 34 elf_rand(Elf *ar, off_t offset) argument 39 (offset & 1) || offset < SARMAG || 40 offset + sizeof(struct ar_hdr) >= ar->e_rawsize) { 45 arh = (struct ar_hdr *) (ar->e_rawfile + offset); 53 ar->e_u.e_ar.e_next = offset; 55 return (offset);
|
H A D | elf_strptr.c | 39 * Convert an ELF section#,offset pair to a string pointer. 43 elf_strptr(Elf *e, size_t scndx, size_t offset) argument 60 offset >= shdr.sh_size) { 71 * an offset to a `char *' address using the `d_off' 84 if (offset >= d->d_off && 85 offset < d->d_off + d->d_size) 86 return ((char *) d->d_buf + offset - d->d_off); 96 while ((d = elf_getdata(s, d)) != NULL && count <= offset) { 114 if (offset < count) { 115 /* offset start [all...] |
/gem5/ext/libfdt/ |
H A D | fdt.c | 56 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) argument 61 if (((offset + len) < offset) 62 || ((offset + len) > fdt_size_dt_struct(fdt))) 65 p = _fdt_offset_ptr(fdt, offset); 76 int offset = startoffset; local 80 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); 84 offset += FDT_TAGSIZE; 91 p = fdt_offset_ptr(fdt, offset++, 1); 98 lenp = fdt_offset_ptr(fdt, offset, sizeo 122 _fdt_check_node_offset(const void *fdt, int offset) argument 131 _fdt_check_prop_offset(const void *fdt, int offset) argument 140 fdt_next_node(const void *fdt, int offset, int *depth) argument [all...] |
H A D | fdt_ro.c | 37 static int _fdt_nodename_eq(const void *fdt, int offset, argument 40 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); 87 static int _nextprop(const void *fdt, int offset) argument 93 tag = fdt_next_tag(fdt, offset, &nextoffset); 103 return offset; 105 offset = nextoffset; 111 int fdt_subnode_offset_namelen(const void *fdt, int offset, argument 119 (offset >= 0) && (depth >= 0); 120 offset = fdt_next_node(fdt, offset, 140 int offset = 0; local 202 int offset; local 210 fdt_next_property_offset(const void *fdt, int offset) argument 218 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) argument 239 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) argument 283 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) argument 339 int offset, depth, namelen; local 391 int offset, depth; local 449 int offset; local 474 int offset; local 533 int offset, err; local [all...] |
H A D | libfdt_internal.h | 46 int _fdt_check_node_offset(const void *fdt, int offset); 47 int _fdt_check_prop_offset(const void *fdt, int offset); 51 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) argument 53 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; 56 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) argument 58 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset);
|
H A D | fdt_sw.c | 54 int offset = fdt_size_dt_struct(fdt); local 60 if ((offset + len < offset) || (offset + len > spaceleft)) 63 fdt_set_size_dt_struct(fdt, offset + len); 64 return _fdt_offset_ptr_w(fdt, offset); 92 int offset; local 99 offset = fdt_off_dt_struct(fdt); 100 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) 103 re = (struct fdt_reserve_entry *)((char *)fdt + offset); 153 int struct_top, offset; local 198 int offset, nextoffset; local [all...] |
H A D | fdt_wip.c | 76 int _fdt_node_end_offset(void *fdt, int offset) argument 80 while ((offset >= 0) && (depth >= 0)) 81 offset = fdt_next_node(fdt, offset, &depth); 83 return offset;
|
/gem5/src/arch/generic/linux/ |
H A D | threadinfo.hh | 99 int32_t offset = 0; local 100 if (!get_data("thread_info_task", offset)) 106 return tc->getVirtProxy().read<Addr>(thread_info + offset); 111 int32_t offset = 0; local 112 if (!get_data("task_struct_pid", offset)) 115 return tc->getVirtProxy().read<int32_t>(task_struct + offset); 127 int32_t offset = 0; local 128 if (!get_data("task_struct_tgid", offset)) 131 return tc->getVirtProxy().read<int32_t>(task_struct + offset); 143 int32_t offset local 161 int32_t offset = 0; local 185 int32_t offset; local [all...] |
/gem5/src/base/loader/ |
H A D | dtb_object.cc | 107 int offset = fdt_path_offset((void*)fdt_buf_w_space, full_path_node_name); local 108 if (offset < 0) { 110 offset = fdt_path_offset((void*)fdt_buf_w_space, root_path); 111 offset = fdt_add_subnode((void*)fdt_buf_w_space, offset, node_name); 112 // if we successfully add the subnode, get the offset 113 if (offset >= 0) 114 offset = fdt_path_offset((void*)fdt_buf_w_space, full_path_node_name); 116 if (offset < 0) { 118 "device tree, errno: %d\n", offset); 160 int offset = fdt_path_offset(fd, "/cpus/cpu@0"); local 175 loadAllSymbols(SymbolTable *symtab, Addr base, Addr offset, Addr addr_mask) argument 182 loadGlobalSymbols(SymbolTable *symtab, Addr base, Addr offset, Addr addr_mask) argument 190 loadLocalSymbols(SymbolTable *symtab, Addr base, Addr offset, Addr addr_mask) argument [all...] |
H A D | raw_object.hh | 45 Addr offset = 0, Addr addr_mask = maxAddr); 47 Addr offset = 0, 50 Addr offset = 0, Addr addr_mask = maxAddr);
|
/gem5/src/dev/x86/ |
H A D | i8254.cc | 55 Addr offset = pkt->getAddr() - pioAddr; local 56 if (offset < 3) { 57 pkt->setLE(pit.readCounter(offset)); 58 } else if (offset == 3) { 71 Addr offset = pkt->getAddr() - pioAddr; local 72 if (offset < 3) { 73 pit.writeCounter(offset, pkt->getLE<uint8_t>()); 74 } else if (offset == 3) {
|
H A D | i82094aa.cc | 100 Addr offset = pkt->getAddr() - pioAddr; local 101 switch(offset) { 119 Addr offset = pkt->getAddr() - pioAddr; local 120 switch(offset) { 135 X86ISA::I82094AA::writeReg(uint8_t offset, uint32_t value) argument 137 if (offset == 0x0) { 139 } else if (offset == 0x1) { 141 } else if (offset == 0x2) { 143 } else if (offset >= 0x10 && offset < 160 readReg(uint8_t offset) argument [all...] |
/gem5/src/dev/arm/ |
H A D | vio_mmio.cc | 66 const Addr offset = pkt->getAddr() - pioAddr; local 69 DPRINTF(VIOIface, "Reading %u bytes @ 0x%x:\n", size, offset); 72 if (offset >= OFF_CONFIG) { 73 vio.readConfig(pkt, offset - OFF_CONFIG); 79 const uint32_t value = read(offset); 88 MmioVirtIO::read(Addr offset) argument 90 switch(offset) { 153 offset); 157 panic("Unhandled read offset (0x%x)\n", offset); 164 const Addr offset = pkt->getAddr() - pioAddr; local 183 write(Addr offset, uint32_t value) argument [all...] |
/gem5/src/mem/ruby/common/ |
H A D | DataBlock.hh | 62 const uint8_t *getData(int offset, int len) const; 63 uint8_t *getDataMod(int offset); 65 void setData(const uint8_t *data, int offset, int len); 66 void copyPartial(const DataBlock &dblk, int offset, int len); 102 DataBlock::copyPartial(const DataBlock & dblk, int offset, int len) argument 104 setData(&dblk.m_data[offset], offset, len);
|
H A D | SubBlock.cc | 49 int offset = getOffset(m_address); local 51 this->setByte(i, data.getByte(offset + i)); 60 int offset = getOffset(m_address); local 63 data.setByte(offset + i, this->getByte(i));
|
H A D | DataBlock.cc | 95 DataBlock::getData(int offset, int len) const argument 97 assert(offset + len <= RubySystem::getBlockSizeBytes()); 98 return &m_data[offset]; 102 DataBlock::getDataMod(int offset) argument 104 return &m_data[offset]; 108 DataBlock::setData(const uint8_t *data, int offset, int len) argument 110 assert(offset + len <= RubySystem::getBlockSizeBytes()); 111 memcpy(&m_data[offset], data, len);
|
H A D | WriteMask.hh | 71 test(int offset) argument 73 assert(offset < mSize); 74 return mMask[offset]; 78 setMask(int offset, int len) 80 assert(mSize >= (offset + len)); 82 mMask[offset + i] = true; 94 getMask(int offset, int len) const argument 97 assert(mSize >= (offset + len)); 99 tmp = tmp & mMask.at(offset + i); 171 int offset local 181 int offset = mAtomicOp[i].first; local [all...] |
/gem5/system/alpha/h/ |
H A D | ev5_impure.h | 80 ** The impure pointer will need to be adjusted by a different offset 89 #define SAVE_GPR(reg,offset,base) \ 90 stq_p reg, (SEXT10(offset-0x200))(base) 92 #define RESTORE_GPR(reg,offset,base) \ 93 ldq_p reg, (SEXT10(offset-0x200))(base) 96 #define SAVE_FPR(reg,offset,base) \ 97 stt reg, (SEXT10(offset-0x200))(base) 99 #define RESTORE_FPR(reg,offset,base) \ 100 ldt reg, (SEXT10(offset-0x200))(base) 102 #define SAVE_IPR(reg,offset,bas [all...] |
H A D | fromHudsonMacros.h | 63 #define HDW_VECTOR(offset) \ 64 . = offset
|
/gem5/src/base/ |
H A D | str.cc | 41 string::size_type offset = s.find(c); local 42 if (offset == string::npos) { 48 lhs = s.substr(0, offset); 49 rhs = s.substr(offset + 1); 56 string::size_type offset = s.rfind(c); local 57 if (offset == string::npos) { 63 lhs = s.substr(0, offset); 64 rhs = s.substr(offset + 1);
|
/gem5/src/arch/riscv/insts/ |
H A D | mem.cc | 52 offset << '(' << registerName(_srcRegIdx[0]) << ')'; 61 offset << '(' << registerName(_srcRegIdx[0]) << ')';
|
/gem5/src/mem/cache/prefetch/ |
H A D | spatio_temporal_memory_streaming.hh | 80 unsigned int offset; member in struct:STeMSPrefetcher::ActiveGenerationTableEntry::SequenceEntry 83 SequenceEntry() : counter(2), offset(0), delta(0) 100 seq_entry.offset = 0; 121 * @param offset offset in cachelines within the spatial region 123 void addOffset(unsigned int offset) { argument 124 // Search for the offset in the deltas array, if it exist, update 125 // the corresponding counter, if not, add the offset to the array 128 if (seq_entry.offset == offset) { [all...] |
/gem5/src/arch/x86/ |
H A D | mmapped_ipr.hh | 63 Addr offset = pkt->getAddr() & mask(3); local 68 assert(offset + pkt->getSize() <= sizeof(RegVal)); 69 pkt->setData(((uint8_t *)&data) + offset); 80 Addr offset = pkt->getAddr() & mask(3); local 85 assert(offset + pkt->getSize() <= sizeof(RegVal)); 86 pkt->writeData(((uint8_t *)&data) + offset);
|
/gem5/src/dev/virtio/ |
H A D | pci.cc | 72 Addr offset; local 73 if (!getBAR(pkt->getAddr(), bar, offset)) 77 DPRINTF(VIOIface, "Reading offset 0x%x [len: %i]\n", offset, size); 80 if (offset >= OFF_VIO_DEVICE) { 81 vio.readConfig(pkt, offset - OFF_VIO_DEVICE); 87 switch(offset) { 142 panic("Unhandled read offset (0x%x)\n", offset); 153 Addr offset; local [all...] |
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64mi/ |
H A D | ma_addr.S | 28 #define MISALIGNED_LOAD_TEST(testnum, insn, base, offset, res) \ 31 addi t1, base, offset; \ 32 insn t1, offset(base); \ 63 #define MISALIGNED_STORE_TEST(testnum, insn, base, offset, size) \ 66 addi t1, base, offset; \ 67 insn x0, offset(base); \ 68 lb t1, (offset - 1)(base); \ 70 lb t1, (offset + size)(base); \ 72 lb t1, (offset + 0)(base); \ 74 lb t1, (offset [all...] |