mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 03:30:15 +00:00
cache fixup
This commit is contained in:
parent
6803ceb886
commit
c428dcddce
130
src/core/arm/cache/cache.cpp
vendored
130
src/core/arm/cache/cache.cpp
vendored
@ -7,21 +7,53 @@
|
|||||||
|
|
||||||
namespace Cache {
|
namespace Cache {
|
||||||
|
|
||||||
|
static std::list<CacheBase*> caches;
|
||||||
|
|
||||||
|
void RegisterCode(u32 address, u32 size) {
|
||||||
|
for (auto const& cache : caches) {
|
||||||
|
cache->OnCodeLoad(address, size);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnregisterCode(u32 address, u32 size) {
|
||||||
|
for (auto const& cache : caches) {
|
||||||
|
cache->OnCodeUnload(address, size);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void ClearCache() {
|
||||||
|
for (auto const& cache : caches) {
|
||||||
|
cache->Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void RegisterCache(CacheBase* cache) {
|
||||||
|
caches.push_back(cache);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void UnregisterCache(CacheBase* cache) {
|
||||||
|
caches.erase(std::remove(caches.begin(), caches.end(), cache), caches.end());
|
||||||
|
}
|
||||||
|
|
||||||
CacheBase::CacheBase(bool index_mode, OnClearCb clearcb) : index_mode(index_mode) {
|
CacheBase::CacheBase(bool index_mode, OnClearCb clearcb) : index_mode(index_mode) {
|
||||||
page_pointers.fill(nullptr);
|
page_pointers.fill(nullptr);
|
||||||
Clear();
|
Clear();
|
||||||
SetClearCallback(clearcb);
|
SetClearCallback(clearcb);
|
||||||
g_cachemanager.RegisterCache(this);
|
RegisterCache(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
CacheBase::~CacheBase() {
|
CacheBase::~CacheBase() {
|
||||||
g_cachemanager.UnregisterCache(this);
|
UnregisterCache(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CacheBase::Clear() {
|
void CacheBase::Clear() {
|
||||||
if (OnClearCallback != nullptr) OnClearCallback();
|
if (OnClearCallback != nullptr) {
|
||||||
|
OnClearCallback();
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& cache : ptr_caches) cache.data.assign(cache.data.size(), nullptr);
|
for (auto& cache : ptr_caches) {
|
||||||
|
cache.data.assign(cache.data.size(), nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
if (index_mode) {
|
if (index_mode) {
|
||||||
blocks_pc.assign(MAX_BLOCKS, INVALID_BLOCK);
|
blocks_pc.assign(MAX_BLOCKS, INVALID_BLOCK);
|
||||||
@ -30,18 +62,25 @@ void CacheBase::Clear() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool CacheBase::RemoveBlock(u32 pc) {
|
bool CacheBase::RemoveBlock(u32 pc) {
|
||||||
u8** ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
void** ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
||||||
if (ptr != nullptr) {
|
if (ptr != nullptr) {
|
||||||
ptr = &ptr[pc & Memory::PAGE_MASK];
|
ptr = &ptr[pc & Memory::PAGE_MASK];
|
||||||
if (*ptr == nullptr) return false;
|
|
||||||
|
if (*ptr == nullptr) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (index_mode) {
|
if (index_mode) {
|
||||||
const u32 id = pointer_to_id(*ptr);
|
const u32 id = pointer_to_id(*ptr);
|
||||||
ASSERT(blocks_pc[id] == pc);
|
ASSERT(blocks_pc[id] == pc);
|
||||||
|
|
||||||
blocks_pc[id] = INVALID_BLOCK;
|
blocks_pc[id] = INVALID_BLOCK;
|
||||||
if (id < next_block) next_block = id;
|
if (id < next_block) {
|
||||||
while (num_blocks > 0 && blocks_pc[num_blocks - 1] == INVALID_BLOCK) --num_blocks;
|
next_block = id;
|
||||||
|
}
|
||||||
|
while (num_blocks > 0 && blocks_pc[num_blocks - 1] == INVALID_BLOCK) {
|
||||||
|
--num_blocks;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
*ptr = nullptr;
|
*ptr = nullptr;
|
||||||
return true;
|
return true;
|
||||||
@ -52,17 +91,24 @@ bool CacheBase::RemoveBlock(u32 pc) {
|
|||||||
bool CacheBase::RemoveRange(u32 start, u32 end) {
|
bool CacheBase::RemoveRange(u32 start, u32 end) {
|
||||||
bool result = false;
|
bool result = false;
|
||||||
for (auto& cache : ptr_caches) {
|
for (auto& cache : ptr_caches) {
|
||||||
for (int i = std::max(start, cache.addr); i < std::min(end, cache.addr_end); ++i) {
|
for (u32 i = std::max(start, cache.addr); i < std::min(end, cache.addr_end); ++i) {
|
||||||
u8** ptr = &cache.data[i - cache.addr];
|
void** ptr = &cache.data[i - cache.addr];
|
||||||
if (*ptr == nullptr) continue;
|
|
||||||
|
if (*ptr == nullptr) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (index_mode) {
|
if (index_mode) {
|
||||||
const u32 id = pointer_to_id(*ptr);
|
const u32 id = pointer_to_id(*ptr);
|
||||||
ASSERT(blocks_pc[id] == i);
|
ASSERT(blocks_pc[id] == i);
|
||||||
|
|
||||||
blocks_pc[id] = INVALID_BLOCK;
|
blocks_pc[id] = INVALID_BLOCK;
|
||||||
if (id < next_block) next_block = id;
|
if (id < next_block) {
|
||||||
while (num_blocks > 0 && blocks_pc[num_blocks - 1] == INVALID_BLOCK) --num_blocks;
|
next_block = id;
|
||||||
|
}
|
||||||
|
while (num_blocks > 0 && blocks_pc[num_blocks - 1] == INVALID_BLOCK) {
|
||||||
|
--num_blocks;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
*ptr = nullptr;
|
*ptr = nullptr;
|
||||||
result = true;
|
result = true;
|
||||||
@ -75,23 +121,29 @@ void CacheBase::OnCodeLoad(u32 address, u32 size) {
|
|||||||
const u32 end = address + size;
|
const u32 end = address + size;
|
||||||
|
|
||||||
// Check there is no overlapping
|
// Check there is no overlapping
|
||||||
for (auto const& cache : ptr_caches) ASSERT((address >= cache.addr_end) || (end <= cache.addr));
|
for (auto const& cache : ptr_caches) {
|
||||||
|
ASSERT((address >= cache.addr_end) || (end <= cache.addr));
|
||||||
|
}
|
||||||
|
|
||||||
ASSERT((address & Memory::PAGE_MASK) == 0 && (size & Memory::PAGE_MASK) == 0);
|
ASSERT((address & Memory::PAGE_MASK) == 0 && (size & Memory::PAGE_MASK) == 0);
|
||||||
|
|
||||||
BlockPtrCache cache{ address, address + size };
|
BlockPtrCache cache{ address, address + size };
|
||||||
cache.data.assign(size, nullptr);
|
cache.data.assign(size, nullptr);
|
||||||
|
|
||||||
for (u32 i = address; i < end; i += Memory::PAGE_SIZE) { page_pointers[i >> Memory::PAGE_BITS] = &cache.data[i - address]; }
|
for (u32 i = address; i < end; i += Memory::PAGE_SIZE) {
|
||||||
|
page_pointers[i >> Memory::PAGE_BITS] = &cache.data[i - address];
|
||||||
|
}
|
||||||
ptr_caches.emplace_back(std::move(cache));
|
ptr_caches.emplace_back(std::move(cache));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CacheBase::OnCodeUnload(u32 address, u32 size) {
|
void CacheBase::OnCodeUnload(u32 address, u32 size) {
|
||||||
ptr_caches.erase(std::remove_if(ptr_caches.begin(), ptr_caches.end(),
|
ptr_caches.erase(std::remove_if(ptr_caches.begin(), ptr_caches.end(),
|
||||||
[&](auto const& cache) {
|
[&, this](auto const& cache) {
|
||||||
if ((address < cache.addr_end) && (address + size > cache.addr)) {
|
if ((address < cache.addr_end) && (address + size > cache.addr)) {
|
||||||
RemoveRange(cache.addr, cache.addr_end);
|
this->RemoveRange(cache.addr, cache.addr_end);
|
||||||
for (u32 i = cache.addr; i < cache.addr_end; i += Memory::PAGE_SIZE) { page_pointers[i >> Memory::PAGE_BITS] = nullptr; }
|
for (u32 i = cache.addr; i < cache.addr_end; i += Memory::PAGE_SIZE) {
|
||||||
|
page_pointers[i >> Memory::PAGE_BITS] = nullptr;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -99,55 +151,39 @@ void CacheBase::OnCodeUnload(u32 address, u32 size) {
|
|||||||
ptr_caches.cend());
|
ptr_caches.cend());
|
||||||
}
|
}
|
||||||
|
|
||||||
u8*& CacheBase::GetNewPtr(u32 pc) {
|
void*& CacheBase::GetNewPtr(u32 pc) {
|
||||||
DEBUG_ASSERT(!index_mode || next_block == MAX_BLOCKS || ((next_block < MAX_BLOCKS) && blocks_pc[next_block] == INVALID_BLOCK));
|
DEBUG_ASSERT(!index_mode || next_block == MAX_BLOCKS || ((next_block < MAX_BLOCKS) && blocks_pc[next_block] == INVALID_BLOCK));
|
||||||
DEBUG_ASSERT(GetPtr(pc) == nullptr);
|
DEBUG_ASSERT(GetPtr(pc) == nullptr);
|
||||||
|
|
||||||
u8** page_ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
void** page_ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
||||||
if (page_ptr == nullptr) {
|
if (page_ptr == nullptr) {
|
||||||
// pc isnt within mapped code
|
// pc isnt within mapped code
|
||||||
OnCodeLoad(pc & ~Memory::PAGE_MASK, Memory::PAGE_SIZE);
|
OnCodeLoad(pc & ~Memory::PAGE_MASK, Memory::PAGE_SIZE);
|
||||||
page_ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
page_ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
||||||
}
|
}
|
||||||
|
|
||||||
u8** block_ptr = &page_ptr[pc & Memory::PAGE_MASK];
|
void** block_ptr = &page_ptr[pc & Memory::PAGE_MASK];
|
||||||
|
|
||||||
DEBUG_ASSERT(*block_ptr == nullptr);
|
DEBUG_ASSERT(*block_ptr == nullptr);
|
||||||
|
|
||||||
if (index_mode) {
|
if (index_mode) {
|
||||||
if (next_block == MAX_BLOCKS) Clear();
|
if (next_block == MAX_BLOCKS) {
|
||||||
|
Clear();
|
||||||
|
}
|
||||||
|
|
||||||
blocks_pc[next_block] = pc;
|
blocks_pc[next_block] = pc;
|
||||||
*block_ptr = id_to_pointer(next_block);
|
*block_ptr = id_to_pointer(next_block);
|
||||||
|
|
||||||
do ++next_block; while (next_block <= num_blocks && blocks_pc[next_block] != INVALID_BLOCK);
|
do {
|
||||||
if (next_block > num_blocks) num_blocks++;
|
++next_block;
|
||||||
|
} while (next_block <= num_blocks && blocks_pc[next_block] != INVALID_BLOCK);
|
||||||
|
|
||||||
|
if (next_block > num_blocks) {
|
||||||
|
num_blocks++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return *block_ptr;
|
return *block_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CacheManager::RegisterCode(u32 address, u32 size) const {
|
|
||||||
for (auto const& cache : caches) cache->OnCodeLoad(address, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CacheManager::UnregisterCode(u32 address, u32 size) const {
|
|
||||||
for (auto const& cache : caches) cache->OnCodeUnload(address, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CacheManager::ClearCache() const {
|
|
||||||
for (auto const& cache : caches) cache->Clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CacheManager::RegisterCache(CacheBase* cache) {
|
|
||||||
caches.push_back(cache);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CacheManager::UnregisterCache(CacheBase* cache) {
|
|
||||||
caches.erase(std::remove(caches.begin(), caches.end(), cache), caches.end());
|
|
||||||
}
|
|
||||||
|
|
||||||
CacheManager g_cachemanager;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
75
src/core/arm/cache/cache.h
vendored
75
src/core/arm/cache/cache.h
vendored
@ -17,6 +17,14 @@
|
|||||||
|
|
||||||
namespace Cache {
|
namespace Cache {
|
||||||
|
|
||||||
|
/// Loaders call these when mapping/unmapping code
|
||||||
|
void RegisterCode(u32 address, u32 size);
|
||||||
|
void UnregisterCode(u32 address, u32 size = 1);
|
||||||
|
|
||||||
|
/// Clear every cache
|
||||||
|
void ClearCache();
|
||||||
|
|
||||||
|
|
||||||
using OnClearCb = std::function<void()>;
|
using OnClearCb = std::function<void()>;
|
||||||
|
|
||||||
const u32 MAX_BLOCKS = 0x40000;
|
const u32 MAX_BLOCKS = 0x40000;
|
||||||
@ -25,7 +33,7 @@ const u32 INVALID_BLOCK = 0xFFFFFFFF;
|
|||||||
struct BlockPtrCache {
|
struct BlockPtrCache {
|
||||||
u32 addr;
|
u32 addr;
|
||||||
u32 addr_end;
|
u32 addr_end;
|
||||||
std::vector<u8*> data;
|
std::vector<void*> data;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CacheBase {
|
class CacheBase {
|
||||||
@ -35,7 +43,9 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/// Called when the cache needs to reset or Clear() is called
|
/// Called when the cache needs to reset or Clear() is called
|
||||||
void SetClearCallback(OnClearCb cb) { OnClearCallback = cb; }
|
void SetClearCallback(OnClearCb cb) {
|
||||||
|
OnClearCallback = cb;
|
||||||
|
}
|
||||||
|
|
||||||
/// Clear and call clear callback
|
/// Clear and call clear callback
|
||||||
void Clear();
|
void Clear();
|
||||||
@ -47,25 +57,25 @@ public:
|
|||||||
void OnCodeUnload(u32 address, u32 size);
|
void OnCodeUnload(u32 address, u32 size);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
u8* GetPtr(u32 pc) const {
|
void* GetPtr(u32 pc) const {
|
||||||
u8** ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
void** ptr = page_pointers[pc >> Memory::PAGE_BITS];
|
||||||
if (ptr != nullptr) {
|
if (ptr != nullptr) {
|
||||||
DEBUG_ASSERT(!index_mode || blocks_pc[pointer_to_id(ptr[pc & Memory::PAGE_MASK])] == pc);
|
DEBUG_ASSERT(!index_mode || blocks_pc[pointer_to_id(ptr[pc & Memory::PAGE_MASK])] == pc);
|
||||||
return ptr[pc & Memory::PAGE_MASK];
|
return ptr[pc & Memory::PAGE_MASK];
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
u8*& GetNewPtr(u32 pc);
|
void*& GetNewPtr(u32 pc);
|
||||||
|
|
||||||
std::function<u8*(u32)> id_to_pointer;
|
std::function<void*(u32)> id_to_pointer;
|
||||||
std::function<u32(u8*)> pointer_to_id;
|
std::function<u32(void*)> pointer_to_id;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool index_mode;
|
bool index_mode;
|
||||||
OnClearCb OnClearCallback = nullptr;
|
OnClearCb OnClearCallback = nullptr;
|
||||||
|
|
||||||
std::vector<BlockPtrCache> ptr_caches;
|
std::vector<BlockPtrCache> ptr_caches;
|
||||||
std::array<u8**, (1 << (32 - Memory::PAGE_BITS))> page_pointers;
|
std::array<void**, (1 << (32 - Memory::PAGE_BITS))> page_pointers;
|
||||||
|
|
||||||
std::vector<u32> blocks_pc;
|
std::vector<u32> blocks_pc;
|
||||||
u32 next_block = 0;
|
u32 next_block = 0;
|
||||||
@ -82,10 +92,14 @@ public:
|
|||||||
~PtrCache() {}
|
~PtrCache() {}
|
||||||
|
|
||||||
/// Get cached pointer for PC
|
/// Get cached pointer for PC
|
||||||
T FindPtr(u32 pc) { return reinterpret_cast<T>(GetPtr(pc)); }
|
T GetPtr(u32 pc) {
|
||||||
|
return reinterpret_cast<T>(CacheBase::GetPtr(pc));
|
||||||
|
}
|
||||||
|
|
||||||
/// Get reference of pointer for PC
|
/// Get reference of pointer for PC
|
||||||
T& GetNewPtr(u32 pc) { return reinterpret_cast<T&>(CacheBase::GetNewPtr(pc)); }
|
T& GetNewPtr(u32 pc) {
|
||||||
|
return reinterpret_cast<T&>(CacheBase::GetNewPtr(pc));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Index based cache
|
/// Index based cache
|
||||||
@ -93,45 +107,30 @@ template <typename T>
|
|||||||
class Cache final : public CacheBase {
|
class Cache final : public CacheBase {
|
||||||
public:
|
public:
|
||||||
explicit Cache(OnClearCb clearcb = nullptr) : CacheBase(true, clearcb) {
|
explicit Cache(OnClearCb clearcb = nullptr) : CacheBase(true, clearcb) {
|
||||||
id_to_pointer = [this](u32 id) -> u8* {
|
id_to_pointer = [this](u32 id) -> void* {
|
||||||
return reinterpret_cast<u8*>(&blocks[id]);
|
return &blocks[id];
|
||||||
};
|
};
|
||||||
pointer_to_id = [this](u8* ptr) -> u32 {
|
pointer_to_id = [this](void* ptr) -> u32 {
|
||||||
return static_cast<u32>(reinterpret_cast<T*>(ptr) - &blocks[0]);
|
return static_cast<u32>(std::distance(blocks.begin(),
|
||||||
|
std::find_if(blocks.begin(), blocks.end(), [&](auto const& block) {
|
||||||
|
return (reinterpret_cast<T*>(ptr) == &block) ? true : false;
|
||||||
|
})));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
~Cache() {}
|
~Cache() {}
|
||||||
|
|
||||||
/// Get block cached for PC
|
/// Get block cached for PC
|
||||||
T* FindBlock(u32 pc) { return reinterpret_cast<T*>(GetPtr(pc)); }
|
T* GetBlock(u32 pc) {
|
||||||
|
return reinterpret_cast<T*>(GetPtr(pc));
|
||||||
|
}
|
||||||
|
|
||||||
/// Allocate block for PC
|
/// Allocate block for PC
|
||||||
T& GetNewBlock(u32 pc) { return *reinterpret_cast<T*&>(GetNewPtr(pc)); }
|
T& GetNewBlock(u32 pc) {
|
||||||
|
return *reinterpret_cast<T*&>(GetNewPtr(pc));
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::array<T, MAX_BLOCKS> blocks;
|
std::array<T, MAX_BLOCKS> blocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CacheManager {
|
|
||||||
public:
|
|
||||||
CacheManager() {}
|
|
||||||
~CacheManager() {}
|
|
||||||
|
|
||||||
/// Loaders call these when mapping/unmapping code
|
|
||||||
void RegisterCode(u32 address, u32 size) const;
|
|
||||||
void UnregisterCode(u32 address, u32 size = 1) const;
|
|
||||||
|
|
||||||
/// Clear every cache
|
|
||||||
void ClearCache() const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::list<CacheBase*> caches;
|
|
||||||
|
|
||||||
public:
|
|
||||||
void RegisterCache(CacheBase* cache);
|
|
||||||
void UnregisterCache(CacheBase* cache);
|
|
||||||
};
|
|
||||||
|
|
||||||
extern CacheManager g_cachemanager;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3893,10 +3893,12 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
|
|||||||
cpu->Reg[15] &= 0xfffffffc;
|
cpu->Reg[15] &= 0xfffffffc;
|
||||||
|
|
||||||
//clear cache if we dont have more than 10kb of buffer remaining
|
//clear cache if we dont have more than 10kb of buffer remaining
|
||||||
if ((top + (10 * 1024)) >= CACHE_BUFFER_SIZE) instr_cache.Clear();
|
if ((top + (10 * 1024)) >= CACHE_BUFFER_SIZE) {
|
||||||
|
instr_cache.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
// Find the cached instruction cream, otherwise translate it...
|
// Find the cached instruction cream, otherwise translate it...
|
||||||
ptr = instr_cache.FindPtr(cpu->Reg[15]);
|
ptr = instr_cache.GetPtr(cpu->Reg[15]);
|
||||||
if (ptr == nullptr) {
|
if (ptr == nullptr) {
|
||||||
ptr = instr_cache.GetNewPtr(cpu->Reg[15]) = reinterpret_cast<u8*>(&inst_buf[top]);
|
ptr = instr_cache.GetNewPtr(cpu->Reg[15]) = reinterpret_cast<u8*>(&inst_buf[top]);
|
||||||
if (cpu->NumInstrsToExecute != 1) {
|
if (cpu->NumInstrsToExecute != 1) {
|
||||||
|
@ -122,8 +122,8 @@ void Process::Run(s32 main_thread_priority, u32 stack_size) {
|
|||||||
MapSegment(codeset->data, VMAPermission::ReadWrite, MemoryState::Private);
|
MapSegment(codeset->data, VMAPermission::ReadWrite, MemoryState::Private);
|
||||||
|
|
||||||
// Map cache
|
// Map cache
|
||||||
Cache::g_cachemanager.UnregisterCode(0, 0xFFFFFFFF);
|
Cache::UnregisterCode(0, 0xFFFFFFFF);
|
||||||
Cache::g_cachemanager.RegisterCode(codeset->code.addr, codeset->code.size);
|
Cache::RegisterCode(codeset->code.addr, codeset->code.size);
|
||||||
|
|
||||||
// Allocate and map stack
|
// Allocate and map stack
|
||||||
vm_manager.MapMemoryBlock(Memory::HEAP_VADDR_END - stack_size,
|
vm_manager.MapMemoryBlock(Memory::HEAP_VADDR_END - stack_size,
|
||||||
|
Loading…
Reference in New Issue
Block a user