From patchwork Wed Jun 28 07:11:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 697217 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp4194611wrm; Wed, 28 Jun 2023 00:12:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ZfNn+dqxGDjHV1cO/fRu0Fdyn2b7fM870/zmIb57v9Tp4laYvUJBkO0+y2MpwJiSqQD98 X-Received: by 2002:a05:6214:258b:b0:635:f48d:5b8a with SMTP id fq11-20020a056214258b00b00635f48d5b8amr3865196qvb.1.1687936364016; Wed, 28 Jun 2023 00:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687936364; cv=none; d=google.com; s=arc-20160816; b=N+a6b8biY0mvsdFMpxIHMAyClnjOX118tG+5xEz0p4Zz3h8vBY8P9CRi3lVwv3MWrh shiKRIIagAfq00zst+avkQIR6SUgbSArRAbRy4LPqzUI2DFJrGPLW+ggXfpfClve57XP WgzAvp4MOAsO57F3sYp/tzEXDHdjm6JHTe6zrxGWaLLOKsDC+OCQpavw37kR00SIqNOj 0zUbseW7krcn+qGxEzUgCPhXQxxtAOrQQoDROUB/4ccnVMcjnKPh/kIbNSSDDj8wZXMF sB9wrmgT09MLXJ1ExlQWAwjEjc0x84xeKmKbBv7i4wxMB8TdLZsp0h1urjiC3Fe+A2Ae sc3w== 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=gnOmqiNt0uuPn7dHfv6gqd6Jo/Wr3kqBk5WYapt4iEA=; fh=TYrED6TOMxGX0VC4GtjviASLbYyJe19+7/tKWjN44KQ=; b=wtx+ZYeJMDq/AOoduliTagVMcGwMLprY8VZWd+5mtI11A1JgXGTKtRhCbMVlH4XsEg KfFTM1bnIeeODzLr6bfe+/sQI0N0U/1tA91arOolFBLMrmTjr8JjtKvXW9az0srQ4K8N uTEbKD+XHbFfCnFnvI33UNPPgqTDgjQl7/9K6YNqoW+duVj6asKqbQIq3BFhoJ0XIXZ5 LtfiqPJY+5n5aEsa8zWDSPBZiZJITxTm0qb2uVb/pRZQ9LIJRYiOpUls0YKnEHFQYxh/ 3McCcC5M8OAEzYTyLGUcTJUT1q1hDgNy+SL//PgjgCbZ04FOyAIKfV0P58laVwQntIF4 jvPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hkl17mDZ; 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 i17-20020a0cf951000000b006261c927915si224072qvo.8.2023.06.28.00.12.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jun 2023 00:12:43 -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=hkl17mDZ; 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 1qEPLk-00034v-I7; Wed, 28 Jun 2023 03:12:28 -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 1qEPLV-00033n-4i for qemu-devel@nongnu.org; Wed, 28 Jun 2023 03:12:10 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEPLT-0005Ia-6m for qemu-devel@nongnu.org; Wed, 28 Jun 2023 03:12:08 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4fb7dc16ff0so3201746e87.2 for ; Wed, 28 Jun 2023 00:12:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687936325; x=1690528325; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gnOmqiNt0uuPn7dHfv6gqd6Jo/Wr3kqBk5WYapt4iEA=; b=hkl17mDZa3ex7cE1RtllD/TsZ6WNTCWuzAK26kzoKg8kR2JxeIFQq9CfHt+lwN6S84 wi3xf423DS8N2NRqUIRp/jteyPaIBu2PYM3v4YrktRiwpM0hX/mXHsc/RPTirlHczNxj oQL4Y3r/sp9du/T01ZRwbbiEuyj8KsSEQJbqamPb5BM//Sv7zKKTVLHij93lgOvQxsMz 91FFQ/e8VmlFB+Rz0gkUaWQLxfPWL4WpwJ8DIiSBkwFYC5Jvv3rmK9ReiDhQoAKBqZGh D4PnMbaBQ1Fb/2Gy0SsE2Ig81jaOjQisHMCuMz7vtHNpoFPasnMS3FR2sXbxTYiyFyug t4Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687936325; x=1690528325; 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=gnOmqiNt0uuPn7dHfv6gqd6Jo/Wr3kqBk5WYapt4iEA=; b=KqsvyCjfYKtA1eUo4/z3vgoHTsq1r+J7dWb4hSL3edygBHU0pe/xGjhB03KHyFHClJ xqzj0xAUR3LtUUBl/Bk6fzmwpeP1wQe/lcRCuXMKm9uVHypLSocOOkRvAdBbmzHTmr7h rgY680Lpyfb9wzC+ewHWJE7qvoyw/yKvzBG/K/dMiEORga6+FpkbRaIiKlZifFzcMYIk yALInp6RotQ/CUrwJfdQUM1y6Zo62FwROXwC6DQwHx47daDtAPwHqvBRtWWQqMPBGg2B oTAwBjytxKGX66I3T7R7yyw7/3Gv+SIN5Ggct1HTKpDwv8VkBEsHrYSNBcQg9GQXL0iF V0yg== X-Gm-Message-State: AC+VfDzeQO/Zn4d2Qsvy5Lq5BXroaplURpkPOWANb6M/h6hkVO68CE0D 5D3S0Cd58BKlYEnDqv/qxgkQe1zFCMDgjqu5Ks1MDH3m X-Received: by 2002:a05:6512:3e06:b0:4f9:69af:9857 with SMTP id i6-20020a0565123e0600b004f969af9857mr13518607lfv.51.1687936324933; Wed, 28 Jun 2023 00:12:04 -0700 (PDT) Received: from localhost.localdomain ([139.47.41.103]) by smtp.gmail.com with ESMTPSA id a5-20020a5d5705000000b00313f9a0c521sm4908667wrv.107.2023.06.28.00.12.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 00:12:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk Subject: [PATCH v3 0/8] target/sparc: Use tcg_gen_lookup_and_goto_ptr Date: Wed, 28 Jun 2023 09:11:54 +0200 Message-Id: <20230628071202.230991-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x134.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 Changes from v2: * Patch 4 relaxes the checking on NPC: (1) save_npc has just asserted that if the low 2 bits are non-zero, then we have exactly one of our 3 special cases. (2) The difference between DYNAMIC_PC_LOOKUP and DYNAMIC_PC within NPC are not relevant to chaining, only those two values within PC. Therefore simplify the test in sparc_tr_tb_stop. r~ Richard Henderson (8): target/sparc: Use tcg_gen_lookup_and_goto_ptr in gen_goto_tb target/sparc: Fix npc comparison in sparc_tr_insn_start target/sparc: Drop inline markers from translate.c target/sparc: Introduce DYNAMIC_PC_LOOKUP target/sparc: Use DYNAMIC_PC_LOOKUP for conditional branches target/sparc: Use DYNAMIC_PC_LOOKUP for JMPL target/sparc: Use DYNAMIC_PC_LOOKUP for v9 RETURN target/sparc: Use tcg_gen_lookup_and_goto_ptr for v9 WRASI target/sparc/translate.c | 402 ++++++++++++++++++++++----------------- 1 file changed, 225 insertions(+), 177 deletions(-)