From patchwork Fri Feb 9 09:05:04 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: 771304 Delivered-To: patch@linaro.org Received: by 2002:adf:9dca:0:b0:33b:4db1:f5b3 with SMTP id q10csp749912wre; Fri, 9 Feb 2024 01:06:51 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXLguVRVdtGF1Y72F5jLgEoab8YUdQnL9gwn0mBzAg33z61fao8+AWMJVf+++byzF2p9ogXoPK+o2Q9KObSajjh X-Google-Smtp-Source: AGHT+IFvqS6Kgp+ndwfwgsdN/+LBxxOdxn5SdXm/ydisPOx0cLkZmK8ObW6xCbHZ3IHgcBPBrRCN X-Received: by 2002:a0c:b549:0:b0:68c:9649:df96 with SMTP id w9-20020a0cb549000000b0068c9649df96mr437224qvd.12.1707469611757; Fri, 09 Feb 2024 01:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707469611; cv=none; d=google.com; s=arc-20160816; b=DN9E5QqExGHOY4kC6tUsXjdM3lujX9awNE047q7rdEnnu2P5lzWsFnXfsnozKflz6l 3wSLDq4l6wr8QdbfTfz3zzP1EJIpLk7IpZNYnB2WeHm+BpY72UHQ+5BYjrF19ONKHRg3 +/wSedUpYHXlQOtQwvXPmq/ywVQiNY3pIAVk496CqDQ0aUPHZ4Ki7ebk0wd3Gmg9dr6F CdlKw/4qho8jh8Q+KehqT2iQbRTVJh2tLcf6LvD8DZTVncCBlEHtvaNC1wgHPNjJOs0C /QGReld7VFrxexX6MZowEag8kRktd06/plzjmpBNsHdYYAkLTYmdIukt6drrNXqLQDBu fggQ== 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:cc:to :from:dkim-signature; bh=HTBcOkyf9XYobNj1mcoJBJIN9decb6okix3YTMtoBGI=; fh=C/n9JOzwF46TH1Bn3VQcZncL+mekiQQEthqoCOe4fuQ=; b=l4wp25zR1tEEA2diZPo7JfmD+P9B3UcT3Al4tJ18r90Q5HiZP/sxSKdZ8Q3a5vAfS+ T801Y1CAOrGZU2wM3Hfnz/nyuzYzSr+89ga2ukT0jO8ZOXhTVj3y5uw/t4jaN2oPDlFB qSP+N0MqR6M8i3g4UqlOj2wWCU+4AB6HirVTvMxGcz6IJMzt7xEop9xRPYgCSdqxMNtE P/okHvC9BF4woApegYJ1LM/EouYZEgN6nge+JWFbPGZ4wB2B9QPw6OqeBVn0+byEyi9V FBXOpuf9h7Ty81aRIi6h6ZEKBAxZpfhnRSq01R3GM8H6vSjRrfF/0A3C6AXxPk3R5RiP RutQ==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hFScsn7B; 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 X-Forwarded-Encrypted: i=1; AJvYcCWrCO6YqcjCh+U+f5rD7MTPIkKm899bLNPREI53uLH2MrJ/kfvVP/aFRZW+JHQtFlJ6Tf0NrJ5eSZ1Rseo7R5Vi Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id hu15-20020a056214234f00b0068cd10dddbesi1491385qvb.230.2024.02.09.01.06.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2024 01:06:51 -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=hFScsn7B; 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 1rYMpG-00054f-To; Fri, 09 Feb 2024 04:05:39 -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 1rYMpF-00052o-Cj for qemu-devel@nongnu.org; Fri, 09 Feb 2024 04:05:37 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYMpC-0000ep-Qp for qemu-devel@nongnu.org; Fri, 09 Feb 2024 04:05:36 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-511616b73ddso1149950e87.0 for ; Fri, 09 Feb 2024 01:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707469533; x=1708074333; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HTBcOkyf9XYobNj1mcoJBJIN9decb6okix3YTMtoBGI=; b=hFScsn7BKCffMbY4fe4+BlY7huNuaJEfOFCSCLtm7IDS2sGyotDH30Olx6VzfJLKZr 6wWMlklVxntGZYKWzzr78fqZ8bHu+/yrTDsYImw4YiQacLBiuiywdcquzZNgk3crgeHZ Ou9dAvPDM6+mT9n+eKFCbKA2WrZ7CG9dmhg5vWsy7ctSetwCihrM1eQUqR7Gec//5FcD UF+BVnwpTvzUz8+ICW0jjLLYQUaSpx+lZAR+y6xtInsqyhnAJjHWIOJXvZ5y4udV4HHI 3dw6lyFl6HapmUJCrNdUEhkiOmEPhHhuCqolETxZ8si91Mjg3U8pCNSIzfoeHPGc5Cql u2gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707469533; x=1708074333; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HTBcOkyf9XYobNj1mcoJBJIN9decb6okix3YTMtoBGI=; b=I6DN/EehkZ7FPpyAirpVPlYhYOHrG9NonQYdz7iJtxabFqgvhLBJVOzQT3lCZ8HOZ9 kZRbRw71sOwqjinxYEYEJMUw2cDyZx7O7kDOOyTbbMjKmGuZyiWdEkE7XpftfPgP0cjj KLn1hLSy/agbr9y1oqurOGR4RPZ3z8rkClrSS/RyJ7ibaZ11DKykyCJaS0/c9KL0qGN6 5pTPedb1BOdYdHX1/hhbFFHpd6vsYPnZaHsuozhDUD2VRzjgc9DCZnFSvIL0DWE/EFKV T08J7CFw9JXnZ43K1gTZemJNT5DFj08/qZyE3V6kE6Fe9a19ZTN0wQWkAmt1Toy/Beo4 c8IA== X-Gm-Message-State: AOJu0Yy4f6DomKXPN6sWS9E+Ahv2EwUBxyEFMIw1AnrJTx++XI4m0i01 VhgaYXb7f7dZMdqNqCCdAUHpcgzkMxLLqx7REpjBaQ/X6xNPiX2NDe6twf7FXZ0h+GvagDfTu54 dDfw= X-Received: by 2002:a19:ad47:0:b0:511:3e58:3cff with SMTP id s7-20020a19ad47000000b005113e583cffmr596037lfd.16.1707469532935; Fri, 09 Feb 2024 01:05:32 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVLnWIvOyj6bf54wnuS6AO+W9AjF369INnTU2Pq7K7+AnU9+eAoSzZxyh4CQZLnomQVYSECONH0ML914Kpx1r7Ivf3kAQerpZjc+S18TnPlv3SPlcZZayPOSgEf0kwNTNdNoBI4XXKEYjYV9jvnwomMk4LWHvsXyqaJRtS0PlEQbvCyuXenb/i5tuO9kI8vfx3dPvzsaX7NVkmlaA9Fg49oUbFZUzT5ulshVFkAPsJduVSQmGI6/zPcil5BzOyAycsLgWNLSthXIaWyebhOPszK4UwiKFkYPTMATVrAAZ2pzGy6JkDKotzelNHnk2GhkVuDjera9RdspSHnv76Izy52vR/FQu4= Received: from m1x-phil.lan ([176.187.218.105]) by smtp.gmail.com with ESMTPSA id be7-20020a05600c1e8700b0040ffc10f7cbsm1943521wmb.42.2024.02.09.01.05.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Feb 2024 01:05:32 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Aurelien Jarno , Laurent Vivier , Jiaxun Yang , Paolo Bonzini , Peter Maydell , Huacai Chen , Richard Henderson , Aleksandar Rikalo Subject: [RFC PATCH 03/11] target/mips: Remove MIPSITUState::itu field Date: Fri, 9 Feb 2024 10:05:04 +0100 Message-ID: <20240209090513.9401-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240209090513.9401-1-philmd@linaro.org> References: <20240209090513.9401-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=philmd@linaro.org; helo=mail-lf1-x129.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Previous commits removed the MT*C0(SAAR) helpers which were using CPUMIPSState::itu, we can now remove it too. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/cpu.h | 1 - hw/mips/cps.c | 1 - 2 files changed, 2 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index ef26fe03c7..6ec2ff4b97 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -1184,7 +1184,6 @@ typedef struct CPUArchState { #if !defined(CONFIG_USER_ONLY) CPUMIPSTLBContext *tlb; void *irq[8]; - struct MIPSITUState *itu; MemoryRegion *itc_tag; /* ITC Configuration Tags */ /* Loongson IOCSR memory */ diff --git a/hw/mips/cps.c b/hw/mips/cps.c index 4f12e23ab5..988ceaa0b9 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -96,7 +96,6 @@ static void mips_cps_realize(DeviceState *dev, Error **errp) itu_present = true; /* Attach ITC Tag to the VP */ env->itc_tag = mips_itu_get_tag_region(&s->itu); - env->itu = &s->itu; } qemu_register_reset(main_cpu_reset, cpu); }