From nobody Tue Feb 10 06:58:32 2026 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) 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=temperror (zoho.com: Error in retrieving data from DNS) 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=1557275601; cv=none; d=zoho.com; s=zohoarc; b=FUeDAjmEa4r4Q2nY7XwOGgcZnXLN/8t2feiGi8jTThwzA6J0AoHPjehc04g9vGHxEK5J/CXV2AqFdXJH76lEeG+/YmkGv8K8AQVoWRM232Ls6IV2OF9gwnJpTMDpMjvx+FUcaxh755GB3EHcCEDetvsVEhfPYGnARveUkuUV0bY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557275601; 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=BFtz5URzR/E+vzG71O/h8BWE9C65m1gz1E6Zde9gnDc=; b=TWWH+rORy1zFmBaVt9ilX1S44blEawMKdYXRmpNEXWnDLmPMHPCVQhIXmT9Bi/N1mxUwIrBusuG6x2B2/K96/cyU2vmOYKParhsR4/+AtfF2At2rBC9T230VQqJdtBoGH8ENVWTWlhdgCm4fOZAs2hBjDi8KpeBkUA9j/Hv5Y9I= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) 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 1557275601343225.50071433337462; Tue, 7 May 2019 17:33:21 -0700 (PDT) Received: from localhost ([127.0.0.1]:56752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOAWD-00056B-6x for importer@patchew.org; Tue, 07 May 2019 20:33:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOA7L-0007ow-TB for qemu-devel@nongnu.org; Tue, 07 May 2019 20:07:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOA7I-0007X1-TW for qemu-devel@nongnu.org; Tue, 07 May 2019 20:07:26 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:44222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOA7G-0007JA-So for qemu-devel@nongnu.org; Tue, 07 May 2019 20:07:23 -0400 Received: by mail-pf1-x444.google.com with SMTP id y13so9480791pfm.11 for ; Tue, 07 May 2019 17:07:20 -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.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 17:07:18 -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=BFtz5URzR/E+vzG71O/h8BWE9C65m1gz1E6Zde9gnDc=; b=Ad6+1B98HeUJs/WMd6q+BNYLk1PN9bgyvsM6NUt05RLRmTks0RLMlPF1X6hHMSk5R0 g7V2DShAlwnATqeEvvsDQ20FG+UMKoBSI7ZysFiRKx6UFs3RvWJxdOKqxCnUcDHeTbM3 18qv7wDuYC91N0C6GHtNYiUXNLcGcN1pcpCOVQvyZ+/ZkdeFk2XGUjxJW7hL8+MQOTKV E4Zj/C21/6C3rjaxn14uMdKe9iiFFPAj7aGnvyYdRXRHA5KQtMaEr5ePETg+wA6IBSw0 LyjGYa2nXIDTQYmiIgSnX2PPRX0kizzcJMjdsEAwJMvU+OpU9qiZJeT1IJeUa7Zt1cHe DRTg== 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=BFtz5URzR/E+vzG71O/h8BWE9C65m1gz1E6Zde9gnDc=; b=CijOrPNbOVDiB7i6m7WOZRzt+WqJi0uhmOuM+cOZN7+9aCWh1TM7Tkz+9Hqg74j7WH MubKDzYnEzQxSE4ev5E7gagatAlwWVKEzb58oJoAOljowvdxAYz6/9zraMbyLZhU5u4A kb1BCOWOlgG4IRSMNQx7ydm9jsqpONFzZay0TJ/j/MQ4UkGefoHeo6XuB4S9CEQC6FiG udoF+eTqm6pvQPtnyOkPB/Z+OU6Y+n520TonKxOohTapknIchQZBM26f3Kk3iHCfTxlo WJ0HgBMO8SlLWmOfiIf+avyo01JgeQIUuBJO3eitFIIkW64CjcBuZ6fl16voIz+oRQMx bPhg== X-Gm-Message-State: APjAAAXj7c+Md4IZQ8LQ8WFQm4yl7Ef+ICA1HRNEDq3nE3yjP+MeAW7k ij2ZGggkhcGtCnQV11AywoA5u9qj34Q= X-Google-Smtp-Source: APXvYqxF0P1Ruv+v/hqg24RMpkQGpf3CjJ2N0ewhbwJ6y+ehNt5MCeIOT6d95cliLHG0Pw+1wAP0qw== X-Received: by 2002:a63:246:: with SMTP id 67mr12167448pgc.145.1557274039289; Tue, 07 May 2019 17:07:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 7 May 2019 17:06:30 -0700 Message-Id: <20190508000641.19090-29-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::444 Subject: [Qemu-devel] [PATCH v3 28/39] target/tricore: 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/tricore/cpu.h | 5 ----- target/tricore/op_helper.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h index 4c997b6d30..fc3328fdf5 100644 --- a/target/tricore/cpu.h +++ b/target/tricore/cpu.h @@ -208,11 +208,6 @@ struct TriCoreCPU { CPUTriCoreState env; }; =20 -static inline TriCoreCPU *tricore_env_get_cpu(CPUTriCoreState *env) -{ - return TRICORE_CPU(container_of(env, TriCoreCPU, env)); -} - #define ENV_OFFSET offsetof(TriCoreCPU, env) =20 hwaddr tricore_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); diff --git a/target/tricore/op_helper.c b/target/tricore/op_helper.c index ed9dc0c83e..ba2f21a6c3 100644 --- a/target/tricore/op_helper.c +++ b/target/tricore/op_helper.c @@ -29,7 +29,7 @@ static void QEMU_NORETURN raise_exception_sync_internal(CPUTriCoreState *env, uint32_t class, int ti= n, uintptr_t pc, uint32_t fcd_pc) { - CPUState *cs =3D CPU(tricore_env_get_cpu(env)); + CPUState *cs =3D env_cpu(env); /* in case we come from a helper-call we need to restore the PC */ cpu_restore_state(cs, pc, true); =20 @@ -2800,7 +2800,7 @@ static inline void QEMU_NORETURN do_raise_exception_e= rr(CPUTriCoreState *env, int error_code, uintptr_t pc) { - CPUState *cs =3D CPU(tricore_env_get_cpu(env)); + CPUState *cs =3D env_cpu(env); cs->exception_index =3D exception; env->error_code =3D error_code; /* now we have a real cpu fault */ --=20 2.17.1