summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-03-28 05:37:53 +0000
committerStefan Weil <sw@weilnetz.de>2013-04-11 19:58:21 +0200
commitdea8fde8b8cb1ab14e15308aadbf88eeccd4e873 (patch)
tree45b34b3f7b4cfaa4fa655f9d1042365fe7030de0
parent7648746844a7775566ada1db1c117943aaf64b83 (diff)
downloadfocaccia-qemu-dea8fde8b8cb1ab14e15308aadbf88eeccd4e873.tar.gz
focaccia-qemu-dea8fde8b8cb1ab14e15308aadbf88eeccd4e873.zip
tci: Avoid code before declarations
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>
-rw-r--r--tci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tci.c b/tci.c
index 77e0980417..70f8308f93 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;