From patchwork Wed Jan 18 09:33:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 643678 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1653050pvb; Wed, 18 Jan 2023 01:34:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXsFHp1SeplCVyCFbCKpQoNhjeGqwSpZzWxmJsevvC1Tw9rHWe0NAt2tcGOHdHwW/k0jKVgi X-Received: by 2002:ac8:59ca:0:b0:3b6:6669:dd28 with SMTP id f10-20020ac859ca000000b003b66669dd28mr3957370qtf.18.1674034457844; Wed, 18 Jan 2023 01:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674034457; cv=none; d=google.com; s=arc-20160816; b=sPzDRbSAXoGsl433ROfy/zUop/KsBkQZ+mP3gkkHtXELJYL3uQv8aX1bLJ1l8MbZ5a TZ2cilZFBE5v2rzZFaXJ32GP10vc+dhA/rsT8Q9fkKH1LRrGM8XaNGS9aM33+5+fDsU5 YPdY4VLv9ZPRsOZhLcDzVpP3kJKWIyOqn5Il6ZOOywE/4gMaZyB1wioSlkjFE4PqdGMY chggTyPa+Mr8Fy0tvqR/QSu2v5M+8G1RIWjUruw3BKAWwgPVLeoa0OlIm8Scy2HxeDrU jdwAmjYNEFzfu5kj99ZQ9POMRVZtnkEW803ZV59hY1oxSYlhUxIOfAeEUUsCZjK3Zo03 94vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=H/razzPsUsorwhmjUmtJZoXvlXx8u4fd+lsUzclwjxM=; b=lja4IS9CUjGVzdgzcFFpjYiItOvcYxLYc9gg0kM3encg5RD0RxJXDk6/DjdRLhEsk2 qK539dq6cDodOFGrpDlK0qOvIRTSoZWs1ty2wdG+yNhr7PmpuDUS83qheBxXge/CZLJv FsRD70T3DUkJXA4H0RU/PFgCtgVHmQzvyyQ8rd1dbMJglfJeKg/akRQ7ZK46eVkqVZZT dyKjNYAvE9hlfKNxb+FkMuE7LJDooqaM1TPs5792CL1t49lLOQQv/SzDf7JtRAJVkDYz 4KfV7wxGl/rE9p74C++9rttzYV2HPRIwVnp7nhfXmsUOclohMOYg6VYly3BivzHSjFD4 F/eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P759FQeq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id pi48-20020a05620a37b000b006fbeca19758si18655299qkn.712.2023.01.18.01.34.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jan 2023 01:34:17 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P759FQeq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Bastian Koppelmann , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- v2: Do not remove 'hflags' in case it used: https://lore.kernel.org/qemu-devel/20230118090319.32n4uto7ogy3gfr6@schnipp.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" -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 */ /* Internal CPU feature flags. */ uint64_t features; - - const tricore_def_t *cpu_model; - void *irq[8]; - struct QEMUTimer *timer; /* Internal timer */ } CPUTriCoreState; /**