From nobody Wed Nov 27 21:37:48 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=1697666329; cv=none; d=zohomail.com; s=zohoarc; b=d7XD4iPynnJx7bYMdrZxEnVoru/eam7oJ7hEv906A+Ax5nW8gsel2QmDMgF/Us2ZAI1FEd7H2/e7T4BQlBmwvX8P6WmR2sEzECgneQ37fuvGL5VEPTACzViNT2rNagGJ6ZGZCk2KioniYI9F47hPxIvtlZGAlCUDV0dpMM4Krv8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697666329; 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=zRIf7kxBmxh1/shdoAtqyWNqtUTU3VEXUB+/Zv/YIyE=; b=Wcg9liBCA73/8Ia/rAS6ID5qxkx8F6CkYGdF2DwaBYsILkcwfsLr+hYhhUDog5tV3WGEZYcHRq+6FSK51Jr7D5YAlZ4OkMg18ZAYZDMZFQ/ZC61gaLCwTCY8xW1sw2k6VrVdYFZ1tq5L0yHs/nGOxc1NmWDZZRse2UmTmBr08fM= 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 1697666329895743.0571345813952; Wed, 18 Oct 2023 14:58:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtESh-0001mx-Ly; Wed, 18 Oct 2023 17:52:19 -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 1qtESZ-0001UI-3Q for qemu-devel@nongnu.org; Wed, 18 Oct 2023 17:52:11 -0400 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtESX-0004Tu-GQ for qemu-devel@nongnu.org; Wed, 18 Oct 2023 17:52:10 -0400 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6cd0964a994so634817a34.0 for ; Wed, 18 Oct 2023 14:52:08 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id w17-20020a63f511000000b005b61a024ec7sm2176380pgh.74.2023.10.18.14.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 14:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697665928; x=1698270728; 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=zRIf7kxBmxh1/shdoAtqyWNqtUTU3VEXUB+/Zv/YIyE=; b=XZ92CgZclert3cgqBL5tB79Da/Y3lv+XTYEDjjtgyiyar+wh8g65AQzWxHljssM4Jf 9RnKi78/EdAf3OYLYAXhVE8xCPd6e7qEZ8LkFz1AABhqVpbZjPlDph4NNZcghGYHysjX MGKyZVrGPxAc+LqT70HzbGve8DfyUYUcH15qIpSXOnx9DsZsoj7gysnm9wRHR8mr6iE/ ruB5NOo8s5cgWOVLSz1SP8BIh1FGQILTM3mHr/inoIpw/Jm2EkPYlIbC1rzh5KPCaVjX kuQv/j2Z+yhD1ljGexxb3umNj7P2pzUdPKvRyfgGWQR57AL2zCbqzXQE6HplGSoVaGX0 v7MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697665928; x=1698270728; 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=zRIf7kxBmxh1/shdoAtqyWNqtUTU3VEXUB+/Zv/YIyE=; b=pXr9c6pgBemWOjQBSgl6wjdLmalP2v0a/5NsZly+1yuyvpGyoq+wOP1mK3sJkq7jiw awCFUUYdjIm5cr+bGc9gZWLwuGeYlqSON3ypNLMsY9hoaG/uigXn6s2yKOro+WQoBzxC oymjYxg2VkOc/l+5mgTlpFpaLXQOjRXG8UkYAqnYJbf2qjZq/6USruDbkY+aFWLe0/PJ 9PSCiQh6EYtM6jHF0Z1S5Rx/9L1z/wWX4x+aNtw2QPBybi4eKW0Qy6vxGmkhOQ43t4qm srmE/S6vl5gUU1FtEsFdKSqqDodrcjhgtfWi1Z5oF/7W7oky1YBc1kKH1TMp6eCmijYz IjMA== X-Gm-Message-State: AOJu0Yx45Y8Eg9QKGYgPeztxZJkOOCGg5hdn6kMWlIb5jzIVpArHuOb0 19gSj1aUmYODs3tCeq088eAH7XZ2cDvpWrDNSWQ= X-Google-Smtp-Source: AGHT+IF93ADW7xCKdqHsi13QNHFREG8ip7ZzEum6jRW6dTN+wLMmvdCn4GjfONQHQTMPJI8hO0IDEA== X-Received: by 2002:a05:6830:209:b0:6c6:50d0:1104 with SMTP id em9-20020a056830020900b006c650d01104mr527805otb.27.1697665928091; Wed, 18 Oct 2023 14:52:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH 38/61] target/hppa: Decode ADDB double-word Date: Wed, 18 Oct 2023 14:51:12 -0700 Message-Id: <20231018215135.1561375-39-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::336; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x336.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: 1697666332053100005 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 753748082b..7e723dcd24 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