From patchwork Mon Feb 27 14:01:09 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: 657100 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2385426wrb; Mon, 27 Feb 2023 06:36:43 -0800 (PST) X-Google-Smtp-Source: AK7set89XjxRJHvoha9PpRl9kW9dn8MF5fjS3Y9pK1kwWiP924Kl/mTU+N0Fxg73I4RmfAQVfh/P X-Received: by 2002:ac8:5803:0:b0:3b6:2c3b:8c00 with SMTP id g3-20020ac85803000000b003b62c3b8c00mr43296016qtg.66.1677508603598; Mon, 27 Feb 2023 06:36:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677508603; cv=none; d=google.com; s=arc-20160816; b=C5urhnw3LXbQcQlLz0UadIRU4qmIbLw9t63EscnPMGjku34/K8ZTfNiVyLvn/Zl+OR aXwxEXBVtr7d1BY4NJgBhL+vcs10O3yZAgPoh/k0LYcaqCNN/5gdkdNT0d/IthEoXE4W pxe9+0+rnsHwrXDtTeJ9wkFsiSK027lD1P95/D/2y79nT4x687Hl2WGamM4RQSsYhoBt 1dT/OWWvHXDPVKE6tNdEb//k6fGb2cx+NFMclvj5/VKh5N/HLYBySPf8pj2+39ArFG4q sphZ0kod7vbWlU9v6ABjnN7HPdpG3DLyrQggzN6cd8meRAL9MPuFEhQuZq+PhQOxm+Rl b4vA== 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=QS1nmh8lEScxSkqCqb2XqzqDwPQdmLvq21fW8K7LJn8=; b=NaryMyqOYxSd1NTusI1G4y5g4u92RvhzTxYEZ2husCtVdF1WKfrf59haZZ08o9JXYE FjKQe/ZrSlUgrrCwVT930YPEw3owa15kCX2CdwKrHxykGoGDKWSz1KciW35DEcIWwlov hLg5/4ED0cJjSrekYH+ORWhAlaYBVinBtx13PZ38XqE2Gt3HgGEpz4/HFcsppjWcTBHg YSO5ROzkE8XDBNRKKX8iZJw9a8xt131v38gADRc+0G3E9LmEzJ7ALnyQonXbgeKGjof+ es0jf1h96JiEaJdihMNoPkeE4lAUigm3ecEmrh2TKfJPTBlxYkVKqNLtYZJ0tN7NnYsc EGJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lKtFj8P5; 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 f8-20020a05622a104800b00341ae41d87esi6511912qte.106.2023.02.27.06.36.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:36:43 -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=lKtFj8P5; 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 1pWeAP-00081k-Bc; Mon, 27 Feb 2023 09:07:49 -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 1pWe9h-0007gT-C3 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:07:07 -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 1pWe9f-0000EZ-Qr for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:07:05 -0500 Received: by mail-wm1-x332.google.com with SMTP id az36so4333616wmb.1 for ; Mon, 27 Feb 2023 06:07:03 -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=QS1nmh8lEScxSkqCqb2XqzqDwPQdmLvq21fW8K7LJn8=; b=lKtFj8P53gUno+PDgZbq/JCYKkKg/iyC4DpWRoEjM2VRYneTLOc0svmv2eIRfnpTKw wogM5MOkMuJK7nGCifnLEl5SHKVDQt0f1ZVT1WvZcuL8CjLOmaIjiyk7aZWCYF2025wE i7d+HiuTpUR9XE5zukVqDD2UgwIymtsZpOZZSRLXchh69naFZJ+wFX9/o+qpWMuiqzzq k3I/+RKE3KdnCWPWDPCFedLWGdzy86quIhLWugPJcLcWwETp77Tr6LX0xzH5gBMc1zYT EL8UxNq6gs9Nxrdq7H2vMl+aZOEXvNbxb4CvhM3m4rfbPOflAU1avLCJieeD8pCCIUTl Q2SQ== 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=QS1nmh8lEScxSkqCqb2XqzqDwPQdmLvq21fW8K7LJn8=; b=2ITTunrvBl+DaPZNRCyVYP+8wY4LNxvwEgzGtPCvjp8eJeVQlKoaybImjxPKUjBiG4 xiML6udW8sv2RDdx7/H5TW4lUb/TXaNyY40G7SF8UPIyhtdvwwWpoCHwgrEnubYz6bE1 wnF3JFWC6HBrhKIw4/Ff+A0wCyf3KdMJ4cmu+Oywv/qFONU85QmitsJM2/hf1ttMTgVn qi9FYx60P/xVXnJ5sjtAY/3SMtgaa5GBOpevvr3FaptIso1Viw1gcQLWvTLiettIIYhX i1GT8oMMb+k6xb2gs1eWDkPj5m7kGB/KEC2JAVOwrIaOJoKpHGGxf6fxBygElSg7G0Na P50g== X-Gm-Message-State: AO0yUKUhJ5wHCWlDujFzGjhBH0J5HmFuYvvEz7RNFtCOSJXU1zyJ6yBD whWDJxe8tfARB1sQQkJnjq3gyHBdhck600+6 X-Received: by 2002:a05:600c:714:b0:3e2:1368:e3a0 with SMTP id i20-20020a05600c071400b003e21368e3a0mr17308710wmn.18.1677506822319; Mon, 27 Feb 2023 06:07:02 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id ay26-20020a05600c1e1a00b003e21f20b646sm9573905wmb.21.2023.02.27.06.07.01 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:07:01 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 062/126] hw/isa: Use isa_address_space_io() to reduce access on global 'isabus' Date: Mon, 27 Feb 2023 15:01:09 +0100 Message-Id: <20230227140213.35084-53-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 Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20230210163744.32182-11-philmd@linaro.org> --- hw/isa/isa-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c index ce9999f7f7..b3d2e5ec52 100644 --- a/hw/isa/isa-bus.c +++ b/hw/isa/isa-bus.c @@ -114,7 +114,7 @@ static inline void isa_init_ioport(ISADevice *dev, uint16_t ioport) void isa_register_ioport(ISADevice *dev, MemoryRegion *io, uint16_t start) { - memory_region_add_subregion(isabus->address_space_io, start, io); + memory_region_add_subregion(isa_address_space_io(dev), start, io); isa_init_ioport(dev, start); } @@ -135,7 +135,7 @@ int isa_register_portio_list(ISADevice *dev, isa_init_ioport(dev, start); portio_list_init(piolist, OBJECT(dev), pio_start, opaque, name); - portio_list_add(piolist, isabus->address_space_io, start); + portio_list_add(piolist, isa_address_space_io(dev), start); return 0; }