Skip to contentSkip to conversation

linux-user: Clean up interim solution for exit syscall

PATCH RESEND New Andreas Färber 1 participant 1 message May 1, 2012

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 linux-user: Clean up interim solution for exit syscall

After all target CPUs have been QOM'ified, we no longer need an #ifdef to switch between object_delete() and g_free() in NPTL thread exit.

---
 linux-user/syscall.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
linux-user/syscall.c +0 -4
index 7128618..801b8ed 100644
@@ -5045,11 +5045,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
                         NULL, NULL, 0);
           }
           thread_env = NULL;
-#ifdef ENV_GET_CPU
           object_delete(OBJECT(ENV_GET_CPU(cpu_env)));
-#else
-          g_free(cpu_env);
-#endif
           g_free(ts);
           pthread_exit(NULL);
       }
Signature · 1 line
1.7.7