From patchwork Mon Feb 27 14:00:28 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: 657044 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2376072wrb; Mon, 27 Feb 2023 06:18:15 -0800 (PST) X-Google-Smtp-Source: AK7set//9xwe0PJjAlCEW82FJWUHtMSQqwHTVaTuhxfmXz0NvOePVvSRHWUedfDIydwzOXt7tFvN X-Received: by 2002:a05:6214:2429:b0:56e:f05c:9c70 with SMTP id gy9-20020a056214242900b0056ef05c9c70mr47963355qvb.44.1677507495169; Mon, 27 Feb 2023 06:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677507495; cv=none; d=google.com; s=arc-20160816; b=rB79bheQMCYaGFZspzhXVQ2akQcKvyjePcWbJ6pG+TYP643iH4IxxLum0P29mApCKw c4whzpfmlkUH6mmRCteHDBLi1eX8sgRnpylBhcwfW4T6NetQs0VoOaCmYH8LdK/XZAFC YzisoQ7MxfCXYkrPhaumocflgLQpSdef/oFQNJuyCs8iuRQ/W972pCPAbafWQMws5JGl yH3EIZk4hsiXz06gZyH6QUFmBE/2kZlFFTVX3yh5F2/1dFX6F9lXyzuPnPI5WkDHnvk1 OpDxrMy5mWsS2j/8butk210syJhjwlp5xF4byQLY1O4p9jc6WfOkeI3laq8K1A/dD13v k7YQ== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=YB6GhDc8o2Ro4z8NqE3FKc8wK6B4wm3bzailT0lBjJU=; b=j3Nnl5JQD8EFNGsgYT8+yTr3fWrZJBccCGiDbvblUd2f9ikh3z0+V7qx6pVFtjdt1D CB0bFn1acmYdB5iskXRAqE0hiM5gCUriLqgzIy05iLV9Dc/zjccL7EZ3GJnXDd6LyM9E gF4P/E1SvBCkgFNb+ls4LpS1stVsnKveMWXSm+6gZKIz9r2v1wTxg9minvduwnElaZtt gCUFRro7/TOVXm/6OKBqaUTQHerOiOJFuBK5pvw0EM4gb6PpmVfTsUVjGyCrT66UNs/J aDjvwVFO2tytJ3Y7cEO/Ckf4poQtL7DTDMZ+bP3zxfeWjvsvMaetaoAM8XWXVotJ9/K7 JuTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wnTEVmg2; 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 e3-20020a0ce3c3000000b00571062ba12fsi6480005qvl.368.2023.02.27.06.18.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:18:15 -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=wnTEVmg2; 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 1pWe6B-0007au-JD; Mon, 27 Feb 2023 09:03:27 -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 1pWe66-0006y1-FG for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:03:23 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWe63-0007pL-UR for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:03:21 -0500 Received: by mail-wm1-x332.google.com with SMTP id az36so4324949wmb.1 for ; Mon, 27 Feb 2023 06:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=YB6GhDc8o2Ro4z8NqE3FKc8wK6B4wm3bzailT0lBjJU=; b=wnTEVmg2NW4lps7TPlLTw8XoE5BjEdUi30K4RQ83P9lFQleB3EQkYm7pt4Ny7Pbp2+ HjBEGSd+OXHDIyZ55yIwk5RH6Ty1aNF/uGM+Y4Pz26kFhNhwj/76Ype2zGv/x7g67VPy iOIBMeU1okoxgjVdXK/NYlI7kKXWhQyXt8E0HTPU2kq2PPKyTTveNVrPkev8W/f0CqV/ ea606smX/6xAA1yYs5Ctf9cEN9fD57+So/pF1vztZJ3TmensC4Mfn7pmwTnRMYYyw82a 5+1xnd+N6TiX5YTZ/v7pfSgINnoHH3vFCh4ol3cf327WtRuhb/Ez+s4zsh35f+XQlUOy 8iLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YB6GhDc8o2Ro4z8NqE3FKc8wK6B4wm3bzailT0lBjJU=; b=7YKt0PUDjvOIcYKUhBnttTrQTyHM7pS586yBtP8OrGBvp4xGp5j4dIeXejxRg+fVm6 RaZNsuDYEIu2dSAINDi6HW/D3TMPHCcLoxzGMI68d2Q6LmukR27L/xNsihR9wvUDexhz T2k9Z7nFareug/GxJ11A81Zdf/eHUBr1oJdcyPIax41rx3Nvv4YktYH/gtQb3pi3rYt4 WnCq6ywrRBqS16ZLyxcJV8kGwOSaSbzpDk0MI8ZHCQ8ESpEHTG3F5Cex7W3xjRvbFvTv LPKinZFF+S85U81a6CiwXvZZnYM1mO/KWnBMmz50WUHoM6XU632eBfMi6IRvXnMVUVg1 pOyg== X-Gm-Message-State: AO0yUKWMdK/vl8Y/cNjQ7dFK5A5NsIS3DsgYTYW/l7qQI65pR+i+n8y2 6VkhPLhXNjCjWtUM4YvTl35oCPnHUNX7jdSm X-Received: by 2002:a05:600c:4929:b0:3e2:6ec:7fb7 with SMTP id f41-20020a05600c492900b003e206ec7fb7mr18223080wmp.0.1677506597808; Mon, 27 Feb 2023 06:03:17 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id a4-20020a5d5704000000b002c559843748sm7232200wrv.10.2023.02.27.06.03.16 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:03:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 021/126] target/tricore: Remove unused fields from CPUTriCoreState Date: Mon, 27 Feb 2023 15:00:28 +0100 Message-Id: <20230227140213.35084-12-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Bastian Koppelmann Message-Id: <20230117184217.83305-1-philmd@linaro.org> --- target/tricore/cpu.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h index 3b9c533a7c..47d0ffb745 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]; @@ -179,16 +175,9 @@ typedef struct CPUArchState { uint32_t M3CNT; /* 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; /**