update libretro headers; platform-specific memory tweaks - #2423
update libretro headers; platform-specific memory tweaks#2423warmenhoven wants to merge 2 commits into
Conversation
4f12942 to
dd78418
Compare
|
Please target the |
|
Sure, done. Let me know if you want me to remove the translation commit that got pulled in as well? |
|
That's fine. Thanks |
Sorry seems I'm a bit late so I can't download the iOS binary and test I noticed that /**
* Parameters for \c RETRO_ENVIRONMENT_EXEC_MEM_FREE.
* @see RETRO_ENVIRONMENT_EXEC_MEM_FREE
*/
struct retro_exec_mem_free
{
void *rx; /**< The \c rx pointer returned by a previous alloc call. */
};but in our Flycast implementation using dsp as example: void recTerm()
{
#if defined(TARGET_IPHONE) || defined(TARGET_ARM_MAC)
DynCode = nullptr;
#endif
#ifdef FEAT_NO_RWX_PAGES
if (pCodeBuffer != nullptr)
virtmem::release_jit_block(DynCode, pCodeBuffer, CodeSize);
so it would mean void release_jit_block(void *code_area1, void *code_area2, size_t size)
{
if (free_via_frontend(nullptr) || free_via_frontend(pCodeBuffer))
return;
munmap(pCodeBuffer, CodeSize);
}In the DSP So we are passing Rw pointer into Current RetroArch should accept either the RX or RW pointer, so I guess this is working, but is this a problem if other frontends that cannot handle the Rw pointer (since the header API is Rx), return false, Flycast would then call |
No description provided.