mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
@@ -1846,7 +1846,7 @@ CPUState *cpu_mb_init (const char *cpu_model)
|
||||
static int tcg_initialized = 0;
|
||||
int i;
|
||||
|
||||
env = qemu_mallocz(sizeof(CPUState));
|
||||
env = g_malloc0(sizeof(CPUState));
|
||||
|
||||
cpu_exec_init(env);
|
||||
cpu_reset(env);
|
||||
|
||||
Reference in New Issue
Block a user