From nobody Tue Feb 10 11:15:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1557275426; cv=none; d=zoho.com; s=zohoarc; b=kSTBoaqLICpeNO6wOZksNfTQIjDzqypbXFcsAxvuKzEIcBlD3KC4xdBDi5pgjNIOPX/fyhnXJKkI/300tfeEIZp324n2/71bh3UlHf+P+BujXL7sRgFwmri8AGx+xlkl557ZYgyGY6pRfDFaVfAJjBtI2JJChw114E/yeF4t0ro= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557275426; h=Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=oAoyrYKzSYqMV8L8feOy4E2tXuYIVICXlQ/6UykqD8c=; b=iq1QrUDD0VDrTTBTYMRWeSx0qSp1AE7zgTtlT5WZpAQeWEJnVGZomuS4/elzH4WKwWuPunwoEYfmlBS0x2MqL+bfdtONTftJdvI3A81lvH9xRzbKPPtvOOxDekX/9IKEkQMDgHAH7PL1I5fnswpvPIDNO2UsT7LRBfXoyP++hhw= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1557275426889490.5279090582533; Tue, 7 May 2019 17:30:26 -0700 (PDT) Received: from localhost ([127.0.0.1]:56698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOATT-0002Ls-St for importer@patchew.org; Tue, 07 May 2019 20:30:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOA7K-0007nW-T7 for qemu-devel@nongnu.org; Tue, 07 May 2019 20:07:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOA7I-0007XI-W9 for qemu-devel@nongnu.org; Tue, 07 May 2019 20:07:26 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:41646) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOA7H-0007Ft-2o for qemu-devel@nongnu.org; Tue, 07 May 2019 20:07:24 -0400 Received: by mail-pf1-x442.google.com with SMTP id l132so1138pfc.8 for ; Tue, 07 May 2019 17:07:19 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id j1sm15793183pgp.91.2019.05.07.17.07.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 17:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=oAoyrYKzSYqMV8L8feOy4E2tXuYIVICXlQ/6UykqD8c=; b=BQm/FaLGC95f79CODrRTw189Z/cCMkIGiRdn130r3dvcS1lPtFLbuoUbfYZj/nmtKo +nV36W9B9g9iKTML2MtpUUVW4sYCM25AKd6LHMi3DFDtXt/SXD0PzecHdG8ePDex2Zox XAt9QGOKIIkWQi70TyROaxbgqZ+8uGeirNnPWVjyjLCEtW8AOy/HVAHaWkyT7eTzb07r kDOOERT9FNrowNAisd15wk9yqf1octTLqkuvLgwCUq7urCRZ2v+387qDCyWTyWiCTx8m PVqCWRGkJQqlS8rHNoY+kX7C+HXrZw6T1QrhAMlHvSCaImhp/ZI+VO70p36t/+7GZfc3 uI5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=oAoyrYKzSYqMV8L8feOy4E2tXuYIVICXlQ/6UykqD8c=; b=aEgMT2PdYjlBD/zCMdKVwoji+aSWjYTKgh1tFP54iJmugeLJH35fEXj+Dg/oD+cNzr gLBHnTJRgM5oAbpka+0CQU72koZ0Sal7qmXz4Ijt/itiRgEmv0fBitVIXE5hcBkAtlCl hk2sqB/WuO0gRR8pGllXJPPvT/2KDl/1QyejDRSipXVcNWJtcm95twnBk+rIWQsRjBl8 NNxIz4tO0vRS0JzyNS8IQ/oZMC6WVXyhRdOQj2HxIh9foRf2ajXXH7F4ggmepis3F88B s/akDaRaE3C19RsTHFVERiU9rYV6E36BmvU/ecOnlgMBJLoCQxq6V+5NmqODv687Lh1x /ONQ== X-Gm-Message-State: APjAAAWERc7W/9usdm1DfvX4GQsKRUuWfWIZAFY6fITWfWKDGfo1lq5x FxjcQFZwTTivwVZv/Th9DLRsB29o9xg= X-Google-Smtp-Source: APXvYqyJvburaHSZV0AmUOqNTlrLWewOV/+5dGTe3iGEaH71eOv0shPpr9wouHc7Y3ubgIE8mSimZg== X-Received: by 2002:a65:64da:: with SMTP id t26mr43403471pgv.322.1557274038163; Tue, 07 May 2019 17:07:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 7 May 2019 17:06:29 -0700 Message-Id: <20190508000641.19090-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190508000641.19090-1-richard.henderson@linaro.org> References: <20190508000641.19090-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 Subject: [Qemu-devel] [PATCH v3 27/39] target/tilegx: Use env_cpu 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Reviewed-by: Alistair Francis --- target/tilegx/cpu.h | 5 ----- linux-user/tilegx/cpu_loop.c | 2 +- target/tilegx/helper.c | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/target/tilegx/cpu.h b/target/tilegx/cpu.h index 135df63523..7f8fe7c513 100644 --- a/target/tilegx/cpu.h +++ b/target/tilegx/cpu.h @@ -138,11 +138,6 @@ typedef struct TileGXCPU { CPUTLGState env; } TileGXCPU; =20 -static inline TileGXCPU *tilegx_env_get_cpu(CPUTLGState *env) -{ - return container_of(env, TileGXCPU, env); -} - #define ENV_OFFSET offsetof(TileGXCPU, env) =20 /* TILE-Gx memory attributes */ diff --git a/linux-user/tilegx/cpu_loop.c b/linux-user/tilegx/cpu_loop.c index 4f39eb9ad3..d4abe29dcd 100644 --- a/linux-user/tilegx/cpu_loop.c +++ b/linux-user/tilegx/cpu_loop.c @@ -206,7 +206,7 @@ static void do_fetch(CPUTLGState *env, int trapnr, bool= quad) =20 void cpu_loop(CPUTLGState *env) { - CPUState *cs =3D CPU(tilegx_env_get_cpu(env)); + CPUState *cs =3D env_cpu(env); int trapnr; =20 while (1) { diff --git a/target/tilegx/helper.c b/target/tilegx/helper.c index 4964bb9111..a57a679825 100644 --- a/target/tilegx/helper.c +++ b/target/tilegx/helper.c @@ -28,7 +28,7 @@ =20 void helper_exception(CPUTLGState *env, uint32_t excp) { - CPUState *cs =3D CPU(tilegx_env_get_cpu(env)); + CPUState *cs =3D env_cpu(env); =20 cs->exception_index =3D excp; cpu_loop_exit(cs); --=20 2.17.1