From nobody Wed Nov 27 20:44:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1697835383; cv=none; d=zohomail.com; s=zohoarc; b=EwMxgXq6bY7y8kd8D3/aL6Flb5EolgtVm/EMpQUBg/eDMCcxM8kwiyh+wSOCy8R9GD/uKPMyITK2x7l19HM2UdFYqb7Kpg0wHbyYT+/zeQvvEIJghi58PL94SJ43tsASnBM6Oxy9uVxla/YeGJqPN98EdhziWWzdSzp5sZtJiZ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697835383; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=294vPIKF0FsD09j8ptlM9k8sVT1xnHuXBETXznmUOGw=; b=MKnnCkTWgl+kfPNPSXQNYcc8kfxZbF3HCwXrgB7Ns2vCWQy0hkQctG9unD8rpfFpNBF6XIHGqmy0U+I8Jx6Fjjukf79Q4NalmxUyrZKw8VLTv11Hc50OTZoiujDhtYI87P1m1PfmFWGWgtjPPLM2tGf074q1E7MngAKH6WdLYzI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697835383294154.56701719346893; Fri, 20 Oct 2023 13:56:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtwM2-0007yG-DQ; Fri, 20 Oct 2023 16:44:22 -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 1qtwLr-0007p4-BF for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:11 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtwLo-0008H1-Kw for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:10 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6b77ab73c6fso996768b3a.1 for ; Fri, 20 Oct 2023 13:44:07 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id k15-20020aa7998f000000b00688965c5227sm1944975pfh.120.2023.10.20.13.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697834647; x=1698439447; 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=294vPIKF0FsD09j8ptlM9k8sVT1xnHuXBETXznmUOGw=; b=q7sQ+Qe0tyDPQ7OiLpaybxiuCXWsbU+etjPJzE13fjmMOIOa7VK9puvRvPynErA1Tp GymwD0RxXfwc0E3148xSE34Igh8RpPahkvrDV1exemQt2jZbayOrBQwhT/ydnnKcEva7 8RUBGC7lXJnfR/iMTM/Qg7OjpkN9fdfzR823+BiweLEavbHZJWSKlES62B9cEgKQPuFs 3Vm8N07yL752GVK0W8mKy4J//gCf3PweQwaByGYkMbaBr9RjrJ2R3rLCcHpl+hyQm+48 crCCbaS5NBno6jiFWbA4CDd5sMOz8WIdO+yvLvk47yIZjDSH+4MShimU7jxbieS22M7p TUsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697834647; x=1698439447; 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=294vPIKF0FsD09j8ptlM9k8sVT1xnHuXBETXznmUOGw=; b=w4WZGhprq1F8KiaqlMAsjQ4hhIHsSKJ3NYWnqhSJipVDzE7aamhIJmHgGoP/Go7MIR 5YFDKwEjgypkMjVBb9x3uSiKp5fQFzqvbIoST5haITA6DMnyX1rWkRPxUWi2+an/o3aI KEzRwQPjdIDKuk7f36pT58FTshiqsmnmpQAa7s+YWx9HNtc8McgF8KCCjdp9Q9kw9Ysn xrgAgEFMIa08zbstdF/zVsokwBLeL0QDWmZp2vrtEjvGMCq29iqKaFGf23YyShMV+9JP fpv2xArmduwjPBvdfBmUQ30e21JwCYqG4FXNxABT2wbiIQDhgfVxXXmvX3qUDQXoJPHb yvbQ== X-Gm-Message-State: AOJu0YylE9WKt0RKxUa3iG1e3bxXjnKgum+Tr5TtBrNJ+Mo3PaYku7sk xGGv5bffhVfHnju+4POeF7k8gK3BFamGbN8hdu8= X-Google-Smtp-Source: AGHT+IG+VSPYC3u74zY6+P4uO+3p+CcAvCdOnVqO67SSlikH8WCOicqhAmvas1MefGGbs2qf06+DEA== X-Received: by 2002:a05:6a20:394a:b0:17b:a34d:5b56 with SMTP id r10-20020a056a20394a00b0017ba34d5b56mr3777882pzg.19.1697834646996; Fri, 20 Oct 2023 13:44:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 38/65] target/hppa: Decode ADDB double-word Date: Fri, 20 Oct 2023 13:43:04 -0700 Message-Id: <20231020204331.139847-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020204331.139847-1-richard.henderson@linaro.org> References: <20231020204331.139847-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1697835384291100001 Content-Type: text/plain; charset="utf-8" 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 bb55718a4d..21f2819d12 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3122,6 +3122,17 @@ static bool do_addb(DisasContext *ctx, unsigned r, T= CGv_reg in1, DisasCond cond; bool d =3D false; =20 + /* + * For hppa64, the ADDB conditions change, dropping ZNV, SV, OD + * in favor of double-word EQ, LT, LE. + */ + if (ctx->is_pa20) { + d =3D c >=3D 5; + if (d) { + c &=3D 3; + } + } + in2 =3D load_gpr(ctx, r); dest =3D tcg_temp_new(); sv =3D NULL; --=20 2.34.1