From patchwork Tue May 10 15:46:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sergey.fedorov@linaro.org X-Patchwork-Id: 9059791 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DF2C2BF29F for ; Tue, 10 May 2016 15:52:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 446642015A for ; Tue, 10 May 2016 15:52:11 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 98FB320148 for ; Tue, 10 May 2016 15:52:10 +0000 (UTC) Received: from localhost ([::1]:47084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b09xB-00049g-Pk for patchwork-qemu-devel@patchwork.kernel.org; Tue, 10 May 2016 11:52:09 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Aa0ld1MxDYDuLA5a1FM72eefmmj/HPd4YrnnqwVCKcM=; b=Dv0WBUQWWTcn9H8SWnXj/kn3jFryNaOPrVRxKv00i9Z1uu+4AKz1DJotN1hCiWNPc7 FgYBxZ3MiydVPKrl1DsDV63l8U46RBjnly6yFj6g8fAC7w9QWjkR9FqsXsJsPcaLGkOH RbB2+RpwEwnAmRbDRoGhQ11mQcgh3zd5ItVDc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Aa0ld1MxDYDuLA5a1FM72eefmmj/HPd4YrnnqwVCKcM=; b=OZz337NPpa1HshfI+p+/h5aFP+RHuf/2qADtv2pO7XLdjwJiF5K8EfzYWm0GFusniV aTdtPK+cUvLCaFA/Fxc3Qixf+SsdtntiYpaqwnlY2boVtRzXKTbQSshzlFPuPifwI1tB G+Lzv2wWHmdBNQjgB6sJDoIyTLvZaedQ4NrSwECYGkUVvlOB/TSJN8/FflSXOEOBYXC1 dNPFxwNBce2xcz++wF9ptY36woIyZBVcjVkxOgZ2Y4JspNLr92aFIRklZc1+4Lu5NlxQ kosM8gkVk5W21B4l9LNE3cQTvkRzzypkB9Slfz6PUze+hTLCiMqQERy3qt0DnMxwXk34 L0hg== X-Gm-Message-State: AOPr4FXf5WYSoxpsj34S1aFZQKCGfINwMzfsra3czPYjAGicIWaECxRoREPh2gaPIXh33AaK X-Received: by 10.112.125.9 with SMTP id mm9mr17239868lbb.45.1462895241682; Tue, 10 May 2016 08:47:21 -0700 (PDT) Received: from localhost.localdomain ([195.91.132.170]) by smtp.gmail.com with ESMTPSA id jn5sm495952lbc.24.2016.05.10.08.47.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 May 2016 08:47:20 -0700 (PDT) From: Sergey Fedorov To: qemu-devel@nongnu.org Date: Tue, 10 May 2016 18:46:45 +0300 Message-Id: <1462895205-8411-6-git-send-email-sergey.fedorov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462895205-8411-1-git-send-email-sergey.fedorov@linaro.org> References: <1462895205-8411-1-git-send-email-sergey.fedorov@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22f Subject: [Qemu-devel] [PATCH 5/5] cpu-exec: Remove unused 'x86_cpu' and 'env' from cpu_exec() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sergey Fedorov , Peter Crosthwaite , Paolo Bonzini , Sergey Fedorov , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sergey Fedorov Signed-off-by: Sergey Fedorov Signed-off-by: Sergey Fedorov Reviewed-by: Richard Henderson --- 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();