From patchwork Wed Aug 14 09:04:49 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: 819099 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp611864wrm; Wed, 14 Aug 2024 02:06:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVEuUIkYNA6ETeMfC/s3errPmmVaoFy42U6nzn+99kLqBAm/VAWNUZ7xW28nW3ffUgrOT8Km2DOfcgE7JUSQSm9 X-Google-Smtp-Source: AGHT+IGmQ+wWZ/Sfcmqsv/iZl3dxrXC+PT0bx4N0A3vMqEQ7AfcvYV0rbn057+bFL7pOZ/+2T6iY X-Received: by 2002:a05:620a:2913:b0:7a1:dc64:59db with SMTP id af79cd13be357-7a4e37a34fbmr922818985a.8.1723626367693; Wed, 14 Aug 2024 02:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723626367; cv=none; d=google.com; s=arc-20160816; b=qYRda6y7eRCr0GQ9uz30hNoYlbqjDhw4XTUgWdsJ8f7FpSBu6DjkVM8lAUIqp5Ipmp GlPMalTwiSdg3AuNoislnpHgOExalJjb6TdwoFwb8O6NiV5zMyoLG8nqYfZKerz+6yDt PHxijNQG/RA+0oIgO52Z6/31iHWxB1ahAcPCZwZ/bI383SY7UbaSDUqOpp7fY0kksA/a 2zypRo4/HT7ojn1bBHfWAlPCbroDHz6QRcOByCK6vQBeVJCKX43D9mBMPd+b7F5NR+a5 Sy5ADzAOa2w+zJ+LKsAY6btvzQwqQydcHRfb/TDzfJq8HHgmX2Eyb7dMZbuZG2VdNsKc ZQWQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=J60q0t7oJEREUn9MgXAbqmWebPRxS9iu40y59klmL+4=; fh=KbgWYUS9OqO/4JTC9tmS48IRNwt9Cke8+NcPyuT3iko=; b=EjshChn74SHjUCdNqKpjb9xopOkbrJgcE78ekZHMZb85JE9600gL6HBqKgUkpK2WO+ 9xKS4jbFJsTlFZ75ObSyHk4AnpEN4kq4tIViOFzGMWTMnnMiDoal/+2i4I4RsPPjk+Em skhNeZ9+OxyonNM/J+p5tF0d4dUoxI6iDCmSl7S3d810jIY+KZQq41aZCs4NkTOtx1xG 5zIZDtMJ1CsYIIkFCZkaCaNRDEV4SfL64LDV2024C9p+cI0JIfKrU/tBy4H/pMh99Mzs S3AOs+r9AftAzhwn42N11b09y1LG9HEekVp9LL8OTBOm/JW5M2jeJM5uyhLr/3cCOEmV dgzQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NOK0C48Y; 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 af79cd13be357-7a4c7e13398si1019124785a.539.2024.08.14.02.06.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Aug 2024 02:06:07 -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=NOK0C48Y; 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 1se9wm-0003Er-6C; Wed, 14 Aug 2024 05:05:37 -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 1se9wk-0003DX-Ih for qemu-devel@nongnu.org; Wed, 14 Aug 2024 05:05:34 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1se9wj-0000i3-15 for qemu-devel@nongnu.org; Wed, 14 Aug 2024 05:05:34 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a7b2dbd81e3so810029466b.1 for ; Wed, 14 Aug 2024 02:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723626330; x=1724231130; 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=J60q0t7oJEREUn9MgXAbqmWebPRxS9iu40y59klmL+4=; b=NOK0C48Y5hHVlQM9tZh9XOD5xp0wOaLATmleV+IvvnNiGYxmrNvNhz/bFijKZ91zcq bKUric7Al/lauEJGHEfWlAc8T9F7TlK+H8iRgxn2J0Msuo5mpGWlV/a74AsqbrPr0hIF QIcjDulUrhbeOZcb03Cx5j/Sm9jsukzZptoz+D/wQVuLG6+UbugLeenF+1FVoIscLG8z QTSTkO2ANETbWL7mSSz5DdPd/osekp8xurUZbIul8joViq2NrDgjAl456XXSUmEZxRls C03LrA5TXWeMJ1sKLAdM5fjdJWxCvCTtk+x5QUdFn8GTHYmWAIbnOdXQ2K+J46PT+UmX MGPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723626330; x=1724231130; 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=J60q0t7oJEREUn9MgXAbqmWebPRxS9iu40y59klmL+4=; b=p+Bqx2X5bFnbohStjMzjqxJPNLNP37DJQsYYlXCBhXulplKZJwaFfvckW/LUMa2SFq EMczn2qMqbb2ibIlkYoNK6C4Fren+fXzsjW7EsCjbHF+/NzbggD7mYRE5jcxo3zQrySE YgeEXS6FfKtCVcohv7XmCUP+iAM9uXpsTJe3wMr1t/AbyJnAUyMmf9+VMmi32YGgI4hJ x9wqk+l40O7puNPOt5h19zAc8iZ3hIceRQSgR24Ey/9HFOfqdq3Q1BEiF6V4HQ7M9vzI 4ZCy3eA5QZsd3KmyISn2bcoGcxZVVsjhNOxEAP4zrmnGDOU2d+zijLRVjldVZadREmAw K76g== X-Gm-Message-State: AOJu0YxJli4qNQ3FUAkaMn9XTlgB1Kl3uVPV2cF9M7Wv+ve+lNp+BXzk C9jQ93F0IudLvIRDKIzdMTXB2RnHSKP+clHMZO/aguZZeP8Zjb/ar3DT82zPMaR3jRQNKI9yac5 SlB0= X-Received: by 2002:a17:907:c7e8:b0:a72:b4d6:ec6c with SMTP id a640c23a62f3a-a8366d6a406mr135070866b.33.1723626330238; Wed, 14 Aug 2024 02:05:30 -0700 (PDT) Received: from localhost.localdomain (124.170.88.92.rev.sfr.net. [92.88.170.124]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a80f3fedd2asm147751166b.96.2024.08.14.02.05.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 14 Aug 2024 02:05:29 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , Richard Henderson , Thomas Petazzoni , Waldemar Brodkorb , Aleksandar Rikalo , Jiaxun Yang Subject: [PATCH-for-9.1 v4 0/3] target/mips: Use correct MMU index in get_pte() Date: Wed, 14 Aug 2024 11:04:49 +0200 Message-ID: <20240814090452.2591-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=philmd@linaro.org; helo=mail-ej1-x635.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 Since v3: - Fixed size in get_tlb_entry_layout (rth) Since v2: - Use MemOp (rth) Propage ptw_mmu_idx to get_pte() and use it via the cpu_ld/st_code_mmu() API. Philippe Mathieu-Daudé (3): target/mips: Pass page table entry size as MemOp to get_pte() target/mips: Use correct MMU index in get_pte() target/mips: Load PTE as DATA target/mips/tcg/sysemu/tlb_helper.c | 69 +++++++++++++++-------------- 1 file changed, 35 insertions(+), 34 deletions(-)