[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/5] tci: Avoid code before declarations
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 3/5] tci: Avoid code before declarations |
Date: |
Thu, 11 Apr 2013 20:15:42 +0200 |
From: Richard Henderson <address@hidden>
This only valid with c99 extensions enabled, and easy to avoid.
Signed-off-by: Richard Henderson <address@hidden>
Signed-off by: Stefan Weil <address@hidden>
---
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
- [Qemu-devel] [PULL] Fixes and minor improvements to TCI, Stefan Weil, 2013/04/11
- [Qemu-devel] [PATCH 3/5] tci: Avoid code before declarations,
Stefan Weil <=
- [Qemu-devel] [PATCH 2/5] tci: Use a local variable for env, Stefan Weil, 2013/04/11
- [Qemu-devel] [PATCH 4/5] tci: Delete unused tb_ret_addr, Stefan Weil, 2013/04/11
- [Qemu-devel] [PATCH 1/5] tci: Use 32-bit signed offsets to loads/stores, Stefan Weil, 2013/04/11
- [Qemu-devel] [PATCH 5/5] tci: Make tcg temporaries local to tcg_qemu_tb_exec, Stefan Weil, 2013/04/11
- Re: [Qemu-devel] [PULL] Fixes and minor improvements to TCI, Aurelien Jarno, 2013/04/13