From nobody Wed Feb 11 03:08:09 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 1553369967106789.0912815139773; Sat, 23 Mar 2019 12:39:27 -0700 (PDT) Received: from localhost ([127.0.0.1]:47137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7mUD-00035q-SU for importer@patchew.org; Sat, 23 Mar 2019 15:39:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7mFt-0007kB-TF for qemu-devel@nongnu.org; Sat, 23 Mar 2019 15:24:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7m2K-0007PA-7Q for qemu-devel@nongnu.org; Sat, 23 Mar 2019 15:10:33 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:37594) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7m2H-0007B2-6p for qemu-devel@nongnu.org; Sat, 23 Mar 2019 15:10:30 -0400 Received: by mail-pg1-x542.google.com with SMTP id q206so3709475pgq.4 for ; Sat, 23 Mar 2019 12:10:13 -0700 (PDT) Received: from localhost.localdomain (174-21-5-201.tukw.qwest.net. [174.21.5.201]) by smtp.gmail.com with ESMTPSA id h184sm25990703pfc.78.2019.03.23.12.10.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 12:10:11 -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=eTv5Jc+nwVi5jL0YE7hINiEWfeqJ2sOnjFGjKTGHJXgHsUsYe9j5zm2/eXxq0yHfHF gwRoD9Luw+IubZZ9YBX2CP2zzUMPRnzzbhDEXeYrXA8p7vJyt9LlH16qy1ABAalRS6bB IlL/Bk1fIrDdYhpltraeSpMD0J9ZvlnEnhLUx7kix3dwLJN6FX+xsxNYqC+GF6+VR632 FzEIy6igol/aDmExATMMdWCW29bfervk6FF1K7NINkpUZiZCkieqLpXG86UIi6MLzXmc xeOMYxFnWMiCmtOn4wg7QMvIRM0PkPUIxstHnaSNUHJggF/goVjhpKEE4i47FYJ0gGpb BXpw== 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=C6Rkk/BcUJ5LpHrhTjipgVnR/RgdyqKQaaPxlPdJsweH//2ExkBKtkjcajj1Elf2i+ e8Z8EkCacskcRiBBOx0WLwypfJaqLIyUa7VKQkM6nqpGy7yFOycbPA4/L08RviUd0gLE 0UHn8HsW/t2PhSZLyTv3OKJgXNsFLmi4t+FP/yYavvFBS7t2zRX6ARtc29Iexn650Lry 6qLOuu5WL6m6l0q8k4eOvYXTA800vIsU/YiixFbk9qfzj01L+xLTQKOxS0tMXXB2hJrB Lpdcrp/WudN0P8moSFa2hx8mSotlcWU/GuNYGaa4+gaLJOIeefSSKnbtmQ2e3U4i9YEA 0YHw== X-Gm-Message-State: APjAAAXsinsBPH6NfNEvD92TsPNr6odu32fXvmZAkRU7Tm8TUqwDerl5 XCxKz/vMiQyKzSK1xr3Xvz2DQQ/80qI= X-Google-Smtp-Source: APXvYqwNVv3cTMRYH4/AmukcTkKGNSc/zVOXALyLHk+yiPHJKanV2qZAvBvhcaS4/yCRooqENneZIw== X-Received: by 2002:a17:902:2702:: with SMTP id c2mr16264860plb.239.1553368212420; Sat, 23 Mar 2019 12:10:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 23 Mar 2019 12:09:24 -0700 Message-Id: <20190323190925.21324-35-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190323190925.21324-1-richard.henderson@linaro.org> References: <20190323190925.21324-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::542 Subject: [Qemu-devel] [PATCH 34/35] 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