From nobody Tue Feb 10 04:55:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1553815756255643.3527402889348; Thu, 28 Mar 2019 16:29:16 -0700 (PDT) Received: from localhost ([127.0.0.1]:43272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9eSP-0000mo-Uj for importer@patchew.org; Thu, 28 Mar 2019 19:29:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9eKk-0001dn-58 for qemu-devel@nongnu.org; Thu, 28 Mar 2019 19:21:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9e5D-0003JO-Cr for qemu-devel@nongnu.org; Thu, 28 Mar 2019 19:05:16 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:34175) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9e5C-0003Fp-1c for qemu-devel@nongnu.org; Thu, 28 Mar 2019 19:05:14 -0400 Received: by mail-pf1-x444.google.com with SMTP id b3so92028pfd.1 for ; Thu, 28 Mar 2019 16:05:06 -0700 (PDT) Received: from cloudburst.ASUS (cpe-66-75-72-255.hawaii.res.rr.com. [66.75.72.255]) by smtp.gmail.com with ESMTPSA id f1sm280911pgl.35.2019.03.28.16.05.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 16:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=dDakszDmSUCuJ4r4/Y0FdfGOX4G6OmUB7PuqceQttcA=; b=w46u8ASQNGNEXrkzGrmWK84Pa2gIPIcwIAEkXve2L3Cu2nUJJt68bPp+OwqvnDmBFD HnDa4J83qh7kVNSukczTyZdhgnHfJeZmWdeyBPlE+97Cact8TtfyHA2jG+sUrrgVQjPF xj70TgLJwRIntpL53XeAP4ItavBVqFHmzhQzVre3KfUbc3/Do2RfLkWAd2VhCWIt5P6u 5DvQaNo6Vw6zpCcP4ArGZqHSMry9oUQW+U+zJnKUyXnEC1ogmjr5fp6kixLH95KJnAGq SChjcE0rW99GqqzpgL3rQwLh45v5tMTVFGZ4KlPKlGlD6x6C8mR1VKJ5Zx/E6JEtysSh uNmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=dDakszDmSUCuJ4r4/Y0FdfGOX4G6OmUB7PuqceQttcA=; b=mORiizn5vHoamivjR0Mv9IIIUNXeRy+YgC9P00pNjcqf+u9pjPYGYrR/m5/OMBFVuU 2R11a8lk82zVC2fpeBr+NuOw2P4LBbZBDKR8RCjcKs1PqdqseEKIud8EOc6RKY6Qg5yJ aUhRJv0qh3hXbcLZYhhvkGj2Hv3Ti6klHTARe9QunNtN5sJP7AI35B+8TL0CiwY0vAIO 9OMcThXUxaRSzt//DdDZ049Tu9pIqm21iD5ra6JhVkthLzSvJ8NUHt66Pdu/d60yD4He LdZV8BJbfYvIvI2LWF/gkOkD5qd+wmZpOUERmZXs3BrvCElnIDZ6D+I7yQ7b8KPQGOuz 26Vg== X-Gm-Message-State: APjAAAVod8oYJBw61BXMEXFLtND+S1OzTzeyXhY5p2HhD7E9LOf7J5J3 TDKkdl+rUrEPDUhY2xdlwTtya7lxiD0= X-Google-Smtp-Source: APXvYqxBNIFRn9eTPWTJZVpgklC/uL5wIrKhGeWHcTFkgl2gD8KHq/bVs+guh3/S4dS0uMTv1i3n9A== X-Received: by 2002:a62:4610:: with SMTP id t16mr44930627pfa.217.1553814305363; Thu, 28 Mar 2019 16:05:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 28 Mar 2019 13:04:03 -1000 Message-Id: <20190328230404.12909-36-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328230404.12909-1-richard.henderson@linaro.org> References: <20190328230404.12909-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 Subject: [Qemu-devel] [PATCH for-4.1 v2 35/36] tcg/aarch64: Use LDP to load tlb mask+table X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c index ac765137ae..979efbcfe4 100644 --- a/tcg/aarch64/tcg-target.inc.c +++ b/tcg/aarch64/tcg-target.inc.c @@ -1463,14 +1463,11 @@ static void tcg_out_tlb_read(TCGContext *s, TCGReg = addr_reg, TCGMemOp opc, tcg_insn_unit **label_ptr, int mem_index, bool is_read) { - int fast_ofs =3D TLB_MASK_TABLE_OFS(mem_index); - int mask_ofs =3D fast_ofs + offsetof(CPUTLBDescFast, mask); - int table_ofs =3D fast_ofs + offsetof(CPUTLBDescFast, table); unsigned a_bits =3D get_alignment_bits(opc); unsigned s_bits =3D opc & MO_SIZE; unsigned a_mask =3D (1u << a_bits) - 1; unsigned s_mask =3D (1u << s_bits) - 1; - TCGReg mask_base =3D TCG_AREG0, table_base =3D TCG_AREG0, x3; + TCGReg x3; TCGType mask_type; uint64_t compare_mask; =20 @@ -1478,8 +1475,8 @@ static void tcg_out_tlb_read(TCGContext *s, TCGReg ad= dr_reg, TCGMemOp opc, ? TCG_TYPE_I64 : TCG_TYPE_I32); =20 /* Load tlb_mask[mmu_idx] and tlb_table[mmu_idx]. */ - tcg_out_ld(s, mask_type, TCG_REG_X0, mask_base, mask_ofs); - tcg_out_ld(s, TCG_TYPE_PTR, TCG_REG_X1, table_base, table_ofs); + tcg_out_insn(s, 3314, LDP, TCG_REG_X0, TCG_REG_X1, TCG_AREG0, + TLB_MASK_TABLE_OFS(mem_index), 1, 0); =20 /* Extract the TLB index from the address into X0. */ tcg_out_insn(s, 3502S, AND_LSR, mask_type =3D=3D TCG_TYPE_I64, --=20 2.17.1