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

Method reset

rpcsx/vm.cpp:723–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void vm::reset() {
724 std::memset(gBlocks, 0, sizeof(gBlocks));
725
726 rx::mem::unmap(reinterpret_cast<void *>(kMinAddress),
727 kMaxAddress - kMinAddress);
728 if (::ftruncate64(gMemoryShm, 0) < 0) {
729 std::abort();
730 }
731 if (::ftruncate64(gMemoryShm, kMemorySize) < 0) {
732 std::abort();
733 }
734
735 reserve(0, kMinAddress);
736 rx::mem::reserve(reinterpret_cast<void *>(kMinAddress),
737 kMaxAddress - kMinAddress);
738}
739
740void vm::initialize(std::uint64_t pid) {
741 std::println("Memory: initialization");

Callers 14

sys_net_bnet_closeFunction · 0.45
saveMethod · 0.45
make_viewMethod · 0.45
open_rawMethod · 0.45
sys_fs_fcntlFunction · 0.45
acquire_reset_lockFunction · 0.45

Calls 2

unmapFunction · 0.85
reserveFunction · 0.85

Tested by

no test coverage detected