mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
ConstantPool: Externalize memory allocation
This commit is contained in:
parent
615fcc621d
commit
da434e1a1c
6 changed files with 33 additions and 50 deletions
|
@ -44,7 +44,7 @@ public:
|
|||
}
|
||||
|
||||
// Call this before you generate any code.
|
||||
virtual void AllocCodeSpace(size_t size, bool need_low = true)
|
||||
void AllocCodeSpace(size_t size, bool need_low = true)
|
||||
{
|
||||
region_size = size;
|
||||
total_region_size = size;
|
||||
|
@ -54,7 +54,7 @@ public:
|
|||
|
||||
// Always clear code space with breakpoints, so that if someone accidentally executes
|
||||
// uninitialized, it just breaks into the debugger.
|
||||
virtual void ClearCodeSpace()
|
||||
void ClearCodeSpace()
|
||||
{
|
||||
PoisonMemory();
|
||||
ResetCodePtr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue