rename HAVE_GPROF to TARGET_GPROF

Use was not consistent, in Makefile was TARGET_GPROF and in *h HAVE_GPROF

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-07-27 16:13:02 +02:00 committed by Anthony Liguori
parent 5735147e5f
commit 9788c9cadf
3 changed files with 7 additions and 7 deletions

View File

@ -66,7 +66,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1,
switch(num) { switch(num) {
case TARGET_FREEBSD_NR_exit: case TARGET_FREEBSD_NR_exit:
#ifdef HAVE_GPROF #ifdef TARGET_GPROF
_mcleanup(); _mcleanup();
#endif #endif
gdb_exit(cpu_env, arg1); gdb_exit(cpu_env, arg1);
@ -138,7 +138,7 @@ abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long arg1,
switch(num) { switch(num) {
case TARGET_NETBSD_NR_exit: case TARGET_NETBSD_NR_exit:
#ifdef HAVE_GPROF #ifdef TARGET_GPROF
_mcleanup(); _mcleanup();
#endif #endif
gdb_exit(cpu_env, arg1); gdb_exit(cpu_env, arg1);
@ -210,7 +210,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1,
switch(num) { switch(num) {
case TARGET_OPENBSD_NR_exit: case TARGET_OPENBSD_NR_exit:
#ifdef HAVE_GPROF #ifdef TARGET_GPROF
_mcleanup(); _mcleanup();
#endif #endif
gdb_exit(cpu_env, arg1); gdb_exit(cpu_env, arg1);

2
configure vendored
View File

@ -1583,7 +1583,7 @@ if test -n "$sparc_cpu"; then
fi fi
if test "$gprof" = "yes" ; then if test "$gprof" = "yes" ; then
echo "TARGET_GPROF=yes" >> $config_host_mak echo "TARGET_GPROF=yes" >> $config_host_mak
echo "#define HAVE_GPROF 1" >> $config_host_h echo "#define TARGET_GPROF 1" >> $config_host_h
fi fi
if test "$static" = "yes" ; then if test "$static" = "yes" ; then
echo "CONFIG_STATIC=y" >> $config_host_mak echo "CONFIG_STATIC=y" >> $config_host_mak

View File

@ -57,7 +57,7 @@
#include <netinet/ip.h> #include <netinet/ip.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <qemu-common.h> #include <qemu-common.h>
#ifdef HAVE_GPROF #ifdef TARGET_GPROF
#include <sys/gmon.h> #include <sys/gmon.h>
#endif #endif
@ -4162,7 +4162,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
pthread_exit(NULL); pthread_exit(NULL);
} }
#endif #endif
#ifdef HAVE_GPROF #ifdef TARGET_GPROF
_mcleanup(); _mcleanup();
#endif #endif
gdb_exit(cpu_env, arg1); gdb_exit(cpu_env, arg1);
@ -5676,7 +5676,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
#ifdef __NR_exit_group #ifdef __NR_exit_group
/* new thread calls */ /* new thread calls */
case TARGET_NR_exit_group: case TARGET_NR_exit_group:
#ifdef HAVE_GPROF #ifdef TARGET_GPROF
_mcleanup(); _mcleanup();
#endif #endif
gdb_exit(cpu_env, arg1); gdb_exit(cpu_env, arg1);