aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-06 23:23:54 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-06 23:23:54 +0000
commit7d13299d07a9c3c42277207ae7a691f0501a70b2 (patch)
tree981b791299c674712bacc00292de4afc6cc436ec /linux-user
parent1017ebe9cb38ae034b0e7c6c449abe2c9b5284fb (diff)
downloadqemu-7d13299d07a9c3c42277207ae7a691f0501a70b2.zip
qemu-7d13299d07a9c3c42277207ae7a691f0501a70b2.tar.gz
qemu-7d13299d07a9c3c42277207ae7a691f0501a70b2.tar.bz2
added translation cache
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@25 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c2
-rw-r--r--linux-user/syscall.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 356d980..9927b82 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 f800fa2..ac40cf1 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;