From patchwork Wed May 11 10:21:51 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: 9067601 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7C55C9F1C1 for ; Wed, 11 May 2016 10:24:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2E20201B9 for ; Wed, 11 May 2016 10:24:03 +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 2B34A20114 for ; Wed, 11 May 2016 10:24:03 +0000 (UTC) Received: from localhost ([::1]:51479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0RJC-0005lz-6e for patchwork-qemu-devel@patchwork.kernel.org; Wed, 11 May 2016 06:24:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0RHY-0002h7-Gg for qemu-devel@nongnu.org; Wed, 11 May 2016 06:22:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0RHT-0000ch-Lv for qemu-devel@nongnu.org; Wed, 11 May 2016 06:22:20 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:33087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0RHS-0000ca-TZ for qemu-devel@nongnu.org; Wed, 11 May 2016 06:22:15 -0400 Received: by mail-lf0-x234.google.com with SMTP id y84so44414617lfc.0 for ; Wed, 11 May 2016 03:22:14 -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=mDMniRyKP+8pvFWalz9yP/KHzJErwovMggl9ZZD+ZlQ=; b=BmfaxEOOKe1DxsLUNgNFnBq8N6+rCUl+igl0aJamPbtp/tpi/UcKRIvpV8uzFTaE2y gEq36Bz9hAqejEYNfQLSkUbDUsETeA0VvPO1emuZlnfqTXPqlEPN+75Kztfw2YHMtRRi HrM7Mj/LDZ2fpCEDezVC5IGA1eY13QrrrKWZY= 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=mDMniRyKP+8pvFWalz9yP/KHzJErwovMggl9ZZD+ZlQ=; b=EjMkDtgQ3PXRvvrpsUnu5We1C1+iiEHohSVz233Ma1y5IheM9JpcvXMp06j0AF1U7i m8PYowjkm8xoEJHrgY06xq4ePBFuEmkOQdZm7nl4Xqg/uDACtEPBm44alafvm/uwVeJN EYMAAsW7DhcmMdDGlIVM81Y4yssajyXvXkACvleTABtANb72PpGtsZ2oDBIXG5f+ryQg Ddu+DXyyr0Zk3j9RIkZDLLtGHR6gB/47i+6VOzGFHdy95668AHDiH2Ydk41nF8w3ZlBv W9gOzKiMrzYfrd1AQkpsYZc8V3arfTf6Y3lhhPl9UqB4Fwb8Kvu7VrxUlJZhWF40uQBG CXIQ== X-Gm-Message-State: AOPr4FUDZnlprfPtu1gpKyd9Sj2lGFCa8j9e95xvVVKz4IUjBXDdVnemHgfh34AfzqFLj+9N X-Received: by 10.112.140.3 with SMTP id rc3mr1091708lbb.85.1462962134175; Wed, 11 May 2016 03:22:14 -0700 (PDT) Received: from sergey-laptop.Dlink (broadband-46-188-121-115.2com.net. [46.188.121.115]) by smtp.gmail.com with ESMTPSA id m1sm1196398lfb.45.2016.05.11.03.22.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 03:22:13 -0700 (PDT) From: Sergey Fedorov To: qemu-devel@nongnu.org Date: Wed, 11 May 2016 13:21:51 +0300 Message-Id: <1462962111-32237-6-git-send-email-sergey.fedorov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462962111-32237-1-git-send-email-sergey.fedorov@linaro.org> References: <1462962111-32237-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::234 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 , Richard Henderson , Peter Crosthwaite , Sergey Fedorov , Paolo Bonzini 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 197861f8407b..b57f91ced162 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();