Searched refs:offset (Results 51 - 75 of 189) sorted by relevance

12345678

/gem5/src/dev/storage/
H A Ddisk_image.cc115 RawDiskImage::read(uint8_t *data, std::streampos offset) const
123 stream.seekg(offset * SectorSize, ios::beg);
130 DPRINTF(DiskImageRead, "read: offset=%d\n", (uint64_t)offset);
137 RawDiskImage::write(const uint8_t *data, std::streampos offset) argument
148 stream.seekp(offset * SectorSize, ios::beg);
152 DPRINTF(DiskImageWrite, "write: offset=%d\n", (uint64_t)offset);
280 uint64_t offset; local
281 SafeReadSwap(stream, offset);
413 write(const uint8_t *data, std::streampos offset) argument
[all...]
/gem5/util/tlm/examples/slave_port/
H A Dsc_target.cc43 unsigned int offset) :
52 offset(offset)
71 if (addr < offset || addr >= offset + size)
73 "appropriate size and offset?");
89 sc_dt::uint64 adr = trans.get_address() - offset;
219 sc_dt::uint64 adr = trans.get_address() - offset;
40 Target(sc_core::sc_module_name name, bool debug, unsigned long long int size, unsigned int offset) argument
H A Dsc_target.hh68 unsigned int offset);
99 unsigned offset; member in struct:Target
/gem5/src/arch/arm/
H A Ddecoder.cc71 offset = 0;
94 uint16_t word = (data >> (offset * 8));
108 if (offset == 0) {
148 offset += numBytes;
149 assert(offset <= sizeof(MachInst) || emi.decoderFault);
150 if (offset == sizeof(MachInst))
158 offset = (fetchPC >= pc.instAddr()) ? 0 : pc.instAddr() - fetchPC;
/gem5/src/arch/hsail/
H A Doperand.cc242 for (int offset = 0; offset < data_p->byteCount; offset += 4) {
244 obj->getOperand(((int *)data_p->bytes)[offset/4]);
339 offset = 0;
382 // start with offset, will be 0 if not specified
383 uint64_t address = offset;
387 address += storageElement->offset;
398 if (offset || reg_disassembly != "") {
404 if (offset >
[all...]
/gem5/src/base/
H A Dinifile.cc103 string::size_type offset = assignment.find('='); local
104 if (offset == string::npos) {
111 bool append = (assignment[offset-1] == '+');
113 string entryName = assignment.substr(0, append ? offset-1 : offset);
114 string value = assignment.substr(offset + 1);
167 string::size_type offset = str.find(':'); local
168 if (offset == string::npos) // no ':' found
171 string sectionName = str.substr(0, offset);
172 string rest = str.substr(offset
[all...]
H A Dpixel.hh97 * @param offset Offset in bits.
100 Channel(unsigned offset, unsigned width);
107 return round(((word >> offset) & mask) * factor);
115 return (static_cast<uint8_t>(round(ch / factor)) & mask) << offset;
119 unsigned offset; member in struct:PixelConverter::Channel
/gem5/src/gpu-compute/
H A Ddispatcher.cc132 int offset = pkt->getAddr() - pioAddr; local
135 DPRINTF(GPUDisp, " read register %#x size=%d\n", offset, pkt->getSize());
137 if (offset < 8) {
138 assert(!offset);
144 offset -= 8;
145 assert(offset + pkt->getSize() < sizeof(HsaQueueEntry));
148 memcpy(pkt->getPtr<const void*>(), curTaskPtr + offset, pkt->getSize());
162 int offset = pkt->getAddr() - pioAddr; local
184 DPRINTF(GPUDisp, "write register %#x value %#x size=%d\n", offset, data_val,
187 if (!offset) {
[all...]
/gem5/src/base/loader/
H A Dobject_file.cc77 Addr addr_mask, Addr offset)
80 Addr addr = (sec->baseAddr & addr_mask) + offset;
95 Addr offset)
97 return (loadSection(&text, mem_proxy, addr_mask, offset)
98 && loadSection(&data, mem_proxy, addr_mask, offset)
99 && loadSection(&bss, mem_proxy, addr_mask, offset));
76 loadSection(Section *sec, const PortProxy& mem_proxy, Addr addr_mask, Addr offset) argument
94 loadSections(const PortProxy& mem_proxy, Addr addr_mask, Addr offset) argument
H A Decoff_object.cc94 EcoffObject::loadAllSymbols(SymbolTable *symtab, Addr base, Addr offset, argument
97 bool retval = loadGlobalSymbols(symtab, base, offset, addr_mask);
98 retval = retval && loadLocalSymbols(symtab, base, offset, addr_mask);
103 EcoffObject::loadGlobalSymbols(SymbolTable *symtab, Addr base, Addr offset, argument
133 EcoffObject::loadLocalSymbols(SymbolTable *symtab, Addr base, Addr offset, argument
H A Delf_object.cc219 // to translate from a file offset to the address in the image.
404 Addr base, Addr offset)
440 Addr value = sym.st_value - base + offset;
459 ElfObject::loadAllSymbols(SymbolTable *symtab, Addr base, Addr offset, argument
462 return (loadGlobalSymbols(symtab, base, offset, addr_mask) &&
463 loadLocalSymbols(symtab, base, offset, addr_mask) &&
464 loadWeakSymbols(symtab, base, offset, addr_mask));
468 ElfObject::loadGlobalSymbols(SymbolTable *symtab, Addr base, Addr offset, argument
473 base, offset);
475 return loadSomeSymbols(symtab, STB_GLOBAL, addr_mask, base, offset);
403 loadSomeSymbols(SymbolTable *symtab, int binding, Addr mask, Addr base, Addr offset) argument
479 loadLocalSymbols(SymbolTable *symtab, Addr base, Addr offset, Addr addr_mask) argument
490 loadWeakSymbols(SymbolTable *symtab, Addr base, Addr offset, Addr addr_mask) argument
501 loadSections(const PortProxy& mem_proxy, Addr addr_mask, Addr offset) argument
[all...]
/gem5/src/dev/
H A Dmc146818.hh55 Tick offset; member in struct:MC146818::RTCEvent
73 Tick offset; member in struct:MC146818::RTCTickEvent
76 parent(_parent), offset(SimClock::Int::s)
/gem5/src/arch/x86/
H A Dsystem.cc228 for (int offset = 0; offset < (1 << PML4Bits) * 8; offset += 8) {
229 physProxy.writeBlob(PageMapLevel4 + offset, (&pml4e), 8);
239 for (int offset = 0; offset < (1 << PDPTBits) * 8; offset += 8)
240 physProxy.writeBlob(PageDirPtrTable + offset, &pdpe, 8);
252 for (int offset = 0; offset < (
[all...]
H A Dinterrupts.hh129 int offset = 7; local
131 if (regs[base + offset] != 0) {
132 return offset * 32 + findMsbSet(regs[base + offset]);
134 } while (offset--);
H A Dinterrupts.cc193 Addr offset = pkt->getAddr() - pioAddr; local
195 if ((offset & ~mask(3)) != ((offset + pkt->getSize()) & ~mask(3)))
197 ApicRegIndex reg = decodeAddr(offset);
200 "Reading Local APIC register %d at offset %#x as %#x.\n",
201 reg, offset, val);
202 pkt->setData(((uint8_t *)&val) + (offset & mask(3)));
210 Addr offset = pkt->getAddr() - pioAddr; local
212 if ((offset & ~mask(3)) != ((offset
309 Addr offset = pkt->getAddr() - x86InterruptAddress(initialApicId, 0); local
572 Tick offset = curTick() % clockPeriod(); local
[all...]
/gem5/src/arch/arm/linux/
H A Dprocess.hh61 SyscallDesc *getDesc(int offset) const;
H A Dsystem.cc193 uint32_t offset = 0; local
196 offset += ac.copyOut(boot_data + offset);
197 offset += am.copyOut(boot_data + offset);
198 offset += ad.copyOut(boot_data + offset);
199 offset += an.copyOut(boot_data + offset);
/gem5/src/arch/arm/freebsd/
H A Dprocess.hh51 SyscallDesc *getDesc(int offset) const;
/gem5/src/sim/
H A Demul_driver.hh96 int prot, int tgtFlags, int tgtFd, int offset)
95 mmap(ThreadContext *tc, Addr start, uint64_t length, int prot, int tgtFlags, int tgtFd, int offset) argument
/gem5/src/mem/cache/tags/
H A Dcompressed_tags.cc91 // Set its index and sector offset
117 const uint64_t offset = extractSectorOffset(addr); local
122 !superblock->blks[offset]->isValid() &&
146 SectorSubBlk* victim = victim_superblock->blks[offset];
154 DPRINTF(CacheComp, "Co-Allocation: offset %d with blocks\n", offset);
/gem5/src/arch/x86/bios/
H A Dsmbios.cc100 Addr offset = 0; local
107 proxy.writeBlob(addr + offset, &nullTerminator, 1);
108 offset++;
111 proxy.writeBlob(addr + offset, it->c_str(), it->length() + 1);
112 offset += it->length() + 1;
115 proxy.writeBlob(addr + offset, &nullTerminator, 1);
283 Addr offset = 0; local
287 uint16_t size = (*it)->writeOut(proxy, base + offset);
290 offset += size;
293 structSize = offset;
[all...]
/gem5/src/dev/pci/
H A Ddevice.cc222 int offset = pkt->getAddr() & PCI_CONFIG_SIZE; local
225 if (offset >= PCI_DEVICE_SPECIFIC &&
226 offset < PCI_CONFIG_SIZE) {
242 } else if (offset > PCI_CONFIG_SIZE) {
248 pkt->setLE<uint8_t>(config.data[offset]);
251 _busAddr.dev, _busAddr.func, offset,
255 pkt->setLE<uint16_t>(*(uint16_t*)&config.data[offset]);
258 _busAddr.dev, _busAddr.func, offset,
262 pkt->setLE<uint32_t>(*(uint32_t*)&config.data[offset]);
265 _busAddr.dev, _busAddr.func, offset,
290 int offset = pkt->getAddr() & PCI_CONFIG_SIZE; local
[all...]
/gem5/src/dev/arm/
H A Dvio_mmio.hh97 uint32_t read(Addr offset);
98 void write(Addr offset, uint32_t value);
/gem5/src/dev/x86/
H A Di82094aa.hh103 void writeReg(uint8_t offset, uint32_t value);
104 uint32_t readReg(uint8_t offset);
/gem5/src/arch/mips/
H A Dfaults.hh82 const FaultVect offset; member in struct:MipsISA::MipsFaultBase::FaultVals
88 virtual FaultVect offset(ThreadContext *tc) const = 0;
102 return base(tc) + offset(tc);
116 FaultVect offset(ThreadContext *tc) const { return vals.offset; } function in class:MipsISA::MipsFault
181 offset(ThreadContext *tc) const function in class:MipsISA::InterruptFault
184 // offset 0x200 for release 2, 0x180 for release 1.
281 offset(ThreadContext *tc) const function in class:MipsISA::TlbRefillFault

Completed in 40 milliseconds

12345678