Received: from eggs.gnu.org ([2001:4830:134:3::10]:49890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b09sb-0002BR-4h for qemu-devel@nongnu.org; Tue, 10 May 2016 11:47:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b09sY-00006c-Rr for qemu-devel@nongnu.org; Tue, 10 May 2016 11:47:23 -0400 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:35470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b09sY-00006E-KY for qemu-devel@nongnu.org; Tue, 10 May 2016 11:47:22 -0400 Received: by mail-lf0-x22f.google.com with SMTP id j8so19614779lfd.2 for ; Tue, 10 May 2016 08:47:22 -0700 (PDT) From: Sergey Fedorov Date: Tue, 10 May 2016 18:46:45 +0300 Message-Id: <1462895205-8411-6-git-send-email-sergey.fedorov@linaro.org> In-Reply-To: <1462895205-8411-1-git-send-email-sergey.fedorov@linaro.org> References: <1462895205-8411-1-git-send-email-sergey.fedorov@linaro.org> Subject: [Qemu-devel] [PATCH 5/5] cpu-exec: Remove unused 'x86_cpu' and 'env' from cpu_exec() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sergey Fedorov , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Sergey Fedorov , Paolo Bonzini , Peter Crosthwaite , Richard Henderson From: Sergey Fedorov Signed-off-by: Sergey Fedorov Signed-off-by: Sergey Fedorov --- cpu-exec.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index 60f565074618..2526df0e3e40 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -571,10 +571,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb, int cpu_exec(CPUState *cpu) { CPUClass *cc = CPU_GET_CLASS(cpu); -#ifdef TARGET_I386 - X86CPU *x86_cpu = X86_CPU(cpu); - CPUArchState *env = &x86_cpu->env; -#endif int ret; SyncClocks sc; @@ -630,18 +626,10 @@ int cpu_exec(CPUState *cpu) * Newer versions of gcc would complain about this code (-Wclobbered). */ cpu = current_cpu; cc = CPU_GET_CLASS(cpu); -#ifdef TARGET_I386 - x86_cpu = X86_CPU(cpu); - env = &x86_cpu->env; -#endif #else /* buggy compiler */ /* Assert that the compiler does not smash local variables. */ g_assert(cpu == current_cpu); g_assert(cc == CPU_GET_CLASS(cpu)); -#ifdef TARGET_I386 - g_assert(x86_cpu == X86_CPU(cpu)); - g_assert(env == &x86_cpu->env); -#endif #endif /* buggy compiler */ cpu->can_do_io = 1; tb_lock_reset(); -- 1.9.1