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