From nobody Wed Nov 27 19:51:59 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=1697834784; cv=none; d=zohomail.com; s=zohoarc; b=DKpdF3PpffzNSP6Y7E54z7UGcEqNiHcjq/Auh1+h92RJMjBI7D3XpkFVcNL82VRCOTxfezYYHMG3TYPdnVPr5zmxlJvmubF3Kd0r2OL7H1XehS8brKADDr5aqBsTP1ZkAfLlYntPeDhwqw3w1tXjjMwm+eSqYtFt2iXdE6kpHds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697834784; 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=kXqbl0J9UOFpqWT8nVVjfRWDi4TXJT7ar8Epjag9g10=; b=ELJE6UurduvxglByL6tclO6Nwv6JdMXLs2HuFL7OOdvTzW4hnBsJ09yc60bGLm1RYn02cLXcaiwl34XVyHIYsbJC4ORLWR/kh7FI2i2Xrm7pUcPTebna0W5OaSGxoISaJBRQNAQlx7huCt0uXUEdKPEeJTZptIz2OgcTGspxBN4= 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 1697834784507585.830780968914; Fri, 20 Oct 2023 13:46:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtwM6-00084f-By; Fri, 20 Oct 2023 16:44:26 -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 1qtwLt-0007pN-3e for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:13 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtwLm-0008Gj-LW for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:12 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6ba172c5f3dso1170059b3a.0 for ; Fri, 20 Oct 2023 13:44:06 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id k15-20020aa7998f000000b00688965c5227sm1944975pfh.120.2023.10.20.13.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697834645; x=1698439445; 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=kXqbl0J9UOFpqWT8nVVjfRWDi4TXJT7ar8Epjag9g10=; b=zVkzk24S7hNOUu5xMiQtXnOG7dCA0KBhspZoMQLPfEYJVt08g3hmrlpDOxc2E/XX/0 3zXF83AdAjsgkL9heMDdtTyXn64xVGrX1ueLZ/Qkbeyr6xQyFsMLl2ZpjuZnsSD7q9IJ bBx/LCerw2WSFpm2kB8DDhAfUqhDjQc0r9d7DkzH9GrYukYoidfULTjJ45wAfiWEJqGD WbIE+peIZKO4Hu2zElLiQtudM1q2UaCdI+2Mf5tXkt/glN2FxeIKwatcLo8WpAhK6jBu inO469X9oRKukM0XVsuPz1ctZh8ccqK7ALEwk7ErZymRlMp8QIAc6jj9BkPdgNZ2vYR+ hZpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697834645; x=1698439445; 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=kXqbl0J9UOFpqWT8nVVjfRWDi4TXJT7ar8Epjag9g10=; b=oqbueXr3JN+vHA25gbj3nRi9DN7PQvp2hVdV8T143+Yxr/6xXbbsFpk7qlooMxO6Qj HBlIjM/kocZQ6iufSWb4zu/OxTPfWrqX5sZD+etUxpzA5mn9yAAHAAErc4URfj6Qau2n yDbcIh2UIIyiwgfKF6MjXPiiFMKslqfP3b9/Pn9Ca+YTUGKxm09nRJPWaNYxvr4Y5usO aJ+vPmFBCXzyrfTCZ1O6hTvO6o6Ig4fxYZMqdxspRBWhjGbG4rXPOvUc6kTwsklO83Bi 3UjVvja/MyS3Oppw9j0yGIoYEfKOPRJvvsqTFrU/ytqYI4oTzkqg8K1yBhe5X++Q+pld OXyQ== X-Gm-Message-State: AOJu0Yyc+ygAritTBNlK47HwUnYfaXuLEKZlshGD3kZ5il1sV6VmeFOc ws0MD5Gn9k9JDamQDBDIWc1FRN2mOSAtqD+K8Lk= X-Google-Smtp-Source: AGHT+IGf5STZvzw+2RaWmflgnvlCbtPckb58Zg4jjdp2LHAUVtoaxcKEDx441l0/yOkzphcBMSlnaQ== X-Received: by 2002:a05:6a00:a13:b0:6b2:6835:2a82 with SMTP id p19-20020a056a000a1300b006b268352a82mr2987648pfh.13.1697834645400; Fri, 20 Oct 2023 13:44:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 36/65] target/hppa: Decode d for cmpb instructions Date: Fri, 20 Oct 2023 13:43:02 -0700 Message-Id: <20231020204331.139847-37-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::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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: 1697834786168100011 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 543a694724..d1d9a4a137 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