From patchwork Mon May 13 07:46:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796521 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1884187wra; Mon, 13 May 2024 00:52:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUp3Qs3X1qD/Ap3oCY7ycVtGP8oNBMzeVRN3sZppj0n68fBCbPBcCpyaexluVXB9u4JLLpeEr26VyFARGwfYrxb X-Google-Smtp-Source: AGHT+IEOWDZ8LN+JU5ZhJjV7mfWHC3OJqMzeELejTp4RoloWx9FlD5okYxH3W/n+clFbjql7IG2h X-Received: by 2002:a05:620a:2950:b0:792:e36a:9dea with SMTP id af79cd13be357-792e36a9f87mr108914785a.77.1715586746381; Mon, 13 May 2024 00:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715586746; cv=none; d=google.com; s=arc-20160816; b=qJFlszVDPn7wvb4lJPU5we9wpc+Z5xiDzSWYV5KQkM+AiQ1oaTnqvZNZm7c7uZMPDt t1fP6nVAgpGOArbDJgbARguXlDmQxzoNpuF7sLjP5eVfrrjxrP2B2Qw+OC3haVEX1lo9 7er3YOH/QJGVZXMQQVY05ZGcSvyZGeO5LLe2Rc4RkfMXmblc8Y5Vbt1Pp5vfU1jah52q RdEPINCiAkLIvnEFrqCwBlLrUDrnRkCAoffz1CRp7087c3SmCdjx2I/3kd7JTTqY6cnr JrgroOBatxVK7MhA9p5oRV96n2ppSAxaqwegaygDk8vFwTkQcVIt75qTrzW8uj78pSty yyXQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2VF6uhgMTXvCNMpmE9TGG3M5Ce9XJhasOpTWLXUhXUs=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=GdywPJF6hhU2V8lGVGFavX8ggC3J+/k4X790LFk3//BCbiueEt1TUhsZOcFfkfeJMQ LzCx53vviTIwSsGSmwQjJ4SapBhFlt4aEaZnC9CpOE2fZ+R5kq4cfurWwdy8UshbGpAw dsbc+vyr1xFWBpPQPTNg10B8eYQKBcCbvgMO2gW8+bKD0ru4dXlJ4V50K5Ksd1shhhVZ xX8BV4I/GA2SQxkq0UuDAphJP46wQmGjJhy58AQfQ9rePr1Vz/R0JGQuqYdZdLHhwEnl 6IgGsLcEsshSjqKCcIlkbCgjUJZ8IYafNPj2uuZsV/1vKvbRlckVVFOllUnuANtReuu6 tbgA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=to7oM5G2; 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 af79cd13be357-792bf30a56dsi899011885a.315.2024.05.13.00.52.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2024 00:52:26 -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=to7oM5G2; 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 1s6QQ6-0003k2-Ua; Mon, 13 May 2024 03:48:27 -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 1s6QPE-0002nH-NC for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:33 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6QPA-0001LA-4A for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:32 -0400 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2e538a264f7so36924351fa.0 for ; Mon, 13 May 2024 00:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715586446; x=1716191246; 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=2VF6uhgMTXvCNMpmE9TGG3M5Ce9XJhasOpTWLXUhXUs=; b=to7oM5G24BtaTUdtK9pxsvaVdbime/xj0/94FS3BsXOTK9mbgeFC2VW0+gW2LH+a0P H9o22rCLxNOrbUfOABirSZvflEDQ21yW7XL5+gemBR+Sl0HQ8Vk6QN/qdu93UhdD8WUU GD6zuCDuur9EJFyKF7B/1VFB6uglEOLLaLP9x3EPe6+ayBRkQiCp4vato/doCnEog0oN mRTxCeIAuCPLnBG4Me68R1kAKaP1AFw77UXV+Dxx11gCOLgwHB4deo8clukrh+XWZSQb i/o7CC4oKMlnHNqwqNyXve6un8snW3lgLaAqgEwhF9Dg0rnqGG2efBq2klYkQnrkhgFC AghQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715586446; x=1716191246; 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=2VF6uhgMTXvCNMpmE9TGG3M5Ce9XJhasOpTWLXUhXUs=; b=bECxkDoBeZHuMuqor7Rt0QnRoR7wjMizsm6uOcq4oyKoRgfjhfag8roP7lK/dst3iM MoF0Yh4H2JaTHKGF5e5atR02A7MS1wKxHrmcmoyUz5LfMFoYqoEG6Xlh54YVZgIrJCvM OevC3e/6kKGT7gKMQPokTLm5iyTNfN8tu0l14pBQ9K4u75M1Mwm0t/jy9PcMbnHhtYG6 z8QIwGxnXdU8rUjA47GqrFh89HpckTJ/q46Ajxe5dS4s6hGSt37bzVrtvkgdd9rZXbnu 0pj8p1sw0lkySyTVsPgc0FuQYzJdAYgctWcncsVDBDsQMrZ0OK3AFBLkmLLvCwWJcrEN IlWw== X-Gm-Message-State: AOJu0Ywt1f145K7edK369TgeiBt3xwc3IyR/0t1DtnaJUdFBn98yehyB BhAFzqEnzJ2evZKGh5Yv2qfX/LS4fhUzSUnrOpTwL4Jxqxae6JGK94Vb8zCB/2ogy49DoskDN1o 8xgY= X-Received: by 2002:a2e:b04b:0:b0:2e3:cba4:234 with SMTP id 38308e7fff4ca-2e51fd2dccbmr59550281fa.10.1715586446495; Mon, 13 May 2024 00:47:26 -0700 (PDT) Received: from stoup.. (12.red-213-97-13.staticip.rima-tde.net. [213.97.13.12]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9318sm148204765e9.30.2024.05.13.00.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 00:47:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 10/45] target/hppa: Skip nullified insns in unconditional dbranch path Date: Mon, 13 May 2024 09:46:42 +0200 Message-Id: <20240513074717.130949-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240513074717.130949-1-richard.henderson@linaro.org> References: <20240513074717.130949-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x233.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, T_SPF_TEMPERROR=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 Signed-off-by: Richard Henderson Reviewed-by: Helge Deller --- target/hppa/translate.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index a9196050dc..ca979f4137 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1805,11 +1805,17 @@ static bool do_dbranch(DisasContext *ctx, int64_t disp, if (ctx->null_cond.c == TCG_COND_NEVER && ctx->null_lab == NULL) { install_link(ctx, link, false); - ctx->iaoq_n = dest; - ctx->iaoq_n_var = NULL; if (is_n) { + if (use_nullify_skip(ctx)) { + nullify_set(ctx, 0); + gen_goto_tb(ctx, 0, dest, dest + 4); + ctx->base.is_jmp = DISAS_NORETURN; + return true; + } ctx->null_cond.c = TCG_COND_ALWAYS; } + ctx->iaoq_n = dest; + ctx->iaoq_n_var = NULL; } else { nullify_over(ctx);