haxm: Add hax_ram_block_removed notify handler

QEMU core will call this handler when a RAM block is removed (no
surprises there), but it does _not_ check to see if this handler is
non-NULL. Add a dummy handler for now.
This commit is contained in:
Matt Borgerson 2018-09-21 01:25:48 -07:00 committed by Matt
parent 5edc406e1b
commit 71a4c6ddd4

View File

@ -310,8 +310,17 @@ static void hax_ram_block_added(RAMBlockNotifier *n, void *host, size_t size)
}
}
#ifdef XBOX
static void hax_ram_block_removed(RAMBlockNotifier *n, void *host, size_t size)
{
}
#endif
static struct RAMBlockNotifier hax_ram_notifier = {
.ram_block_added = hax_ram_block_added,
#ifdef XBOX
.ram_block_removed = hax_ram_block_removed,
#endif
};
void hax_memory_init(void)