Received: from eggs.gnu.org ([208.118.235.92]:60831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Twe1H-0006Wm-LF for qemu-devel@nongnu.org; Sat, 19 Jan 2013 14:24:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Twe1E-0004iz-KN for qemu-devel@nongnu.org; Sat, 19 Jan 2013 14:23:59 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:49955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Twe1E-0004id-DQ for qemu-devel@nongnu.org; Sat, 19 Jan 2013 14:23:56 -0500 From: Stefan Weil Date: Sat, 19 Jan 2013 20:23:51 +0100 Message-Id: <1358623431-22847-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] tci: Fix broken build (regression) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Stefan Weil , qemu-devel@nongnu.org s390x-linux-user now also uses GETPC. Instead of adding it to the list of targets which use GETPC, the macro is now defined unconditionally. This avoids future build regressions like this one: CC s390x-linux-user/target-s390x/int_helper.o cc1: warnings being treated as errors qemu/target-s390x/int_helper.c: In function =E2=80=98helper_divs32=E2=80=99= : qemu/target-s390x/int_helper.c:47: error: implicit declaration of functio= n =E2=80=98GETPC=E2=80=99 qemu/target-s390x/int_helper.c:47: error: nested extern declaration of =E2= =80=98GETPC=E2=80=99 Signed-off-by: Stefan Weil --- Hi Blue, please commit this patch to fix compilations with TCI. The performance decrease caused by using GETPC in TCI's interpreter loop can be reduced in a better way by only setting tci_tb_ptr before calling a helper function. This should be done in a separate patch. Regards, Stefan include/exec/exec-all.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 46dca74..d235ef8 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -284,14 +284,8 @@ extern int tb_invalidated_flag; /* The return address may point to the start of the next instruction. Subtracting one gets us the call instruction itself. */ #if defined(CONFIG_TCG_INTERPRETER) -/* Softmmu, Alpha, MIPS, SH4 and SPARC user mode emulations call GETPC()= . - For all others, GETPC remains undefined (which makes TCI a little fas= ter. */ -# if defined(CONFIG_SOFTMMU) || \ - defined(TARGET_ALPHA) || defined(TARGET_MIPS) || \ - defined(TARGET_SH4) || defined(TARGET_SPARC) extern uintptr_t tci_tb_ptr; -# define GETPC() tci_tb_ptr -# endif +# define GETPC() tci_tb_ptr #elif defined(__s390__) && !defined(__s390x__) # define GETPC() \ (((uintptr_t)__builtin_return_address(0) & 0x7fffffffUL) - 1) --=20 1.7.10.4