arch/sim: Implement host_freeheap for windows

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2023-04-24 11:10:15 +08:00 committed by Xiang Xiao
parent f620b039aa
commit 97f8817d6b

View File

@ -41,6 +41,19 @@ void *host_allocheap(size_t sz)
return _aligned_malloc(sz, 8);
}
/****************************************************************************
* Name: host_freeheap
*
* Description:
* Free a executable memory block.
*
****************************************************************************/
void host_freeheap(void *mem)
{
_aligned_free(mem);
}
void *host_allocshmem(const char *name, size_t size, int master)
{
HANDLE handle;