mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
utils::memory_protect
This commit is contained in:
parent
ed711c0e59
commit
d09dd29054
4 changed files with 58 additions and 16 deletions
|
@ -28,7 +28,7 @@
|
|||
namespace vm
|
||||
{
|
||||
// Emulated virtual memory (4 GiB)
|
||||
u8* const g_base_addr = static_cast<u8*>(memory_helper::reserve_memory(0x100000000));
|
||||
u8* const g_base_addr = static_cast<u8*>(utils::memory_reserve(0x100000000));
|
||||
|
||||
// Memory locations
|
||||
std::vector<std::shared_ptr<block_t>> g_locations;
|
||||
|
@ -796,7 +796,7 @@ namespace vm
|
|||
{
|
||||
g_locations.clear();
|
||||
|
||||
memory_helper::free_reserved_memory(g_base_addr, 0x100000000);
|
||||
utils::memory_decommit(g_base_addr, 0x100000000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue