From nobody Wed Nov 27 20:44:10 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=1697666377; cv=none; d=zohomail.com; s=zohoarc; b=BdhrL4aqpSWkBzhM+6YCqnjUp/vzp8/h+IuLLy5QOkhsI4JW9Btk2WdKO6PiMQQM+lhTo6eLYhTb15zRk4yQmTDvJyyuntieT4AajSgpd8p4k4XownborEGBbzszLzVVeyMTP/SnuHPdjV+qH9Ph4YCZ2zMNMZL7oftfhPj6HTg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697666377; 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=QJvdFesDZvRn5V/HgHv8lkINBr9ZJC7sBp4BrdViQcI=; b=BjC6sYkoZmjhxwOboYiUlYty0rFlbbFqLWGTtfFY99sML8vC4e0TLEueF92xeVz34rE5NqaZk7fSdoDXtRhTANB9IoJGHtmpTb+l0CGWO7gtC9qpEwlzLj7o7To2TbC4VstslqtUXYbAAXCjWkTJEXfji9uhaxZTTkqPuhN+Ubc= 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 1697666377761960.224051951725; Wed, 18 Oct 2023 14:59:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtESg-0001mq-Tu; Wed, 18 Oct 2023 17:52:18 -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 1qtESX-0001Pj-N3 for qemu-devel@nongnu.org; Wed, 18 Oct 2023 17:52:09 -0400 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtESV-0004Ta-QI for qemu-devel@nongnu.org; Wed, 18 Oct 2023 17:52:09 -0400 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6ce27aadf24so163075a34.2 for ; Wed, 18 Oct 2023 14:52:07 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id w17-20020a63f511000000b005b61a024ec7sm2176380pgh.74.2023.10.18.14.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 14:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697665926; x=1698270726; 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=QJvdFesDZvRn5V/HgHv8lkINBr9ZJC7sBp4BrdViQcI=; b=NV8bF61mnfGyVvYPauYGV61vntI6lZv22SmiOvRV+WyThvL20FSBMT/u+e2VVOtkr8 p99QKM9AC3wh9M/SfVDhP2F4hCwnBDjup/0xM1Uc0NtYQogpN42Z4MHpSYhdZ5czBvgT afVKTrrwwJQtA3NrOxr/Am+YqjcsgQGOLXBCZ/3znmYt8WNk/f3IPRjZAM3SVCQSZERC Oyx7E4lfIjU2y0fjueNewuSEa4goDYjBw4tHXR67BgNamKJ+maDkU8TWGyDyXveqzYSR HyRhoSg6EPE0M5A+Vb2K5bwDlRZY5RKWpN9rAbBLYuBQ2FWUE+bVcWcCbFeuABqlv7wJ A6Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697665926; x=1698270726; 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=QJvdFesDZvRn5V/HgHv8lkINBr9ZJC7sBp4BrdViQcI=; b=tBEbbaIaPczwDueUIKPrpN112MjjH92BfV007QhI6sZ7lYFwNDLff57NrEBo4/LLnD YWJyLmsy29WjHlRcziP/Pjx+dtl7SCEs14aSzB+m+zlaZxdSWLtPXzxm3YDdWwv5eHfs ZGAHrYiOHk5jWPtic9iRXaw7hpvFx4OVArGVjDBj8ehGYXy1zlfjl59b+rxWF69GxpxF Uq56AqUqNOns5VMbbFSCH9SyG0FjtCGrUXSa/Rm+Y+vAtaKtzp6zkmlJPTooPKT5Lcx8 Adyr1v61l92sDimKA80WxkQmbpZIxSuKepiJB+J8XzpwkE0OxCS/DuXc/lWeSM05CkMi Poeg== X-Gm-Message-State: AOJu0YzmE+p/eX2lvZMWrNroI4zri3a60tXPLp62efJDwsGkFQMUphwd afi0drFbqYhdYPGaajl35/qew63EyTd6sd86u2Q= X-Google-Smtp-Source: AGHT+IH9ShTNcmFpVWp8ybNHlGHMh704G+9yibV26ANV45aqO6+ntnOekFhKOE7elViCSSk4AlQ0AA== X-Received: by 2002:a05:6870:f153:b0:1e9:b6aa:a629 with SMTP id l19-20020a056870f15300b001e9b6aaa629mr700843oac.6.1697665926463; Wed, 18 Oct 2023 14:52:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH 36/61] target/hppa: Decode d for cmpb instructions Date: Wed, 18 Oct 2023 14:51:10 -0700 Message-Id: <20231018215135.1561375-37-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231018215135.1561375-1-richard.henderson@linaro.org> References: <20231018215135.1561375-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::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.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: 1697666378210100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/hppa/insns.decode | 9 +++++++-- target/hppa/translate.c | 12 ++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/target/hppa/insns.decode b/target/hppa/insns.decode index b185523021..fc327e2bb3 100644 --- a/target/hppa/insns.decode +++ b/target/hppa/insns.decode @@ -67,6 +67,7 @@ &rri_cf_d t r i cf d =20 &rrb_c_f disp n c f r1 r2 +&rrb_c_d_f disp n c d f r1 r2 &rib_c_f disp n c f r i =20 #### @@ -83,6 +84,8 @@ =20 @rrb_cf ...... r2:5 r1:5 c:3 ........... n:1 . \ &rrb_c_f disp=3D%assemble_12 +@rrb_cdf ...... r2:5 r1:5 c:3 ........... n:1 . \ + &rrb_c_d_f disp=3D%assemble_12 @rib_cf ...... r:5 ..... c:3 ........... n:1 . \ &rib_c_f disp=3D%assemble_12 i=3D%im5_16 =20 @@ -296,8 +299,10 @@ bb_imm 110001 p:5 r:5 c:1 1 d:1 ...........= n:1 . disp=3D%assemble_12 movb 110010 ..... ..... ... ........... . . @rrb_cf f=3D0 movbi 110011 ..... ..... ... ........... . . @rib_cf f=3D0 =20 -cmpb 100000 ..... ..... ... ........... . . @rrb_cf f=3D0 -cmpb 100010 ..... ..... ... ........... . . @rrb_cf f=3D1 +cmpb 100000 ..... ..... ... ........... . . @rrb_cdf d=3D0 f= =3D0 +cmpb 100010 ..... ..... ... ........... . . @rrb_cdf d=3D0 f= =3D1 +cmpb 100111 ..... ..... ... ........... . . @rrb_cdf d=3D1 f= =3D0 +cmpb 101111 ..... ..... ... ........... . . @rrb_cdf d=3D1 f= =3D1 cmpbi 100001 ..... ..... ... ........... . . @rib_cf f=3D0 cmpbi 100011 ..... ..... ... ........... . . @rib_cf f=3D1 =20 diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 33da82b7c8..681c955125 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3070,11 +3070,10 @@ static bool trans_ldo(DisasContext *ctx, arg_ldo *a) } =20 static bool do_cmpb(DisasContext *ctx, unsigned r, TCGv_reg in1, - unsigned c, unsigned f, unsigned n, int disp) + unsigned c, unsigned f, bool d, unsigned n, int disp) { TCGv_reg dest, in2, sv; DisasCond cond; - bool d =3D false; =20 in2 =3D load_gpr(ctx, r); dest =3D tcg_temp_new(); @@ -3092,14 +3091,19 @@ static bool do_cmpb(DisasContext *ctx, unsigned r, = TCGv_reg in1, =20 static bool trans_cmpb(DisasContext *ctx, arg_cmpb *a) { + if (!ctx->is_pa20 && a->d) { + return false; + } nullify_over(ctx); - return do_cmpb(ctx, a->r2, load_gpr(ctx, a->r1), a->c, a->f, a->n, a->= disp); + return do_cmpb(ctx, a->r2, load_gpr(ctx, a->r1), + a->c, a->f, a->d, a->n, a->disp); } =20 static bool trans_cmpbi(DisasContext *ctx, arg_cmpbi *a) { nullify_over(ctx); - return do_cmpb(ctx, a->r, tcg_constant_reg(a->i), a->c, a->f, a->n, a-= >disp); + return do_cmpb(ctx, a->r, tcg_constant_reg(a->i), + a->c, a->f, false, a->n, a->disp); } =20 static bool do_addb(DisasContext *ctx, unsigned r, TCGv_reg in1, --=20 2.34.1