From patchwork Mon May 13 07:46:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796538 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1884651wra; Mon, 13 May 2024 00:54:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWdPlL2E+B4QMfDUylwa8HKuhsIYS9WDKGUNw7OZVK3Ae7hIpNUnk4xMMoH5zNFMCBj85KMxm1cD0PF9tDiEdww X-Google-Smtp-Source: AGHT+IGW8S9wiewe8BkV3zi4zoreMIX/lAVpr8GxpFnqxx2zZ7pfSj4n7JDWUZNTSspdp2sxFYrE X-Received: by 2002:a05:622a:181c:b0:43a:1d94:c573 with SMTP id d75a77b69052e-43dfce2774dmr166461071cf.22.1715586854234; Mon, 13 May 2024 00:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715586854; cv=none; d=google.com; s=arc-20160816; b=esGe4QRbD4pi7+5q7u5x7rE/kHXb6dGSMgxoXwi/X603xYT+alRRbvj4zlZYEhw8yN ddLwMhx5e8MRKqOhtWRropAg34GI0CnQt+dPy+h+Rqnxlm/pKCCSbcf2KveNVh78QM6U e1e4fT9B//3vorOk2OgbB6+fuRr8yf+3x7GQXQ/l7h39k4LoPvIRYRAog3s0kh20/6SP iNopsbYMeA8hW3HZpVl0nVVSLX6/z5Tcbg3lnNDDv5fR9buCOsr/VEoKvhhMOz4vyrSn pf6ttANSOGYyKlWhTxmPVUg2aXs7ETDN84j/4qhaT1PVCW+TGPoJLYrOIy7qZugrovjq sL0A== 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=rPgByWxwzXGsjb5cyHbmkgL2AJQKmGydyfbe4dpBirg=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=wGHHy2Av2w9QMUcs2EfXSnjE9IvnjZrrARODsbXrMWbXQGr2tqZknngJP12/Q2IEi9 VSoTz0vuauDeP8BevHGR9VYD0Pl2BlO/EFrMxyYrntw3xy4MdTetBWxONIf+axqNQWRs OZ0H7ct5YqenMFD35D/XCfLqy8hTNXeGjdBu14BxEJ+T6he5pB7cDzls7Yq6lXy7eSi8 33CII+VA154KVxO0yxHqzJDMXyEoTxp4KMpX9kikyqMzL+fdVJNIDwvFEFbjp178WyAl v6Lv/9Py/WIFiScUu8I+WitVfKwEgsi2yAU+m27SokKHhzM/xj46k1Q60V/VSP1GE0Ja s+CA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5dqXoAj; 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 d75a77b69052e-43df56cb4fbsi89263611cf.635.2024.05.13.00.54.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2024 00:54:14 -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=Y5dqXoAj; 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 1s6QPY-0002yy-LU; Mon, 13 May 2024 03:47:54 -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 1s6QPF-0002nQ-F3 for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:33 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6QPD-0001MG-Dy for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:33 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2e6792ea67eso9358521fa.0 for ; Mon, 13 May 2024 00:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715586450; x=1716191250; 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=rPgByWxwzXGsjb5cyHbmkgL2AJQKmGydyfbe4dpBirg=; b=Y5dqXoAjCVhUMjg1syXcbPmwixvNmTovBHqbR5MrBTQ5D5fC2SZ7qCeIxL6HW+w8G+ iAntUYkPCHQRvv5icmX/2LvcTpeeEAUcB4J3cuZMsqH9DTJ6maWmGDgrZtwpRCwKU09k NYwTa8QhmQ7nxu1SDyYNYgVil6ALzwuEMQ5jZEd6yLBAeyK0HlN8jnRWYb6nqD4M7F8R C3dVFTJ9bl6rp6ZAO+1LyIYSdWpJWmAxUUkSc7CK2DIy2UZnQ+agwjkLhLDkf1ydQf2F NFfq1u4N1s9u4arZqTl8y9c8ULIo3qS1K+I3L/u+muD+figbyU/mD5SRkC9iArkThDSC ozLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715586450; x=1716191250; 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=rPgByWxwzXGsjb5cyHbmkgL2AJQKmGydyfbe4dpBirg=; b=Q20ttAUZ9yyy2oQM30uR8kRRQ1CPgjDFel/6TRYDCsA+juzIypa/9S3DUHTv4Y6em9 usi0E9Q1kVGr80HLUFdyMWdEVKRr43BW+cV8HVyYZuVfPDp8ibFciF/Runr+G5Q+2Snj Zs4WyaAlEmKLH3XnFHdfjnubY315MrsNpHFJmaLFOM/YugQ5zP+1yVw+4qe4XDHKCEdx qIoHKFTg7RQK1a/OWl4bfhfuiCPfrU5RLmdTP017cu7bRW+0kI5z52CwbPdG2kPzgl+2 Js9GYQGL0W7YORDLhHer36lBGlC+Sm6Fp9b82n4f1IUGWSJ5Z/ubBRJ3NhaCwnyHmwDj 5HhQ== X-Gm-Message-State: AOJu0Yy83mMuVSyZYRGm/If6LoruRSWMsx9f7iKQ9ZITXAMcxHoMUuRl jzCJuTYvJ+9Ov5zD6s1FigXXc0UaG/CkFZslOdnSHuN1YixDqiI+QsnBX7AodQuH8YY/NE2oxd/ wSy4= X-Received: by 2002:a2e:8748:0:b0:2e3:4f79:4d26 with SMTP id 38308e7fff4ca-2e51fd3fd73mr52184431fa.11.1715586449892; Mon, 13 May 2024 00:47:29 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 00:47:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 15/45] target/hppa: Use umax in do_ibranch_priv Date: Mon, 13 May 2024 09:46:47 +0200 Message-Id: <20240513074717.130949-16-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::22d; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x22d.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 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: Philippe Mathieu-Daudé --- target/hppa/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index ae66068123..22935f4645 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1981,7 +1981,7 @@ static TCGv_i64 do_ibranch_priv(DisasContext *ctx, TCGv_i64 offset) dest = tcg_temp_new_i64(); tcg_gen_andi_i64(dest, offset, -4); tcg_gen_ori_i64(dest, dest, ctx->privilege); - tcg_gen_movcond_i64(TCG_COND_GTU, dest, dest, offset, dest, offset); + tcg_gen_umax_i64(dest, dest, offset); break; } return dest;