MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / alloc

Function alloc

rpcs3/Emu/Memory/vm.cpp:1100–1112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098 }
1099
1100 u32 alloc(u32 size, memory_location_t location, u32 align)
1101 {
1102 const auto block = get(location);
1103
1104 if (!block)
1105 {
1106 vm_log.error("vm::alloc(): Invalid memory location (%u)", +location);
1107 ensure(location < memory_location_max); // The only allowed locations to fail
1108 return 0;
1109 }
1110
1111 return block->alloc(size, nullptr, align);
1112 }
1113
1114 bool falloc(u32 addr, u32 size, memory_location_t location, const std::shared_ptr<utils::shm>* src)
1115 {

Callers 15

exitspawnFunction · 0.85
sys_spu_image_importFunction · 0.85
ppu_alloc_tlsFunction · 0.85
sys_initialize_tlsFunction · 0.85
cellRecOpenFunction · 0.85
cellCameraOpenExFunction · 0.85
_sys_mallocFunction · 0.85
_sys_memalignFunction · 0.85
cellFontOpenFontFileFunction · 0.85
cellRudpInitFunction · 0.85
InitOffsetTableFunction · 0.85
_cellGcmInitBodyFunction · 0.85

Calls 4

getFunction · 0.85
errorMethod · 0.80
ensureFunction · 0.50
allocMethod · 0.45

Tested by

no test coverage detected