diff options
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 2 | ||||
-rw-r--r-- | linux-user/syscall.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 356d980f04..9927b8256a 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -87,7 +87,7 @@ int cpu_x86_inl(int addr) void usage(void) { - printf("gemu version 0.1, Copyright (c) 2003 Fabrice Bellard\n" + printf("gemu version" GEMU_VERSION ", Copyright (c) 2003 Fabrice Bellard\n" "usage: gemu [-d] program [arguments...]\n" "Linux x86 emulator\n" ); diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f800fa219e..ac40cf19ef 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -628,6 +628,9 @@ long do_syscall(int num, long arg1, long arg2, long arg3, #endif switch(num) { case TARGET_NR_exit: +#ifdef HAVE_GPROF + _mcleanup(); +#endif _exit(arg1); ret = 0; /* avoid warning */ break; |