From patchwork Tue Nov 7 03:03:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741857 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1422550wrr; Mon, 6 Nov 2023 19:17:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4SPRp2wu46jOvwokLfjD0cg2QBXWExGzMvW5w5BcIpsTiPyaroZV/uH1wC+J2yflaBe30 X-Received: by 2002:ac8:7d0f:0:b0:41e:1c35:91d6 with SMTP id g15-20020ac87d0f000000b0041e1c3591d6mr37015709qtb.39.1699327044047; Mon, 06 Nov 2023 19:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699327044; cv=none; d=google.com; s=arc-20160816; b=MYPWKLajPgjp9Gf0f7YnF81s9zmpXyhX6F+VdhVOURbEKrCGtMiA9paQTeaOitGvyC naaab99lwrP2SYxzLL045A8XQBy+GUdL53kMoUqrVS4Mee46eTV6WrxEf2CKw20P/2ED ROReZ+1omSlLyrkR/CjF73REMSKskvTYh2grg5w41a3XSNE0c89pCcH7/I5bmS6H3q6R mvtpDPFFr2AJ2LuNidk3URR3mpvVcycmj7MKgyMvt7KqA15OW16SUfbyYeg3ex+xvU3x wV+MqL3HkPv1tGMSz7dfpDtZBPgI8pQB+aYWnQtWrg10CEgexCXkYKE8hgx3gder6LYe FPnQ== 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=Qv/a5qw7IRMvc9+1bsPwBvAxjMkczYjB4ck+5MvAjzA=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=FYb6cmA/ApiMXxxy3NyhIen8jRhOPHaFtvr2VA/ZHFMnoD4W2mUpAnaIr3EKnDPRn+ MN33tvVf6WAl0ivti+AyRoE5TkzZo80mO0/I8h21cARbKV47vrjdkHimqBut+GEQIWLC NaUwL05kD18zs4S5Py/8iRkrkwwCYGdo4pEL0ugz6NIw3UyeT7yLr0NS5vhrymlfKWBR JBbS4nrcDb1/QM8FX+y366J67JfK5cFpIEzH7PuTv6XQoS57ChVHfGYJMK/kfkYdTKFs /WW9QzC1eqxIlDQxpvINakYROTI/maFuObwPYoYUuYPTgNv4KtGNINvRQMe+smp8fBY8 Aj4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l50B/V4f"; 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 d16-20020a05622a05d000b004109d1af4d4si6033501qtb.647.2023.11.06.19.17.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 19:17:24 -0800 (PST) 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="l50B/V4f"; 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 1r0CRR-0004AA-PT; Mon, 06 Nov 2023 22:07:49 -0500 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 1r0CRO-00044q-Dd for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:07:46 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0CRM-0001N1-Nw for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:07:46 -0500 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-27ddc1b1652so4717921a91.2 for ; Mon, 06 Nov 2023 19:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699326463; x=1699931263; 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=Qv/a5qw7IRMvc9+1bsPwBvAxjMkczYjB4ck+5MvAjzA=; b=l50B/V4f30kGqcKindY5tUGI+lLnfOGm51veJhhJtqCUm4e8D4Xn8kaUJZ2AUxxhbi lOa/fJ4YyiMW+oB9NB1IzimBBFXMWudvsXJ+PwQFbFGD73KLROH8OyUh8TJ+0vHtFwz2 JntBqNzy5VcKfaGhdxdFm9q/rzS40cdgykV9Jc6+yt7CV7+Zap6cwfy+InZEpamHfJQ6 V0Be//o2WH4D2aONAAmGgOTozi13XVBA2vTODFpjBrcFZNepusIoEekapRuMM+xLSZ1u 8G5ENnMmNUO9W7Frp213aG+RSBuNi6XCg6vXNY7k6b8mHdKCUNdpCs24ho3f2EdE6wC7 +mkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699326463; x=1699931263; 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=Qv/a5qw7IRMvc9+1bsPwBvAxjMkczYjB4ck+5MvAjzA=; b=Nqx5fZPLtKChBgw6rwns4M78LxpnT+gTok2SgAKJgZtMEAvP6KTIcGpV7wBGXcwutL X5IIhK7SzfPHeSw1Qrd+8FD5hjVZCyuwPgyhs0UPQhD/wNRDF3qWKghbv1EP4bKN/vVp G4dLmZ3H3JNbIeu/AY/cEaB2gmLOlv4nwqsLXbvvpdpGXU2/S8YEa/veVUKHEbFqwkkK kmen3Ynqfm+mvwhIKr1Sne7zDvfRCyLO4rXGoDJt39iFp/K667jGMp/euJJIqauE3kjO tgTanzWrfcijaeEbs3+x6PB4RPEnCUSq0rLNUGrfgQgc8ul2ERCvfvEktvFkwo6v0avG UzQw== X-Gm-Message-State: AOJu0YywVCuhU3uf+ljAf84sAlvzqLkxDXyDtzX4Wn9zaLK8L9qKTrv1 oeJUUz+i+EnGNDVQ5PWPuq3um+Jvf8SSitXBV90= X-Received: by 2002:a17:90b:3654:b0:274:755b:63b8 with SMTP id nh20-20020a17090b365400b00274755b63b8mr29031043pjb.43.1699326462877; Mon, 06 Nov 2023 19:07:42 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id 13-20020a17090a004d00b0027782f611d1sm6744883pjb.36.2023.11.06.19.07.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 19:07:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 46/85] target/hppa: Decode ADDB double-word Date: Mon, 6 Nov 2023 19:03:28 -0800 Message-Id: <20231107030407.8979-47-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231107030407.8979-1-richard.henderson@linaro.org> References: <20231107030407.8979-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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 Signed-off-by: Richard Henderson --- target/hppa/translate.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 7f767fea64..1b4fa401ba 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3143,6 +3143,17 @@ static bool do_addb(DisasContext *ctx, unsigned r, TCGv_reg in1, DisasCond cond; bool d = false; + /* + * For hppa64, the ADDB conditions change with PSW.W, + * dropping ZNV, SV, OD in favor of double-word EQ, LT, LE. + */ + if (ctx->tb_flags & PSW_W) { + d = c >= 5; + if (d) { + c &= 3; + } + } + in2 = load_gpr(ctx, r); dest = tcg_temp_new(); sv = NULL;