Received: from eggs.gnu.org ([208.118.235.92]:36309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaACJ-0008I8-30 for qemu-devel@nongnu.org; Sun, 18 Nov 2012 14:06:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaACG-0000Og-18 for qemu-devel@nongnu.org; Sun, 18 Nov 2012 14:06:27 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:57787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaACF-0000OS-Qh for qemu-devel@nongnu.org; Sun, 18 Nov 2012 14:06:23 -0500 From: Stefan Weil Date: Sun, 18 Nov 2012 20:06:19 +0100 Message-Id: <1353265579-16544-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] tci: fix build breakage for target MIPS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: Stefan Weil , qemu-devel@nongnu.org commit 5f7319cd introduced GETPC() usage for MIPS, which is currently not defined when building with --enable-tcg-interpreter. Add MIPS to the list of targets we selectively define GETPC() for. Signed-off-by: Stefan Weil --- exec-all.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/exec-all.h b/exec-all.h index cce1a65..49f7e38 100644 --- a/exec-all.h +++ b/exec-all.h @@ -290,10 +290,11 @@ 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) -/* Alpha and SH4 user mode emulations and Softmmu call GETPC(). +/* Softmmu, Alpha, MIPS, SH4 and SPARC user mode emulations call GETPC(). For all others, GETPC remains undefined (which makes TCI a little faster. */ -# if defined(CONFIG_SOFTMMU) || defined(TARGET_ALPHA) || defined(TARGET_SH4) \ - || defined(TARGET_SPARC) +# 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 -- 1.7.10.4