Commit 9788c9cadf42e4814b0ed0c491734292a13a0b2d

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent 5735147e

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>
bsd-user/syscall.c
... ... @@ -66,7 +66,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1,
66 66  
67 67 switch(num) {
68 68 case TARGET_FREEBSD_NR_exit:
69   -#ifdef HAVE_GPROF
  69 +#ifdef TARGET_GPROF
70 70 _mcleanup();
71 71 #endif
72 72 gdb_exit(cpu_env, arg1);
... ... @@ -138,7 +138,7 @@ abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long arg1,
138 138  
139 139 switch(num) {
140 140 case TARGET_NETBSD_NR_exit:
141   -#ifdef HAVE_GPROF
  141 +#ifdef TARGET_GPROF
142 142 _mcleanup();
143 143 #endif
144 144 gdb_exit(cpu_env, arg1);
... ... @@ -210,7 +210,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1,
210 210  
211 211 switch(num) {
212 212 case TARGET_OPENBSD_NR_exit:
213   -#ifdef HAVE_GPROF
  213 +#ifdef TARGET_GPROF
214 214 _mcleanup();
215 215 #endif
216 216 gdb_exit(cpu_env, arg1);
... ...
configure
... ... @@ -1583,7 +1583,7 @@ if test -n &quot;$sparc_cpu&quot;; then
1583 1583 fi
1584 1584 if test "$gprof" = "yes" ; then
1585 1585 echo "TARGET_GPROF=yes" >> $config_host_mak
1586   - echo "#define HAVE_GPROF 1" >> $config_host_h
  1586 + echo "#define TARGET_GPROF 1" >> $config_host_h
1587 1587 fi
1588 1588 if test "$static" = "yes" ; then
1589 1589 echo "CONFIG_STATIC=y" >> $config_host_mak
... ...
linux-user/syscall.c
... ... @@ -57,7 +57,7 @@
57 57 #include <netinet/ip.h>
58 58 #include <netinet/tcp.h>
59 59 #include <qemu-common.h>
60   -#ifdef HAVE_GPROF
  60 +#ifdef TARGET_GPROF
61 61 #include <sys/gmon.h>
62 62 #endif
63 63  
... ... @@ -4162,7 +4162,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
4162 4162 pthread_exit(NULL);
4163 4163 }
4164 4164 #endif
4165   -#ifdef HAVE_GPROF
  4165 +#ifdef TARGET_GPROF
4166 4166 _mcleanup();
4167 4167 #endif
4168 4168 gdb_exit(cpu_env, arg1);
... ... @@ -5676,7 +5676,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
5676 5676 #ifdef __NR_exit_group
5677 5677 /* new thread calls */
5678 5678 case TARGET_NR_exit_group:
5679   -#ifdef HAVE_GPROF
  5679 +#ifdef TARGET_GPROF
5680 5680 _mcleanup();
5681 5681 #endif
5682 5682 gdb_exit(cpu_env, arg1);
... ...