[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] tci: Use a local variable for env
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 2/5] tci: Use a local variable for env |
Date: |
Thu, 11 Apr 2013 20:15:41 +0200 |
From: Richard Henderson <address@hidden>
Since we have total conversion away from global AREG0, we do not
need a global variable named "env". Retain that name as the
function parameter inside the interpreter.
Signed-off-by: Richard Henderson <address@hidden>
Signed-off by: Stefan Weil <address@hidden>
---
tci.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/tci.c b/tci.c
index 9ce0be3..77e0980 100644
--- a/tci.c
+++ b/tci.c
@@ -51,11 +51,6 @@ typedef uint64_t (*helper_function)(tcg_target_ulong,
tcg_target_ulong,
tcg_target_ulong);
#endif
-/* TCI can optionally use a global register variable for env. */
-#if !defined(AREG0)
-CPUArchState *env;
-#endif
-
/* Targets which don't use GETPC also don't need tci_tb_ptr
which makes them a little faster. */
#if defined(GETPC)
@@ -438,11 +433,10 @@ static bool tci_compare64(uint64_t u0, uint64_t u1,
TCGCond condition)
}
/* Interpret pseudo code in tb. */
-tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *cpustate, uint8_t *tb_ptr)
+tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr)
{
tcg_target_ulong next_tb = 0;
- env = cpustate;
tci_reg[TCG_AREG0] = (tcg_target_ulong)env;
assert(tb_ptr);
--
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, 2013/04/11
- [Qemu-devel] [PATCH 2/5] tci: Use a local variable for env,
Stefan Weil <=
- [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