From patchwork Wed Apr 24 23:59:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 791783 Delivered-To: patch@linaro.org Received: by 2002:a5d:4884:0:b0:346:15ad:a2a with SMTP id g4csp1119171wrq; Wed, 24 Apr 2024 17:10:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVDsO8+BN0L7x5ass1dWEbX6lW9PCk10m89dCQL4aF2rR4+Vxrq+vQoH4YfDzQxPc77BQIr02gGDE5azsgLnY+E X-Google-Smtp-Source: AGHT+IE1gSk/CbToUj0BQdAcnCrKq694UxhvyMeJsVsyTqUuWQrzzHTtnepoiHvB4GutaaQ8uddz X-Received: by 2002:a05:690c:7403:b0:615:48ee:246a with SMTP id jt3-20020a05690c740300b0061548ee246amr4367261ywb.39.1714003839425; Wed, 24 Apr 2024 17:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714003839; cv=none; d=google.com; s=arc-20160816; b=CpzlxdQW4Sy/SeN38hnAh+LZYukQptLbvbNLR+bALJ7hndJVbryNxV4jgjVDkPUrl6 VZqMXyVKaaW7HbGGdrj4yMGGJSmfu1+RfpfIhcOcg1g0Oq/p19HOTSsCJzVSvqvpIuqc Tx5fniUQYmONiET7d3Y8/CcWdA6qVHBxXD7UuQVX8oRBsW7ZccX8RY8DyYSjrEFFc/iD EhTBTyUZzwGvP5SsJOIi5HpFABnrvQuJdMOPxpmz9zKqs52m6e/TEEFxVLajfXJqIh3w dKoN398Kwolp8hpcT2rKjFxc4SYtrgb3v/X10gXopXnY9TfCb1Oo8NxLPGcs2xQYxp+J 7vwQ== 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:to:from :dkim-signature; bh=+ulGPIrRlnm5P5YmYy3GI1c79AhdRcNeJa8JIKew5Cs=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=YRHwiIoPiwJxnU06A+Wu8gYxIIq/MkJ9seae/iIUWC8CBewKwYqSmHat5I5vccLqAN B/ZuR4bWEKO/WPN1lt8079HRvnkyQSu85xdyP98glP6ecib1Kd9aIPP25muhXOVlkTuw aXj4Vxqpyt2OfthOadZKw6E0W0KdSmfWy49ot8HPQthUL/+ZXM/XEGFXjR4WDve//pmg 7Wgu/5ta6ONjR2mUmWZcC8vumodB0xAgfLqHH3qRlXGYHDpDqM0WnwHyGNh5OrJFQZ4W AUolhWwHQY+9ZeIOAYv2SdcYLATs7bYZjElomxU7EWzianJaQWKqBoBHjCredg1Xn/2N nqaw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qohjauPO; 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 t23-20020a05622a181700b0043a35295c61si1486567qtc.34.2024.04.24.17.10.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2024 17:10:39 -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=qohjauPO; 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 1rzmY8-0008Nu-Bl; Wed, 24 Apr 2024 20:01:16 -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 1rzmXe-0008B0-4I for qemu-devel@nongnu.org; Wed, 24 Apr 2024 20:00:50 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzmXa-0006EI-5r for qemu-devel@nongnu.org; Wed, 24 Apr 2024 20:00:43 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1e86d56b3bcso3745675ad.1 for ; Wed, 24 Apr 2024 17:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714003240; x=1714608040; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+ulGPIrRlnm5P5YmYy3GI1c79AhdRcNeJa8JIKew5Cs=; b=qohjauPOR4WlkybgTwdCsnrC5R9CjjRhFLsVtf4yQNx1ZI5adH442Z5wHSxtibuGgV x05v+JAgPdvVWvPjrniJOxysUfCrcbwcf526k6RCF/lFgNglu4NT8nSRSjZfNpB4AlHT LCJ4bgoUPzAYn38IMGEK8RjPWBGCJCEEJLcfGCliatK2RKFCKdM9ZnYnsqYvu7mlJWM9 Nf2pL90W5ueGp5vh5rhvVgWHZ4RkijiUY1hv4RG8IT14bqkogCAnB0gfiN2M3HYO7514 78uPqduJfqfdhJG1u9DqQ7sRZYpBvs+FSS3KN/n7NSmPTGwjKEV6MbjOhzh6VzQPuttV wfZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714003240; x=1714608040; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+ulGPIrRlnm5P5YmYy3GI1c79AhdRcNeJa8JIKew5Cs=; b=osLtbo1MqzIns/PjKP4Z0SqdTZTcnKZR1gmPSc9SmWpl3zPIaKT9m2pocuu5ovmXtt vFAgUMpaDYP6J5D1+qKOmkp/i5vI7kPEV0cpQi2yoZfo/MO2yoVptArIYnVVgT//D7hA HeT+b6Lrnjb7t76RCcYC6SeV5HTcsRD5OfoubfGU/KM427QhJ2R3PKehuIDRgf0fy76+ xOELFd8V5EHbe1PK3PRRziB7Jp1q7t2zPJv9yO6U/Xl/GRFTqccDzBJe1p/uC/c3/ua6 a7lfOazAXz8EUr90fCP6ph7wQBDd4TjqobFCdPgTcCCUBMstB/H/2zhr1Frm4EUHBfhc MQ+A== X-Gm-Message-State: AOJu0Yz5OOdcSHiW4+CuEZjIJc4J4N1OVAdwTvZnn4Xwu0ajWC0pHA0S XmGOeAb5bvisJkaossWSirB9eRYs1DLekITKd+3W0Ng1QhmQoX0b1D0NgvrlGEkP/Eh6EjTHQUf y X-Received: by 2002:a17:903:32c1:b0:1e5:5041:b18a with SMTP id i1-20020a17090332c100b001e55041b18amr5704206plr.40.1714003240213; Wed, 24 Apr 2024 17:00:40 -0700 (PDT) Received: from stoup.. ([156.19.246.23]) by smtp.gmail.com with ESMTPSA id t6-20020a170902e84600b001e604438791sm12465715plg.156.2024.04.24.17.00.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 17:00:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 15/45] target/hppa: Use umax in do_ibranch_priv Date: Wed, 24 Apr 2024 16:59:53 -0700 Message-Id: <20240425000023.1002026-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240425000023.1002026-1-richard.henderson@linaro.org> References: <20240425000023.1002026-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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 --- 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 2ddaefde21..7e01c21141 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1980,7 +1980,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;