cleanup more synchronization code

This commit is contained in:
Nguyen Anh Quynh
2017-01-09 14:05:39 +08:00
parent d7ead1135d
commit 52cb0ba78e
13 changed files with 0 additions and 279 deletions

4
uc.c
View File

@@ -292,7 +292,6 @@ uc_err uc_close(uc_engine *uc)
// Cleanup CPU.
g_free(uc->cpu->tcg_as_listener);
g_free(uc->cpu->thread);
g_free(uc->cpu->halt_cond);
// Cleanup all objects.
OBJECT(uc->machine_state->accelerator)->ref = 1;
@@ -315,9 +314,6 @@ uc_err uc_close(uc_engine *uc)
if (uc->qemu_thread_data)
free(uc->qemu_thread_data);
qemu_mutex_destroy(&uc->qemu_global_mutex);
qemu_cond_destroy(&uc->qemu_cpu_cond);
// Other auxilaries.
free(uc->l1_map);