From nobody Tue Feb 10 13:18:16 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1553815908379366.59473137247915; Thu, 28 Mar 2019 16:31:48 -0700 (PDT) Received: from localhost ([127.0.0.1]:43328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9eUq-0003Uv-Ce for importer@patchew.org; Thu, 28 Mar 2019 19:31:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9eKn-0001dn-71 for qemu-devel@nongnu.org; Thu, 28 Mar 2019 19:21:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9e4t-0003CT-8u for qemu-devel@nongnu.org; Thu, 28 Mar 2019 19:04:59 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:40541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9e4r-0003AH-44 for qemu-devel@nongnu.org; Thu, 28 Mar 2019 19:04:53 -0400 Received: by mail-pg1-x542.google.com with SMTP id u9so226312pgo.7 for ; Thu, 28 Mar 2019 16:04:51 -0700 (PDT) Received: from cloudburst.ASUS (cpe-66-75-72-255.hawaii.res.rr.com. [66.75.72.255]) by smtp.gmail.com with ESMTPSA id f1sm280911pgl.35.2019.03.28.16.04.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 16:04:49 -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=KTPu0A4yRZk6SAccQ35Jw9mugJOMEe3GiZ5yoFwzJeQ=; b=qei9l4a4aCT1BMIbIaVcsjId2A/VAk3XvO/xBXzKYi7aO8HiV0r81/9BrAGCq/RL7X 6y7m/CkzqO5vG9OKjrwjQbl2/zfY4TX6Jin1lrfAXLHcpaiXWNguPUQO196Do2Jvlv4E IDyTCwDov8Tm9Zbi/iIjiM3h/fxVKRrTm+0RDQTCFxMJFphm/SfIU+vXTMTGY1ZvbvKx nkKx6OonphpBNPQ0m5gm6xvGkZ08bNNlSXphiVndbAxIFgdnYpIyP2Xf2IXj5ZBPF/cC wmwnwpjDfrBhXKo/ew+4TPE+P6mQN0Gsg+dfgvtpFsp6zM4WzFTQ1eV1gbS4nFAkotaI jNsg== 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=KTPu0A4yRZk6SAccQ35Jw9mugJOMEe3GiZ5yoFwzJeQ=; b=R72i4U/oj3aE9q1ilzUKmTXSCoK/a3ZI1XJxybQg4gWNs/J29jiIfSRmoXI+P8F1Bm mtGHVleF1zdVn7Dvt1a+6mlzhs/CMdmddQiV4/tbm8i/aeQuLtS+y+lZf4Hjj4uysSf9 tqhet5kmoDa9M/fY0umRbU6tpWWnv6hoQNAVLi6qfvD2c5cwyeLDr9YxbC+PgoQmeqok DZ3tUw+AsVMbsau8LsAY/KP5XkT6Z7USdyjD1e2SX5JLYsUdIhxx9fIAGE+hc8p9K0Te TfGojiYsK4CFcK9kFV7Ji5oH+roCcVbYlDioslT3hfWTv7Jw0z916axzMYFHo0WDbzYz TCdQ== X-Gm-Message-State: APjAAAWM77l6+44TtkdewTT49NOY9HmuMNRIgRPaRQamM1+BWPhJExy4 1Ae/o9wB2shqPojEitZV+hS7a3v1R6o= X-Google-Smtp-Source: APXvYqysfAOyC9F9Lq8K4zXg3/rs0gyPLfiuqfJgn9M6qeol/j/Rlq7VhD/Iihhq/EULnP+S9SmfIw== X-Received: by 2002:a65:518b:: with SMTP id h11mr42728631pgq.41.1553814289959; Thu, 28 Mar 2019 16:04:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 28 Mar 2019 13:03:54 -1000 Message-Id: <20190328230404.12909-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328230404.12909-1-richard.henderson@linaro.org> References: <20190328230404.12909-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::542 Subject: [Qemu-devel] [PATCH for-4.1 v2 26/36] 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" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- 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 ed32622388..9ea5060a87 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