From nobody Sun May 19 09:23:51 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1674034458; cv=none; d=zohomail.com; s=zohoarc; b=nkzmyteeYo93VyvK+AF5h9fmj6yVthpnFWHATJG6QobmPpN6fn278WIJjft7fEaLhGJ07QBlvtFzPMWIK+BSGAGDoqOrAmoV0hnc3U4EUu+jTdk3D+OjBToI9M0nSeW5GxYsbzvOqPEK640j3MTQZOfyYghbHDL8jUZMixICQYk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674034458; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=H/razzPsUsorwhmjUmtJZoXvlXx8u4fd+lsUzclwjxM=; b=dw+Q83gTEseyYiK42Lgofyb9P7haeWxPoCzw9rHq4RT2LX0PMjw6cghrs8JY0aWe8Er7T7yApguSBB4TUTurDCdfOExR8sLTjvN3oxNeD39EuPBaesR5e+3k1yfdpL1X3QKpWCwILtCEtjH6ShOeRLmkDqO4B2v60arsd+DX9f8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1674034458513516.5300398001648; Wed, 18 Jan 2023 01:34:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI4p1-0005Qm-Vh; Wed, 18 Jan 2023 04:33:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI4oy-0005P0-AR for qemu-devel@nongnu.org; Wed, 18 Jan 2023 04:33:28 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pI4ow-00027t-Jb for qemu-devel@nongnu.org; Wed, 18 Jan 2023 04:33:28 -0500 Received: by mail-wm1-x32a.google.com with SMTP id f12-20020a7bc8cc000000b003daf6b2f9b9so949775wml.3 for ; Wed, 18 Jan 2023 01:33:25 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id f24-20020a05600c491800b003d9e74dd9b2sm1394901wmp.9.2023.01.18.01.33.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 18 Jan 2023 01:33:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=H/razzPsUsorwhmjUmtJZoXvlXx8u4fd+lsUzclwjxM=; b=P759FQeq7o8lRdaky0h7R6JkgjHxUXaGx+g/6vKo5IYgMgCEroXirXvqTZT5QVeQSS 6m29eSC58YwquV0IY2mmES9orA6sS6QV4g7cTf9Jnv7lMT4zpH8AdGK2q5Y6V05p2Rnu Z/pLRUNPI/mTaIzapVBSpZzSszhs+Q/DDhVQQItJ5b4UxAC9ECnJCOZL7E4FQYKDeTUQ ssZe8EYd25eiTvBjIjpPCFVlJ4cQ1tt01w/7vWzUEgMDk/i02LqslyzXrkzALywc5H3o 12KfMa+HLigoDSGiP94VgwINfpaidLRnU4K6AnzSlNiZmDBkm2z1LCfWYIj+TjjErgjU zACw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H/razzPsUsorwhmjUmtJZoXvlXx8u4fd+lsUzclwjxM=; b=FIUaWlw+G7v036wjDE9jshhwCjLO/FnB4p3XjqAPjJkGVeqwg2bLpPftHFODWmPtrU Cu8QE2vFJ21W6FYi1rZ2S7PKqd2zbHL6Ry8pvtGYS2A2g5Lyr/9MkmEBlFQRh2yrhDCr fJJPN+09312jGnme6eXnwVBSLkRa5HN8RL9qBAlc0hcU4r1mARaAtX9cykal7mbQ18Ay yYpgVm83Xbn0CvjnJr4o/wA/mt1Gyf00Nhft7iFgsY0bWq+HHBit3loEohI2DXmOeLXR ftuV+B4sQb+054nyMXdHj2zn1dyp46SFtbHAd0P/l+wmbw+EYQ8e51rq5GQA5ONjetpf bYSg== X-Gm-Message-State: AFqh2kpK4YL7fD1X2fNcwdgo0vtAcmJ7eEIbGbrkipg963Y4fwCUXrQB /6QNslKPQXWI2uq27UFUBz9h8eVvc3rF0Nj8 X-Google-Smtp-Source: AMrXdXukImYkpDjcD8XMQd8YgNy8KuZZpdJlWkM9mjrEfSyqQEzO6R3y3Bb3aD9J920Aq+9uAEcbVg== X-Received: by 2002:a05:600c:3acc:b0:3d9:efe8:a424 with SMTP id d12-20020a05600c3acc00b003d9efe8a424mr6246353wms.34.1674034404128; Wed, 18 Jan 2023 01:33:24 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Bastian Koppelmann , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PATCH v2] target/tricore: Remove unused fields from CPUTriCoreState Date: Wed, 18 Jan 2023 10:33:22 +0100 Message-Id: <20230118093322.49307-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1674034459474100001 Remove dead code: - unused fields in CPUTriCoreState - (unexisting) tricore_def_t structure - forward declaration of tricore_boot_info structure (declared in "hw/tricore/tricore.h", used once in hw/tricore/tricore_testboard.c). Reviewed-by: Richard Henderson Reviewed-by: Bastian Koppelmann Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- v2: Do not remove 'hflags' in case it used: https://lore.kernel.org/qemu-devel/20230118090319.32n4uto7ogy3gfr6@schn= ipp.zuhause/ --- target/tricore/cpu.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h index 3b9c533a7c..4f6d936824 100644 --- a/target/tricore/cpu.h +++ b/target/tricore/cpu.h @@ -25,10 +25,6 @@ #include "qemu/cpu-float.h" #include "tricore-defs.h" =20 -struct tricore_boot_info; - -typedef struct tricore_def_t tricore_def_t; - typedef struct CPUArchState { /* GPR Register */ uint32_t gpr_a[16]; @@ -180,15 +176,10 @@ typedef struct CPUArchState { /* Floating Point Registers */ float_status fp_status; /* QEMU */ - int error_code; uint32_t hflags; /* CPU State */ =20 /* Internal CPU feature flags. */ uint64_t features; - - const tricore_def_t *cpu_model; - void *irq[8]; - struct QEMUTimer *timer; /* Internal timer */ } CPUTriCoreState; =20 /** --=20 2.38.1