From nobody Thu Nov 14 18:02:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1708331884; cv=none; d=zohomail.com; s=zohoarc; b=MHY05uujOldszirMkIm2h299M4hU0x2zz39RCU9b9JL/qGIZS3W+p29k0xRII5wnV0tJyWBRzCCDUjHvbcMcVHISr3uVQrgt1YLdEY2WrG3jPxvMUPHQe61RZHDZGPWk6Jtv7W5lAx91es28cWNAqu6npDW4wGbEQk+08K16j4c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708331884; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=riaL4bBi2Km9JTxExie0v3jTFoU1wbNnTnAEl0s+MTk=; b=B8mP8YFRVNgUGTs4qzXs1sRDZL5meBRLS2+OpyMZagVvc/xaIVyPHKfg0Pklw1zCCDCvLVj6Bv9bDpkQZp+CtQx9p6L12e52xvyJQV5eofzRUqHPVt/S/GERatkvqY1o7Eb1k3EP5hen9ep1FHvfbMEVA+yRzkZHpJ7I1FaLzXA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1708331884837460.8172626070759; Mon, 19 Feb 2024 00:38:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbz5y-0000mC-9l; Mon, 19 Feb 2024 03:33:50 -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 1rbz5j-0000Nj-VY; Mon, 19 Feb 2024 03:33:39 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rbz5h-0002ms-JH; Mon, 19 Feb 2024 03:33:35 -0500 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d72f71f222so19815525ad.1; Mon, 19 Feb 2024 00:33:31 -0800 (PST) Received: from wheely.local0.net ([1.146.38.93]) by smtp.gmail.com with ESMTPSA id mo7-20020a1709030a8700b001db5ecd115bsm3838348plb.276.2024.02.19.00.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 00:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708331610; x=1708936410; 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=riaL4bBi2Km9JTxExie0v3jTFoU1wbNnTnAEl0s+MTk=; b=ka5YJabNvGpOpKLIkBddrsy5SWF39iBBm8omy3v9ehya+V3OS2W+5CjtdgoDodVfOw fue/8hxa8GKqxJIzEn6yLC5EUS08XOmmZejyZqJ1iJBJF3bsHYlfU3u6DI69U16UgxSc xtqGGCoLig9u8wAL6u3g00/ipCALW/P9c6PBVfWi/9CyzIqlWUtJosSuPWIyjYN8CRmp Vpwg4oI2IG6vqGUsEKL7TKU/0DyPGUAItKUTkfqA5MEBJSrDVYjZdCexc/07mMmXw246 v4k5P27rTJkkbTYVqPZqtkIl+x28oIOWGrh1K3CxFJ67rhP8iQLZ7Nti2ihrX3ZyGSDV EROA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708331610; x=1708936410; 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=riaL4bBi2Km9JTxExie0v3jTFoU1wbNnTnAEl0s+MTk=; b=RppHdDJbrp0EY72uO1daLJ150X5q4r6NghdIYV2+Dtj3VmCLg0ImHzmFECveCXZzwb sHPlQJeug1pVoPLIpX5te0CJNXew/tbLna3cU8H2m704zkvQ4e3korWSgK9h4Q1cT5ax 21+Jtk0s/Bve4mchdBg/A9YIATL+4zCiNKzY++B3HkgVD87RCZxmFMCujuheHfzYpyM5 Sp9mcCR8/z++ijsHmcD9Rx8vqZEmXfGuWjq9jNuT/gyOvGqM3vdB7WtyI8pzAbc7rhEA m46ctgJ4VGV7Yd0OZ9SN/b7mn+O7SZdA/i9x4TYuNfnfPmgDKhsWdYPVuX6/I0hKrDra YG2g== X-Forwarded-Encrypted: i=1; AJvYcCXuhjywYWSv7idbEEQWHXEBNY8pKov/PGZRvIaQ7+Ib84MFezyZXMIDfdDO93Rx1fhv8AMhodV0UPTAE1MRW5y+XTpe X-Gm-Message-State: AOJu0Yz2ids59xGpgIRn+B1xKhQow5Rv6ppcJJtMVsKUR+vZb29L+BM4 /1ca1jV+CVCYjGseqnbyaIsD/PCoHI1fLQZpFATNC+DZS89JDT4zvd1fAMH0 X-Google-Smtp-Source: AGHT+IGfQjlu5HNJGLeXh6Yof+ebb96zo8nAT0s00QDpEhvCzMLYl+dhXeRGRYjFY848cyguETpvRQ== X-Received: by 2002:a17:902:8c96:b0:1d9:df95:89dd with SMTP id t22-20020a1709028c9600b001d9df9589ddmr9552447plo.47.1708331610403; Mon, 19 Feb 2024 00:33:30 -0800 (PST) From: Nicholas Piggin To: qemu-devel@nongnu.org Cc: Nicholas Piggin , qemu-ppc@nongnu.org, Daniel Henrique Barboza , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Harsh Prateek Bora , BALATON Zoltan Subject: [PULL 48/49] target/ppc: 440 optimise tlbwe TLB flushing Date: Mon, 19 Feb 2024 18:29:37 +1000 Message-ID: <20240219082938.238302-49-npiggin@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240219082938.238302-1-npiggin@gmail.com> References: <20240219082938.238302-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=npiggin@gmail.com; helo=mail-pl1-x62a.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, FREEMAIL_FROM=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1708331886360100011 Have 440 tlbwe flush only the range corresponding to the addresses covered by the software TLB entry being modified rather than the entire TLB. This matches what 4xx does. Tested-by: BALATON Zoltan Acked-by: C=C3=A9dric Le Goater Signed-off-by: Nicholas Piggin --- target/ppc/mmu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index 923779d052..ba965f1779 100644 --- a/target/ppc/mmu_helper.c +++ b/target/ppc/mmu_helper.c @@ -864,7 +864,7 @@ void helper_440_tlbwe(CPUPPCState *env, uint32_t word, = target_ulong entry, =20 /* Invalidate previous TLB (if it's valid) */ if (tlb->prot & PAGE_VALID) { - tlb_flush(env_cpu(env)); + ppcemb_tlb_flush(env_cpu(env), tlb); } =20 switch (word) { --=20 2.42.0