Received: from eggs.gnu.org ([208.118.235.92]:47533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQM2W-0007gE-42 for qemu-devel@nongnu.org; Thu, 11 Apr 2013 14:16:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQM2S-0006cZ-Dl for qemu-devel@nongnu.org; Thu, 11 Apr 2013 14:16:04 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:59772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQM2S-0006c8-6p for qemu-devel@nongnu.org; Thu, 11 Apr 2013 14:16:00 -0400 From: Stefan Weil Date: Thu, 11 Apr 2013 20:15:42 +0200 Message-Id: <1365704144-8852-4-git-send-email-sw@weilnetz.de> In-Reply-To: <1365704144-8852-1-git-send-email-sw@weilnetz.de> References: <1365704144-8852-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH 3/5] tci: Avoid code before declarations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Richard Henderson From: Richard Henderson This only valid with c99 extensions enabled, and easy to avoid. Signed-off-by: Richard Henderson Signed-off by: Stefan Weil --- tci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tci.c b/tci.c index 77e0980..70f8308 100644 --- a/tci.c +++ b/tci.c @@ -441,9 +441,6 @@ tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) assert(tb_ptr); for (;;) { -#if defined(GETPC) - tci_tb_ptr = (uintptr_t)tb_ptr; -#endif TCGOpcode opc = tb_ptr[0]; #if !defined(NDEBUG) uint8_t op_size = tb_ptr[1]; @@ -466,6 +463,10 @@ tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) uint64_t v64; #endif +#if defined(GETPC) + tci_tb_ptr = (uintptr_t)tb_ptr; +#endif + /* Skip opcode and size entry. */ tb_ptr += 2; -- 1.7.10.4