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: 1728083 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=P759FQeq; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NxgZP5ZP8z23gM for ; Wed, 18 Jan 2023 20:34:20 +1100 (AEDT) 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-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) 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.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; /**