1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

UserspaceEmulator+LibC: Use sys$emuctl() to pass malloc info to UE

Get rid of the awkward secret handshake sequence between malloc and UE
and simply use sys$emuctl() to notify UE of malloc, free and realloc.
This commit is contained in:
Andreas Kling 2021-03-09 08:56:35 +01:00
parent 4faeaf101c
commit 9588f01739
8 changed files with 44 additions and 90 deletions

View file

@ -1105,8 +1105,6 @@ private:
void update_code_cache();
void did_receive_secret_data();
private:
Emulator& m_emulator;
@ -1154,9 +1152,6 @@ private:
Region* m_cached_code_region { nullptr };
u8* m_cached_code_base_ptr { nullptr };
u32 m_secret_handshake_state { 0 };
u32 m_secret_data[3];
};
ALWAYS_INLINE u8 SoftCPU::read8()