]> git.proxmox.com Git - qemu.git/commitdiff
tci: Avoid code before declarations
authorRichard Henderson <rth@twiddle.net>
Thu, 28 Mar 2013 05:37:53 +0000 (05:37 +0000)
committerStefan Weil <sw@weilnetz.de>
Thu, 11 Apr 2013 17:58:21 +0000 (19:58 +0200)
This only valid with c99 extensions enabled, and easy to avoid.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off by: Stefan Weil <sw@weilnetz.de>

tci.c

diff --git a/tci.c b/tci.c
index 77e0980417665805ee5f3b736c0a54a9825cfa19..70f8308f9364284b0699baebb7c1f0b139e07f1f 100644 (file)
--- 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;