Searched refs:mmap (Results 1 - 14 of 14) sorted by relevance

/gem5/util/m5/
H A Dm5_mmap.c66 m5_mem = mmap(NULL, 0x10000, PROT_READ | PROT_WRITE, MAP_SHARED, fd,
69 perror("Can't mmap /dev/mem");
/gem5/src/sim/
H A Demul_driver.hh49 * Currently only open(), ioctl(), and mmap() calls are supported, but other
89 * Virtual method, invoked when the user program calls mmap() on
92 * @return The return ptr for the mmap, or the negation of the errno
95 virtual Addr mmap(ThreadContext *tc, Addr start, uint64_t length, function in class:EmulatedDriver
H A Dsyscall_emul.hh836 * descriptor for subsequent ioctl or mmap calls.
1222 warn("mmap region limit exceeded with MREMAP_FIXED\n");
1735 /// Real mmap handler.
1783 warn("mmap: writing to shared mmap region is currently "
1798 return emul_driver->mmap(tc, start, length, prot, tgt_flags,
1807 pmap = (decltype(pmap))mmap(nullptr, length, PROT_READ, MAP_PRIVATE,
1811 warn("mmap: failed to map file into host address space");
1816 // Extend global mmap region if necessary. Note that we ignore the
1828 DPRINTF_SYSCALL(Verbose, " mmap rang
[all...]
/gem5/ext/libelf/
H A Delf_begin.c58 if ((m = mmap(NULL, (size_t) sb.st_size, PROT_READ, MAP_PRIVATE, fd,
H A Delf_update.c791 if ((e->e_rawfile = mmap(NULL, (size_t) newsize, PROT_READ,
/gem5/src/gpu-compute/
H A Dshader.hh195 Addr mmap(int length);
H A Dshader.cc76 Shader::mmap(int length) function in class:Shader
101 DPRINTF(HSAIL,"Shader::mmap start= %#x, %#x\n", start, length);
/gem5/src/base/
H A Dfiber.cc94 guardPage = mmap(nullptr, guardPageSize + stack_size,
98 perror("mmap");
99 fatal("Could not mmap %d byte fiber stack.\n", stack_size);
/gem5/src/cpu/kvm/
H A Dperfevent.cc208 ringBuffer = (struct perf_event_mmap_page *)mmap(
H A Dbase.cc145 _kvmRun = (struct kvm_run *)mmap(0, vcpuMMapSize,
/gem5/src/base/loader/
H A Dobject_file.cc186 return fd; // return fd to decompressed temporary file for mmap()'ing
212 // mmap the whole shebang
213 uint8_t *file_data = (uint8_t *)mmap(NULL, len, PROT_READ, MAP_SHARED,
H A Delf_object.cc253 void *mm = mmap(nullptr, sb.st_size, PROT_READ,
/gem5/src/mem/
H A Dphysical.cc194 // perform the actual mmap
200 // pass noreserve to mmap
205 uint8_t* pmem = (uint8_t*) mmap(NULL, range.size(),
210 perror("mmap");
211 fatal("Could not mmap %d bytes for range %s!\n", range.size(),
408 // mmap memoryfile
/gem5/ext/googletest/googletest/src/
H A Dgtest-death-test.cc1075 void* const stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE,

Completed in 36 milliseconds