From patchwork Tue Oct 4 14:10:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 612289 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp232891pvb; Tue, 4 Oct 2022 08:03:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6AnSl6+NIm8mhgRIM3LfzEmy/ORbEMp9NSfB4zppwVfN9cMN+KEpgufJyuyHFhRhMQoWJE X-Received: by 2002:a05:6214:1bc8:b0:4b1:b217:cce9 with SMTP id m8-20020a0562141bc800b004b1b217cce9mr2432086qvc.31.1664895836910; Tue, 04 Oct 2022 08:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664895836; cv=none; d=google.com; s=arc-20160816; b=DJQtv9Ui6NVtlBkZn2WSLSLQJ1k6ABP0noiMEnvaTXvj7D659lgd48mDQhrbZYMZLW RPUQbxGsYGNEWisLsK55UKyq3TTvk09KzXbuPU+YLnJxXBNrGvXv5G+ac8nzDe28tm+g DdgJAPC7ad2HgwbpaRmyG+Tm3nClivDeMJRJj6oX0d5yt513HSbksdTPcDZEZezs1+MU EjIl+b6DGzffcZWk6NztbYzd5CRdGPkUcsezEGUPh/OvHMvZWSwG6R5a25cFYv8PRgc5 a5EUkXxrXhQWHrA55pT3ZEYx+I4m5EBjzsGeMJIVyvFsCjghxLh7/J2hqW/9bx78EeJY F32Q== 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=z6NCzPC6tE1OG0rvY3WzwqtBapUdS48hi6o10eMrDQY=; b=CBBiS4RdDFIys3g/rOO72icpcVhweDI1uec9u6f+DX4cj4et1R8hlodfNmfjD+1ngj s8nPDUEXf5KvYao3SbQrN2IrG7/mF59+qR3Z2AvZLAokQGCwKk6qDciX0jkAVAIGqW8N qe3L3tLGwAQuaWMoEgebkoqBZYmTOjVgKz7WgauyG73k74dJR6zNtohE2DMB+Aw/2Ec7 bw6suNc6VT2LnpK3AexlduHHjB8QI4/shiTEzWqKpUBZXPznSubOS0dpaOjGrQvmzuUi 6cJvvwYtBVjjfRkaMIt63axnUjyoyGWBDRo4eywHceyeOGYNXLNGE8ZwgN9UF1NkbqHk bZ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lDgENiAP; 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 q8-20020a05620a0d8800b006b9c166fa32si5895458qkl.77.2022.10.04.08.03.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 08:03:56 -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=lDgENiAP; 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]:40566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofjSe-0004gL-Dz for patch@linaro.org; Tue, 04 Oct 2022 11:03:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofidY-0002Rx-FF for qemu-devel@nongnu.org; Tue, 04 Oct 2022 10:11:08 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:46848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofidU-0004Ja-RB for qemu-devel@nongnu.org; Tue, 04 Oct 2022 10:11:08 -0400 Received: by mail-pg1-x52e.google.com with SMTP id 78so12791667pgb.13 for ; Tue, 04 Oct 2022 07:11:04 -0700 (PDT) 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:cc:to:from:from:to:cc:subject:date; bh=z6NCzPC6tE1OG0rvY3WzwqtBapUdS48hi6o10eMrDQY=; b=lDgENiAPZJx9sphpKIsnpaUbOBdrAZ8odWPfopkKMrqMjrGXvu9F6LwUlqnul5PL0R yoHboGIzpbQfwADTdBID5ab9nikcpA2Nwemw4xhC1rQFeWkRkH6lnTQ0ADWahPaEqbTJ hm+Mvv/85rT2PfdpVN3btDzaLaDj4CIxrPXsQB42Y2PqpXssvs0xYihhp/VBrjT3qb9d v9zrDFZo7xvdU4vDSqAgPYLOt+kB6eEKyF5FhQE+zUSvTaeQgkqJYHQjnzPCWGGazC/L b+Vi9s/HNIAUYe4LJ/wMKkvAvLX4T+zLt3gEpE6eM2Ddjk1tN4SWCd04JtnF9sZqCbEg AIzg== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=z6NCzPC6tE1OG0rvY3WzwqtBapUdS48hi6o10eMrDQY=; b=5BfTb2I6Zj60ZGbrFeZn+zMnCU3mVszcPp34aG99tP4Px+qnANxNM27gK857ZCGl24 jrOt4HjoA/V884bpn4XbjLsUHJkn0CIHgG3fI2BjKlSukYSzNryDPnPTLtKKtTJN+p1C EA1u4IwCC2UrKtlIhoD5FSWSnTlNpO160elwSTquNozCDKwnijoFLy8fCCqugkKQGx6N ajMvElj5sghprdQ13CSiLq87q2nDTKBEK5d5h//RG2ensS6SEQiCfXZqCa3bwtruMgjK mnsgGrQkGqqFvUwv/PmiLhouh+gBMbqwTp6T3NKM3zVurtAmRJvkgXGP7GssCuuxmQ4l FFOw== X-Gm-Message-State: ACrzQf1mDgMHdJcQMbJ+7EHnTxfQW/obIVpkFZGw7B3tGjWXdAtI/OJ1 Q6IJeBsQQ0mJVBkA2w+2ff052QbSXu9glQ== X-Received: by 2002:a63:e04e:0:b0:44b:97e8:101f with SMTP id n14-20020a63e04e000000b0044b97e8101fmr11782935pgj.330.1664892663463; Tue, 04 Oct 2022 07:11:03 -0700 (PDT) Received: from stoup.. ([2605:ef80:8015:12b0:403e:a15b:ff5e:d439]) by smtp.gmail.com with ESMTPSA id y5-20020aa79ae5000000b00561382a5a25sm1240357pfp.26.2022.10.04.07.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 07:11:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org, Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v7 05/18] accel/tcg: Drop addr member from SavedIOTLB Date: Tue, 4 Oct 2022 07:10:38 -0700 Message-Id: <20221004141051.110653-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004141051.110653-1-richard.henderson@linaro.org> References: <20221004141051.110653-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52e.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" This field is only written, not read; remove it. Reviewed-by: Alex Bennée Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/hw/core/cpu.h | 1 - accel/tcg/cputlb.c | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 1a7e1a9380..009dc0d336 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -225,7 +225,6 @@ struct CPUWatchpoint { * the memory regions get moved around by io_writex. */ typedef struct SavedIOTLB { - hwaddr addr; MemoryRegionSection *section; hwaddr mr_offset; } SavedIOTLB; diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index aa22f578cb..d06ff44ce9 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -1372,12 +1372,11 @@ static uint64_t io_readx(CPUArchState *env, CPUTLBEntryFull *full, * This is read by tlb_plugin_lookup if the fulltlb entry doesn't match * because of the side effect of io_writex changing memory layout. */ -static void save_iotlb_data(CPUState *cs, hwaddr addr, - MemoryRegionSection *section, hwaddr mr_offset) +static void save_iotlb_data(CPUState *cs, MemoryRegionSection *section, + hwaddr mr_offset) { #ifdef CONFIG_PLUGIN SavedIOTLB *saved = &cs->saved_iotlb; - saved->addr = addr; saved->section = section; saved->mr_offset = mr_offset; #endif @@ -1406,7 +1405,7 @@ static void io_writex(CPUArchState *env, CPUTLBEntryFull *full, * The memory_region_dispatch may trigger a flush/resize * so for plugins we save the iotlb_data just in case. */ - save_iotlb_data(cpu, full->xlat_section, section, mr_offset); + save_iotlb_data(cpu, section, mr_offset); if (!qemu_mutex_iothread_locked()) { qemu_mutex_lock_iothread();