From patchwork Mon Oct 21 15:12:53 2024 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: 837319 Delivered-To: patch@linaro.org Received: by 2002:a5d:50c9:0:b0:37d:45d0:187 with SMTP id f9csp2068564wrt; Mon, 21 Oct 2024 08:14:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXEwMs7uopS/66hDlDWnUA/tCDyllHkvJcmQSOs3HjoMe0lsA0q0CDkvSWd98KzUQ08TZdPig==@linaro.org X-Google-Smtp-Source: AGHT+IGoAEGVrFOj7fNCDzsVdk8WYIOOxckrjMzuvQ3mnF1baLGqa/F+O/YZ76zJopV7+bixMldx X-Received: by 2002:a05:6358:7e06:b0:1c3:7d20:3749 with SMTP id e5c5f4694b2df-1c39e02e93amr330277055d.20.1729523642257; Mon, 21 Oct 2024 08:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729523642; cv=none; d=google.com; s=arc-20240605; b=QBdwf+mP+FIplsI9Ct0lMHf+1ZcH94+9C+IxdjAzINzJwehPMKv4K6TXNyI/Ug3N9Q afBpTPMkQilJbRYuuf0dBvbKTa9VqXLaqAPs4sgY/SCWLeYN73h2U+ts4ZQnbok03J6R oYuaNF9j2wmZtFoSmAFOKD1+kEqUr1RrWRBgH9dZO9RdzUUxZLfWWgmyrjxlrd+F7Krc oM+Vhh9rdyhrwbdg3HLmPT6U9x+h7QUEjHdmvrbhTGbasBHP0HSPe3KS/bOzdyWQAB9M sAh1QV+va6oppCzidxhIVSTLx+QaVFVKwSVcKE7kZJxtn65Qcquhkw5aEs52qzYsUQ+E rong== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=C0HdwaAyMbLAnxeqWSFg1qQPtzawRcKFfuED+8dejwo=; fh=Q25fhiCdum1TXMJFCuytY3Co7kJvIUP1svRxcovy62U=; b=VOtFDfQLemnyORAQiDg3o47nD58bbqbYNWX+XAyMZHs4W46LaWmT4O6S8BHdwN0haD l8UWZnfWOKSul3waw0QCzLAkuBhtlcYwl7zzSJfdqg+qgK58w1BD2Vgap0SuzW7Vm56O fW/wNPWaDAptRvfWDInoEr7u2OFDO6oqGmaaGYoaWWboE/EaXDC7t9HfJfAqu4a5M1MW TLn4LqJudtpgnPoOhxa6DE7kk1bU2etf8GTCEbd2PVe4/n87vWYVZfP6UEsI9fJvd5/P +yOTAPEyR7Tzb/0sNxkdsGn3C9OpNmguHEl4HXSantrAo3gMsLmd5MrxzL9+7BWzO7Pr J5cQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbudDpc9; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-460d3d47202si40909711cf.540.2024.10.21.08.14.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2024 08:14:02 -0700 (PDT) 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=YbudDpc9; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2u5f-0007Ed-Hl; Mon, 21 Oct 2024 11:13:03 -0400 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 1t2u5d-0007EA-M1 for qemu-devel@nongnu.org; Mon, 21 Oct 2024 11:13:01 -0400 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2u5c-0004FK-1L for qemu-devel@nongnu.org; Mon, 21 Oct 2024 11:13:01 -0400 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-5ebbfcab9f4so650614eaf.2 for ; Mon, 21 Oct 2024 08:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729523578; x=1730128378; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=C0HdwaAyMbLAnxeqWSFg1qQPtzawRcKFfuED+8dejwo=; b=YbudDpc9c06pYlp/zmxmEqUOtMIdOJAX3X7HUQ65S7R+IWkx/RzlH3seekXLNiI0an dCEM/FhY+DMQgPXX8c2zn1LJmFxokbBa/0NCtvTt3gbGM2Eswcl+YOIBzu3VzGoFga7p 2hhqO9KgwB2WH/pZSHhCd/SWlH92wB1ACq6bYGkPZ0gnTWrbqkjETK9wj7d8A3iLDyUc HdV70zwJmBZm7nIk8GHkZ3/3dIyCSFxT7jH5aDNm+j88HlV/LopO34DOkxhQ1suYBj+d Tk0lL95boN6wnx6NlUvkynwQdyt8d8bPIsSdBhCXAeh3YZyoTIJ8Fg3Tb0IcAGMsSmm5 5HhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729523578; x=1730128378; 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=C0HdwaAyMbLAnxeqWSFg1qQPtzawRcKFfuED+8dejwo=; b=E2mhZkeUzxhgIFplnlDkJhSpsfrFCjJfvA7MAJ5GSYNm5bFKFsZnXS5hUSws/7d/ZG XXpThEG0j8dsJ/kA4UIdF3FMi5k5TZiVcGeBqggVKr1cestXTHySe3dc5rE8XRGQtAMu XrfPRmciMwEXq6fiqHaPZDSMhK4ukqwU3iWi9k7QBhXLPYLSxJIM1xWum42NOtGNS0BU bbxIW6q+TmDlhvPmzZdBAzc/saQU+v3QTTv6w9NGPItniBe+DFIMnnPuYW03s1+WSBl4 b2C16WYtymYCjzfBZDtLO+8F0leXj23xgIQHV1tIchg1wnaT/Gy0+miJh+hDhGuTFmpR 0SLg== X-Gm-Message-State: AOJu0Yy1jkEAtnVvo6Z4s0dQrZKIHQeDMZ6ym1ZLAmNCRu3ycmf+ZUTl Zu8CwfYbQFev5f/ZXREaNXXINqMnhSLZj+bw1ZmCIiOhD/K92ID+S9/v4L7uK+frGb7kURhorU6 J X-Received: by 2002:a05:6870:9a23:b0:277:f9d5:e85 with SMTP id 586e51a60fabf-2892c3422b3mr8889645fac.22.1729523578088; Mon, 21 Oct 2024 08:12:58 -0700 (PDT) Received: from localhost.localdomain ([45.176.88.171]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7eaeabda178sm2752879a12.87.2024.10.21.08.12.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 21 Oct 2024 08:12:57 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Huacai Chen , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang Subject: [PATCH] target/mips: Remove unused CPUMIPSState::current_fpu field Date: Mon, 21 Oct 2024 12:12:53 -0300 Message-ID: <20241021151253.36443-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c30; envelope-from=philmd@linaro.org; helo=mail-oo1-xc30.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 The 'current_fpu' field is unused since commit f01be154589 ("Move the active FPU registers into env again, and use more TCG registers to access them"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- target/mips/cpu.h | 1 - target/mips/sysemu/machine.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 6a4c4ea683a..3c235f39ffc 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -530,7 +530,6 @@ typedef struct CPUArchState { CPUMIPSFPUContext active_fpu; uint32_t current_tc; - uint32_t current_fpu; uint32_t SEGBITS; uint32_t PABITS; diff --git a/target/mips/sysemu/machine.c b/target/mips/sysemu/machine.c index 91cd9f19002..8af11fd896b 100644 --- a/target/mips/sysemu/machine.c +++ b/target/mips/sysemu/machine.c @@ -242,7 +242,7 @@ const VMStateDescription vmstate_mips_cpu = { /* CPU metastate */ VMSTATE_UINT32(env.current_tc, MIPSCPU), - VMSTATE_UINT32(env.current_fpu, MIPSCPU), + VMSTATE_UNUSED(sizeof(uint32_t)), /* was current_fpu */ VMSTATE_INT32(env.error_code, MIPSCPU), VMSTATE_UINTTL(env.btarget, MIPSCPU), VMSTATE_UINTTL(env.bcond, MIPSCPU),