Message ID | 20231018215135.1561375-39-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f0cd:0:b0:32d:baff:b0ca with SMTP id x13csp1226029wro; Wed, 18 Oct 2023 14:58:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGpjI8QsS20py0My43j19k1KAjbgfVpEHK6Ow3Zxf+MMiBeqGUNtlSCtAAIsJl4kwST0Jo X-Received: by 2002:a05:622a:1756:b0:418:4e7:b82c with SMTP id l22-20020a05622a175600b0041804e7b82cmr612391qtk.57.1697666325667; Wed, 18 Oct 2023 14:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697666325; cv=none; d=google.com; s=arc-20160816; b=xeYpvKM61BDpGVPuRv8eNPPqHggI5Uaelf9UhnMY2TyvoThMjCqv2B6YFEVzj0/gOD zHZ8Tfd63ifyKydARykyZfBgQngONOiSBynqVC2fxWVdhUVZ17SM0+WnPZWygArNN8gM xgoPLXQ568BjsMLfjTAEq3Ix2km/vrW1TYy3xEWVadNkShSEmcjerm5cw65Qu52E7wAR AlM1qNDjCoKjdUxvrzvIc1b4HyRzM6r05JLM6d8i8E56vrsk6VrljSxrDSvXSuToePth NAc29xrBWQ0jNeb1LneYYhmidIQbMHUNyKToTonPTzqLumqPxlNb1aen5GcLp3OAod4M C6WQ== 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:cc:to :from:dkim-signature; bh=zRIf7kxBmxh1/shdoAtqyWNqtUTU3VEXUB+/Zv/YIyE=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=EdrEuSLxOyQA37bT7Obqc/sEDI4LGdwhz8T1fepDj4guHsuJu890Xbz7fzOydKPClW NQJRtuO2/YmtUFZjMednZsO/YTm3ACyNQz4DTkxS1XxIuybgfJinueQCL+DYnarMtmlN DMx7TOgueUgVIEmEjo0HLPlyI/MdY64KHCNoCkPqQoSWU7H+GjJ0Fr0n8mTKQYaVTJmb BkGabk/G9VMLtfyeMSR8i/0dPujnXsi+nt3PQ3b6yPUAuOlnVhuKZ5wyTHoSFze72RHq HLrKl6JtAPyZBu0PgfyoNtjrS6ZTavQXyn3T8z+eFzxGsqtSpBu0X1XDlkv675SOhNHW AN1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XZ92CgZc; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y18-20020a05622a165200b004181c16dfb8si639444qtj.221.2023.10.18.14.58.45 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Oct 2023 14:58:45 -0700 (PDT) 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=XZ92CgZc; 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 <qemu-devel-bounces@nongnu.org>) 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 <richard.henderson@linaro.org>) 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 <richard.henderson@linaro.org>) 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 <qemu-devel@nongnu.org>; Wed, 18 Oct 2023 14:52:08 -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-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) 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) From: Richard Henderson <richard.henderson@linaro.org> 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: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
target/hppa: Implement hppa64-cpu
|
expand
|
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, TCGv_reg in1, DisasCond cond; bool d = false; + /* + * For hppa64, the ADDB conditions change, dropping ZNV, SV, OD + * in favor of double-word EQ, LT, LE. + */ + if (ctx->is_pa20) { + d = c >= 5; + if (d) { + c &= 3; + } + } + in2 = load_gpr(ctx, r); dest = tcg_temp_new(); sv = NULL;
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/hppa/translate.c | 11 +++++++++++ 1 file changed, 11 insertions(+)