Received: from eggs.gnu.org ([208.118.235.92]:58354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULEu0-0006oM-9V for qemu-devel@nongnu.org; Thu, 28 Mar 2013 11:38:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULEtw-0005EI-PI for qemu-devel@nongnu.org; Thu, 28 Mar 2013 11:38:08 -0400 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]:65498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULEtw-0005Dz-Ia for qemu-devel@nongnu.org; Thu, 28 Mar 2013 11:38:04 -0400 Received: by mail-bk0-f43.google.com with SMTP id jm2so852815bkc.16 for ; Thu, 28 Mar 2013 08:38:03 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 28 Mar 2013 08:37:52 -0700 Message-Id: <1364485075-17899-3-git-send-email-rth@twiddle.net> In-Reply-To: <1364485075-17899-1-git-send-email-rth@twiddle.net> References: <1364485075-17899-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 2/5] tci: Use a local variable for env List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil 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 --- 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.8.1.4